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
-
MultiTextEditor(String)
- Constructor for Spill class.
-
actionSettings()
- Performs the management of the main ActionListeners settings.
-
addSelectableItem(String)
- Adds a selectable item.
-
addTextArea(String, String)
- Adds a TextArea to the array of TextAreas.
-
changeTextArea(int)
- Shows the selected TextArea in the list.
-
changeTextFont(Font)
- Changes the Text Font to the specified Font.
-
getCurrentTextArea()
- Returns the current TextArea.
-
getCurrentTextAreaIndex()
- Returns the current TextArea index.
-
getTextArea(int)
- Returns the TextArea correponding to the given index.
-
getTextAreaCount()
- Returns the total pages.
-
newDocument()
- Opens a new document.
-
nextTextArea()
- Shows the next TextArea in the list.
-
prevTextArea()
- Shows the previous TextArea in the list.
-
removeAllItems()
- Removes all the selectable items.
-
removeAllTextAreas()
- Removes all TextAreas.
-
resetTextAreas()
- Resets the array of TextAreas.
-
selectSelectableItem(int)
- Selects a selectable item.
-
showTextArea(int)
- Shows the nth TextArea.
-
toolbarSettings()
- Performs the management of the main Toolbar settings.
MultiTextEditor
public MultiTextEditor(String title)
- Constructor for Spill class.
toolbarSettings
public void toolbarSettings()
- Performs the management of the main Toolbar settings.
- Overrides:
- toolbarSettings in class TextEditor
actionSettings
public void actionSettings()
- Performs the management of the main ActionListeners settings.
- Overrides:
- actionSettings in class TextEditor
removeAllItems
public void removeAllItems()
- Removes all the selectable items.
addSelectableItem
public void addSelectableItem(String s)
- Adds a selectable item.
- Parameters:
- s - the item String.
selectSelectableItem
public void selectSelectableItem(int id)
- Selects a selectable item.
- Parameters:
- s - the item String.
changeTextFont
public void changeTextFont(Font font)
- Changes the Text Font to the specified Font.
- Parameters:
- font - the new Font.
- Overrides:
- changeTextFont in class TextEditor
getTextAreaCount
public int getTextAreaCount()
- Returns the total pages.
- Returns:
- the total number of pages.
getCurrentTextAreaIndex
public int getCurrentTextAreaIndex()
- Returns the current TextArea index.
- Returns:
- the current TextArea index.
getCurrentTextArea
public TextArea getCurrentTextArea()
- Returns the current TextArea.
- Returns:
- the current TextArea.
getTextArea
public TextArea getTextArea(int n)
- Returns the TextArea correponding to the given index.
- Parameters:
- n - the index.
- Returns:
- the nth TextArea.
addTextArea
public void addTextArea(String text,
String title)
- Adds a TextArea to the array of TextAreas.
- Parameters:
- s - the text of the TextArea.
showTextArea
public void showTextArea(int text)
- Shows the nth TextArea.
- Parameters:
- s - the text of the TextArea.
removeAllTextAreas
public void removeAllTextAreas()
- Removes all TextAreas.
resetTextAreas
public void resetTextAreas()
- Resets the array of TextAreas.
nextTextArea
public void nextTextArea()
- Shows the next TextArea in the list.
prevTextArea
public void prevTextArea()
- Shows the previous TextArea in the list.
changeTextArea
public void changeTextArea(int id)
- Shows the selected TextArea in the list.
- Parameters:
- id - the index of the method.
newDocument
public void newDocument()
- Opens a new document.
- Overrides:
- newDocument in class TextEditor
All Packages Class Hierarchy This Package Previous Next Index