All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.awt.frame.editor.MultiTextEditor

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----tea.awt.frame.SingleDocker
                                           |
                                           +----tea.awt.frame.MainFrame
                                                   |
                                                   +----tea.awt.frame.editor.TextEditor
                                                           |
                                                           +----tea.awt.frame.editor.MultiTextEditor

public class MultiTextEditor
extends TextEditor

This class is an extension of TextEditor built to manage one or more TextAreas.

Version:
1.1 beta - 21 June 1997
Author:
Leonardo Boselli

Constructor Index

 o MultiTextEditor(String)
Constructor for Spill class.

Method Index

 o actionSettings()
Performs the management of the main ActionListeners settings.
 o addSelectableItem(String)
Adds a selectable item.
 o addTextArea(String, String)
Adds a TextArea to the array of TextAreas.
 o changeTextArea(int)
Shows the selected TextArea in the list.
 o changeTextFont(Font)
Changes the Text Font to the specified Font.
 o getCurrentTextArea()
Returns the current TextArea.
 o getCurrentTextAreaIndex()
Returns the current TextArea index.
 o getTextArea(int)
Returns the TextArea correponding to the given index.
 o getTextAreaCount()
Returns the total pages.
 o newDocument()
Opens a new document.
 o nextTextArea()
Shows the next TextArea in the list.
 o prevTextArea()
Shows the previous TextArea in the list.
 o removeAllItems()
Removes all the selectable items.
 o removeAllTextAreas()
Removes all TextAreas.
 o resetTextAreas()
Resets the array of TextAreas.
 o selectSelectableItem(int)
Selects a selectable item.
 o showTextArea(int)
Shows the nth TextArea.
 o toolbarSettings()
Performs the management of the main Toolbar settings.

Constructors

 o MultiTextEditor
 public MultiTextEditor(String title)
Constructor for Spill class.

Methods

 o toolbarSettings
 public void toolbarSettings()
Performs the management of the main Toolbar settings.

Overrides:
toolbarSettings in class TextEditor
 o actionSettings
 public void actionSettings()
Performs the management of the main ActionListeners settings.

Overrides:
actionSettings in class TextEditor
 o removeAllItems
 public void removeAllItems()
Removes all the selectable items.

 o addSelectableItem
 public void addSelectableItem(String s)
Adds a selectable item.

Parameters:
s - the item String.
 o selectSelectableItem
 public void selectSelectableItem(int id)
Selects a selectable item.

Parameters:
s - the item String.
 o changeTextFont
 public void changeTextFont(Font font)
Changes the Text Font to the specified Font.

Parameters:
font - the new Font.
Overrides:
changeTextFont in class TextEditor
 o getTextAreaCount
 public int getTextAreaCount()
Returns the total pages.

Returns:
the total number of pages.
 o getCurrentTextAreaIndex
 public int getCurrentTextAreaIndex()
Returns the current TextArea index.

Returns:
the current TextArea index.
 o getCurrentTextArea
 public TextArea getCurrentTextArea()
Returns the current TextArea.

Returns:
the current TextArea.
 o getTextArea
 public TextArea getTextArea(int n)
Returns the TextArea correponding to the given index.

Parameters:
n - the index.
Returns:
the nth TextArea.
 o addTextArea
 public void addTextArea(String text,
                         String title)
Adds a TextArea to the array of TextAreas.

Parameters:
s - the text of the TextArea.
 o showTextArea
 public void showTextArea(int text)
Shows the nth TextArea.

Parameters:
s - the text of the TextArea.
 o removeAllTextAreas
 public void removeAllTextAreas()
Removes all TextAreas.

 o resetTextAreas
 public void resetTextAreas()
Resets the array of TextAreas.

 o nextTextArea
 public void nextTextArea()
Shows the next TextArea in the list.

 o prevTextArea
 public void prevTextArea()
Shows the previous TextArea in the list.

 o changeTextArea
 public void changeTextArea(int id)
Shows the selected TextArea in the list.

Parameters:
id - the index of the method.
 o newDocument
 public void newDocument()
Opens a new document.

Overrides:
newDocument in class TextEditor

All Packages  Class Hierarchy  This Package  Previous  Next  Index