All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.TextComponent

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----jp.kyasu.awt.KContainer
                           |
                           +----jp.kyasu.awt.EventProxyContainer
                                   |
                                   +----jp.kyasu.awt.TextComponent

public class TextComponent
extends EventProxyContainer
implements TextListener, TextPositionListener
A TextComponent is a component that allows the editing of some text.

A TextComponent is an MVC-based component. The model of the TextComponent is a TextEditModel object, the view of the TextComponent is a TextEditView object, and the controller of the TextComponent is a TextEditController object.

The principal editing operations on a TextComponent are the replaceRange (replaceSelection), setRangeTextStyle (setSelectionTextStyle), modifyRangeTextStyle (modifySelectionTextStyle), setRangeParagraphStyle (setSelectionParagraphStyle) and modifyRangeParagraphStyle (modifySelectionParagraphStyle) methods:

An application should use the above editing operations and should not edit the text of the TextComponent directly.

Version:
25 Jul 1998
Author:
Kazuki YASUMATSU
See Also:
TextModel, TextEditModel, TextEditView, BasicTextEditController, TextEditController

Variable Index

 o CHAR_WRAP
The constant for the character line wrapping style.
 o DEFAULT_HORIZONTAL_STYLE
The default rich text style when the horizontal scrollbar only.
 o DEFAULT_VERTICAL_STYLE
The default rich text style when the vertical scrollbar only.
 o NO_WRAP
The constant for the no line wrapping style.
 o NOT_EDITABLE_BACKGROUND
The default background color for the not editable state.
 o NOT_EDITABLE_FOREGROUND
The default foreground color for the not editable state.
 o NOT_EDITABLE_SELECTION_BACKGROUND
The default selection background color for the not editable state.
 o NOT_EDITABLE_SELECTION_FOREGROUND
The default selection foreground color for the not editable state.
 o SCROLLBARS_BOTH
Create and display both vertical and horizontal scrollbars.
 o SCROLLBARS_HORIZONTAL_ONLY
Create and display horizontal scrollbar only.
 o SCROLLBARS_NONE
Do not create or display any scrollbars.
 o SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.
 o WORD_WRAP
The constant for the word line wrapping style.

Constructor Index

 o TextComponent(RichText)
Constructs a new text component with the specified rich text.
 o TextComponent(RichText, int)
Constructs a new text component with the specified rich text and scroll bar visibility.
 o TextComponent(String)
Constructs a new text component with the specified string.
 o TextComponent(String, int)
Constructs a new text component with the specified string and scroll bar visibility.
 o TextComponent(String, int, RichTextStyle)
Constructs a new text component with the specified string, scroll bar visibility, and rich text style.
 o TextComponent(TextEditModel)
Constructs a new text component with the specified model.
 o TextComponent(TextEditModel, int)
Constructs a new text component with the specified model and scroll bar visibility.
 o TextComponent(TextEditModel, int, VBorder)
Constructs a new text component with the specified model, scroll bar visibility, and border visual.

Method Index

 o addKeyAction(KeyAction)
Adds the key action to the key binding of this text component.
 o addTextListener(TextListener)
Adds the specified text event listener to recieve text events from this text component.
 o addTextPositionListener(TextPositionListener)
Adds the specified text position event listener to recieve text position events from this text component.
 o append(String)
Appends the given string to the text component's current text.
 o append(Text)
Appends the given text to the current text.
 o append(Text, boolean)
Appends the given text to the current text.
 o appendText(String)
Deprecated.
 o backward_character()
Moves the insertion cursor one character to the left.
 o backward_word()
Moves the insertion cursor to the first non-whitespace character after the first whitespace character to the left or the beginning of the line.
 o beep()
Causes the terminal to beep.
 o beginning_of_file()
Moves the insertion cursor to the beginning of the text.
 o beginning_of_line()
Moves the insertion cursor to the beginning of the line.
 o clearSoftTab()
Disables soft tab.
 o clearUndo()
Clears the undo of the last change.
 o copy_clipboard()
Copies the current selection to the clipboard.
 o cut_clipboard()
Cuts the current selection to the clipboard.
 o delete_next_character()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the character following the insert cursor.
 o delete_next_word()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the characters following the insertion cursor to the next space, tab or end of line character.
 o delete_previous_character()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the character of text immediately preceding the insertion cursor.
 o delete_previous_word()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the characters preceding the insertion cursor to the previous space, tab or beginning of line character.
 o delete_selection()
Deletes the current selection.
 o delete_to_end_of_line()
Deletes the characters following the insertion cursor to the next end of line character.
 o delete_to_start_of_line()
Deletes the characters preceding the insertion cursor to the previous beginning of line character.
 o deselect_all()
Deselects the current selection.
 o end_of_file()
Moves the insertion cursor to the end of the text.
 o end_of_line()
Moves the insertion cursor to the end of the line.
 o find_word()
Finds the word and move the insertion cursor to the founded word.
 o forward_character()
Moves the insertion cursor one character to the right.
 o forward_word()
Moves the insertion cursor to the first whitespace character or end of line following the next non-whitespace character.
 o getCaretColor()
Returns the caret color.
 o getCaretPosition()
Returns the position of the text insertion caret for this text component.
 o getColumns()
Returns the number of columns in this text component.
 o getController()
Returns the controller of this text component.
 o getCurrentTextStyle()
Returns the current text style of this text component.
 o getEditMenu()
Returns the edit menu of this text component.
 o getKeyAction(String)
Returns the key action object associated with the specified name.
 o getKeyBinding()
Returns the key binding of this text component.
 o getKeymap()
Returns the keymap of this text component.
 o getLineWrap()
Returns the line wrapping style.
 o getLocationOfText()
Returns the location of the text of this text component.
 o getMinimumSize()
Returns the minimum size of this text component.
 o getMinimumSize(int, int)
Returns the minimum size of a text component with the specified number of rows and columns.
 o getModel()
Returns the model of this text component.
 o getParagraphStyleAt(int)
Returns the paragraph style at the specified index in this text component.
 o getParagraphStyleCount()
Returns the number of the paragraph styles in the text of this text component.
 o getParagraphStyles()
Returns all paragraph styles in the text of this text component.
 o getParagraphStyles(int, int)
Returns the paragraph styles in the text of this text component.
 o getPopupMenu()
Returns the popup menu of this text component.
 o getPreferredSize()
Returns the preferred size of this text component.
 o getPreferredSize(int, int)
Determines the preferred size of a text component with the specified number of rows and columns.
 o getRichText()
Returns the rich text of this text component.
 o getRows()
Returns the number of rows in the text component.
 o getScrollbarThickness()
Returns the thickness of the scroll bar.
 o getScrollbarVisibility()
Returns an enumerated value that indicates which scroll bars the text component uses.
 o getSelectedText()
Returns the selected string from the string that is presented by this text component.
 o getSelectedTEXT()
Returns the selected text from this text component.
 o getSelectionBackground()
Returns the selection background color.
 o getSelectionEnd()
Returns the end position of the selected text in this text component.
 o getSelectionForeground()
Returns the selection foreground color.
 o getSelectionStart()
Returns the start position of the selected text in this text component.
 o getSoftTab()
Returns the length of soft tab.
 o getTEXT()
Returns the text of this text component.
 o getText()
Returns the string that is presented by this text component.
 o getText(String)
Returns the string that is presented by this text component.
 o getTextCaret()
Returns the text caret of this text component.
 o getTextStyleAt(int)
Returns the text style at the specified index in this text component.
 o getTextStyleCount()
Returns the number of the text styles in the text of this text component.
 o getTextStyles()
Returns all text styles in the text of this text component.
 o getTextStyles(int, int)
Returns the text styles in the text of this text component.
 o getView()
Returns the view of this text component.
 o goto_line()
Go to line.
 o insert(String, int)
Inserts the specified string at the specified position in this text component.
 o insert(Text, int)
Inserts the specified text at the specified position in this text component.
 o insert(Text, int, boolean)
Inserts the specified text at the specified position in this text component.
 o insert_character(char)
If the cursor is inside the selection, deletes the entire selection.
 o insert_string(String)
If the cursor is inside the selection, deletes the entire selection.
 o insertText(String, int)
Deprecated.
 o isAutoIndentEnabled()
Checks if the auto indent is enabled.
 o isClickable()
Tests if this text component handles ClickableTextAction.
 o isClickToFocus()
Tests if the text component requests the focus when the mouse is clicked.
 o isEditable()
Indicates whether or not this text component is editable.
 o isMouseFocus()
Tests if the text component requests the focus when the mouse enters the component.
 o isShowMatchEnabled()
Checks if the show match is enabled.
 o isSoftTab()
Checks if this text component allows soft tab.
 o kill_next_character()
If the cursor is inside the selection, deletes the entire selection.
 o kill_next_word()
If the cursor is inside the selection, deletes the entire selection.
 o kill_previous_character()
If the cursor is inside the selection, deletes the entire selection.
 o kill_previous_word()
If the cursor is inside the selection, deletes the entire selection.
 o kill_selection()
Kills the currently selected text and stores the text in the cut buffer.
 o kill_to_end_of_line()
Kills the characters following the insertion cursor to the next end of line character and stores the characters in the cut buffer.
 o kill_to_start_of_line()
Kills the characters preceding the insertion cursor to the next beginning of line character and stores the characters in the cut buffer.
 o minimumSize(int, int)
Deprecated.
 o modifyRangeParagraphStyle(ParagraphStyleModifier, int, int)
Modifies the paragraph style between the indicated start and end positions by the specified paragraph style modifier.
 o modifyRangeParagraphStyle(ParagraphStyleModifier, int, int, boolean)
Modifies the paragraph style between the indicated start and end positions by the specified paragraph style modifier.
 o modifyRangeTextStyle(TextStyleModifier, int, int)
Modifies the text style between the indicated start and end positions by the specified text style modifier.
 o modifyRangeTextStyle(TextStyleModifier, int, int, boolean)
Modifies the text style between the indicated start and end positions by the specified text style modifier.
 o modifySelectionParagraphStyle(ParagraphStyleModifier)
Modifies the paragraph style in the range of the current selection by the specified paragraph style modifier.
 o modifySelectionParagraphStyle(ParagraphStyleModifier, boolean)
Modifies the paragraph style in the range of the current selection by the specified paragraph style modifier.
 o modifySelectionTextStyle(TextStyleModifier)
Modifies the text style in the range of the current selection by the specified text style modifier.
 o modifySelectionTextStyle(TextStyleModifier, boolean)
Modifies the text style in the range of the current selection by the specified text style modifier.
 o newbreak()
If the cursor is inside the selection, deletes the entire selection.
 o newline()
If the cursor is inside the selection, deletes the entire selection.
 o newline_and_indent()
If the cursor is inside the selection, deletes the entire selection.
 o next_line()
Moves the insertion cursor to the next line.
 o next_page()
Moves the insertion cursor forward one page.
 o paragraphStyles()
Returns an enumeration of the paragraph styles of the text of this text component.
 o paragraphStyles(int, int)
Returns an enumeration of the paragraph styles of the text of this text component.
 o paste_clipboard()
Pastes the the clipboard before the insertion cursor.
 o performKeyAction(String)
Performs the key action named the specified name.
 o performKeyAction(String, char)
Performs the key action named the specified name.
 o preferredSize(int, int)
Deprecated.
 o previous_line()
Moves the insertion cursor to the previous line.
 o previous_page()
Moves the insertion cursor back one page.
 o print(boolean)
Prints the text of this text component with the specified flag determining to print a page number in footer.
 o print(Insets, String, boolean)
Prints the text of this text component with the specified insets, header string, and flag determining to print a page number in footer.
 o print(PrintJob, Insets, String, boolean)
Prints the text of this text component to a print device provided from the specified print job, with the specified insets, header string, and flag determining to print a page number in footer.
 o print(PrintJob, String, boolean)
Prints the text of this text component to a print device provided from the specified print job, with the specified header string and flag determining to print a page number in footer.
 o print(String, boolean)
Prints the text of this text component with the specified header string and flag determining to print a page number in footer.
 o redraw_display()
Redraw the display.
 o removeKeyAction(KeyAction)
Removes the key action from the key binding of this text component.
 o removeKeyActionNamed(String)
Removes the key action named the specified name from the key binding of this text component.
 o removeTextListener(TextListener)
Removes the specified text event listener so that it no longer receives text events from this textcomponent
 o removeTextPositionListener(TextPositionListener)
Removes the specified text position event listener so that it no longer receives text position events from this text component
 o replaceRange(String, int, int)
Replaces text between the indicated start and end positions with the specified replacement text.
 o replaceRange(Text, int, int)
Replaces text between the indicated start and end positions with the specified replacement text.
 o replaceRange(Text, int, int, boolean)
Replaces text between the indicated start and end positions with the specified replacement text.
 o replaceSelection(String)
Replaces string in the range of the current selection with the specified replacement string.
 o replaceSelection(Text)
Replaces text in the range of the current selection with the specified replacement text.
 o replaceSelection(Text, boolean)
Replaces text in the range of the current selection with the specified replacement text.
 o replaceText(String, int, int)
Deprecated.
 o select(int, int)
Selects the text between the specified start and end positions.
 o select(int, int, boolean)
Selects the text between the specified start and end positions.
 o select(int, int, boolean, boolean)
Selects the text between the specified start and end positions.
 o select_all()
Select all text.
 o select_line()
Select a line at the selection start position.
 o select_word()
Select a word at the selection start position.
 o selectAll()
Selects all the text in this text component.
 o selectionIsCaret()
Tests if the selection is caret, i.e., null selection.
 o setAutoIndentEnabled(boolean)
Enables the auto indent.
 o setBackground(Color)
Sets the background color of this text component.
 o setCaretColor(Color)
Sets the caret color.
 o setCaretPosition(int)
Sets the position of the text insertion caret for this text component.
 o setCaretPosition(int, boolean)
Sets the position of the text insertion caret.
 o setClickable(boolean)
Makes this text component handle ClickableTextAction.
 o setClickToFocus()
Makes the text component request the focus when the mouse is clicked.
 o setColumns(int)
Sets the number of columns for this text component.
 o setCursor(Cursor)
Sets the cursor of this text component.
 o setEditable(boolean)
Sets the flag that determines whether or not this text component is editable.
 o setEditable(boolean, boolean)
Sets the flag that determines whether or not this text component is editable.
 o setEnabled(boolean)
Enables or disables this text component.
 o setFont(Font)
Sets the font of this text component.
 o setForeground(Color)
Sets the foreground color of this text component.
 o setKeymap(Keymap)
Sets the keymap of this text component.
 o setLineWrap(int)
Sets the line wrapping style.
 o setLocationOfText(Point)
Sets the location of the text of this text component.
 o setMouseFocus()
Makes the text component request the focus when the mouse enters the component.
 o setPopupMenu(PopupMenu)
Sets the popup menu of this text component.
 o setRangeParagraphStyle(ParagraphStyle, int, int)
Sets the paragraph style between the indicated start and end positions to the specified paragraph style.
 o setRangeParagraphStyle(ParagraphStyle, int, int, boolean)
Sets the paragraph style between the indicated start and end positions to the specified paragraph style.
 o setRangeTextStyle(TextStyle, int, int)
Sets the text style between the indicated start and end positions to the specified text style.
 o setRangeTextStyle(TextStyle, int, int, boolean)
Sets the text style between the indicated start and end positions to the specified text style.
 o setRichText(RichText)
Sets the rich text of this text component.
 o setRows(int)
Sets the number of rows for this text component.
 o setScrollbarThickness(int)
Sets the thickness of the scroll bar.
 o setSelectionBackground(Color)
Sets the selection background color.
 o setSelectionEnd(int)
Sets the selection end for this text component to the specified position.
 o setSelectionForeground(Color)
Sets the selection foreground color.
 o setSelectionParagraphStyle(ParagraphStyle)
Sets the paragraph style in the range of the current selection to the specified paragraph style.
 o setSelectionParagraphStyle(ParagraphStyle, boolean)
Sets the paragraph style in the range of the current selection to the specified paragraph style.
 o setSelectionStart(int)
Sets the selection start for this text component to the specified position.
 o setSelectionTextStyle(TextStyle)
Sets the text style in the range of the current selection to the specified text style.
 o setSelectionTextStyle(TextStyle, boolean)
Sets the text style in the range of the current selection to the specified text style.
 o setShowMatchEnabled(boolean)
Enables the show match.
 o setSoftTab(int)
Sets the length of soft tab.
 o setText(String)
Sets the string that is presented by this text component to be the specified string.
 o setTEXT(Text)
Sets the text of this text component.
 o setTextCaret(TextCaret)
Sets the text caret of this text component.
 o tab()
If the cursor is inside the selection, deletes the entire selection.
 o textPositionChanged(TextPositionEvent)
Invoked when the position of the text has changed.
 o textStyles()
Returns an enumeration of the text styles of the text of this text component.
 o textStyles(int, int)
Returns an enumeration of the text styles of the text of this text component.
 o textValueChanged(TextEvent)
Invoked when the value of the text has changed.
 o undo()
Undo the last change.
 o unkill()
Restores last killed text to the position of the insertion cursor.

Variables

 o SCROLLBARS_BOTH
 public static final int SCROLLBARS_BOTH
Create and display both vertical and horizontal scrollbars.

 o SCROLLBARS_VERTICAL_ONLY
 public static final int SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.

 o SCROLLBARS_HORIZONTAL_ONLY
 public static final int SCROLLBARS_HORIZONTAL_ONLY
Create and display horizontal scrollbar only.

 o SCROLLBARS_NONE
 public static final int SCROLLBARS_NONE
Do not create or display any scrollbars.

 o CHAR_WRAP
 public static final int CHAR_WRAP
The constant for the character line wrapping style. The line is wrapped at the character boundary.

 o WORD_WRAP
 public static final int WORD_WRAP
The constant for the word line wrapping style. The line is wrapped at the word boundary.

 o NO_WRAP
 public static final int NO_WRAP
The constant for the no line wrapping style. The line is wrapped only at the line separator.

 o NOT_EDITABLE_FOREGROUND
 public static final Color NOT_EDITABLE_FOREGROUND
The default foreground color for the not editable state.

 o NOT_EDITABLE_BACKGROUND
 public static final Color NOT_EDITABLE_BACKGROUND
The default background color for the not editable state.

 o NOT_EDITABLE_SELECTION_FOREGROUND
 public static final Color NOT_EDITABLE_SELECTION_FOREGROUND
The default selection foreground color for the not editable state.

 o NOT_EDITABLE_SELECTION_BACKGROUND
 public static final Color NOT_EDITABLE_SELECTION_BACKGROUND
The default selection background color for the not editable state.

 o DEFAULT_VERTICAL_STYLE
 public static final RichTextStyle DEFAULT_VERTICAL_STYLE
The default rich text style when the vertical scrollbar only.

 o DEFAULT_HORIZONTAL_STYLE
 public static final RichTextStyle DEFAULT_HORIZONTAL_STYLE
The default rich text style when the horizontal scrollbar only.

Constructors

 o TextComponent
 public TextComponent(String string)
Constructs a new text component with the specified string.

Parameters:
string - the initial string that the component presents.
 o TextComponent
 public TextComponent(String string,
                      int scrollbars)
Constructs a new text component with the specified string and scroll bar visibility.

Parameters:
string - the initial string that the component presents.
scrollbars - a constant that determines what scrollbars are created to view the text component.
 o TextComponent
 public TextComponent(String string,
                      int scrollbars,
                      RichTextStyle rtStyle)
Constructs a new text component with the specified string, scroll bar visibility, and rich text style.

Parameters:
string - the initial string that the component presents.
scrollbars - a constant that determines what scrollbars are created to view the text component.
rtStyle - the rich text style.
 o TextComponent
 public TextComponent(RichText richText)
Constructs a new text component with the specified rich text.

Parameters:
richText - the initial rich text that the component presents.
 o TextComponent
 public TextComponent(RichText richText,
                      int scrollbars)
Constructs a new text component with the specified rich text and scroll bar visibility.

Parameters:
richText - the initial rich text that the component presents.
scrollbars - a constant that determines what scrollbars are created to view the text component.
 o TextComponent
 public TextComponent(TextEditModel textEditModel)
Constructs a new text component with the specified model.

Parameters:
textEditModel - the initial model of the MVC component.
 o TextComponent
 public TextComponent(TextEditModel textEditModel,
                      int scrollbars)
Constructs a new text component with the specified model and scroll bar visibility.

Parameters:
textEditModel - the initial model of the MVC component.
scrollbars - a constant that determines what scrollbars are created to view the text component.
 o TextComponent
 public TextComponent(TextEditModel textEditModel,
                      int scrollbars,
                      VBorder border)
Constructs a new text component with the specified model, scroll bar visibility, and border visual.

Parameters:
textEditModel - the initial model of the MVC component.
scrollbars - a constant that determines what scrollbars are created to view the text component.
border - the border visual of the text component.

Methods

 o addTextListener
 public synchronized void addTextListener(TextListener l)
Adds the specified text event listener to recieve text events from this text component.

Parameters:
l - the text event listener.
 o removeTextListener
 public synchronized void removeTextListener(TextListener l)
Removes the specified text event listener so that it no longer receives text events from this textcomponent

Parameters:
l - the text event listener.
 o textValueChanged
 public void textValueChanged(TextEvent e)
Invoked when the value of the text has changed.

See Also:
TextListener
 o addTextPositionListener
 public synchronized void addTextPositionListener(TextPositionListener l)
Adds the specified text position event listener to recieve text position events from this text component.

Parameters:
l - the text position event listener.
 o removeTextPositionListener
 public synchronized void removeTextPositionListener(TextPositionListener l)
Removes the specified text position event listener so that it no longer receives text position events from this text component

Parameters:
l - the text position event listener.
 o textPositionChanged
 public void textPositionChanged(TextPositionEvent te)
Invoked when the position of the text has changed.

See Also:
TextPositionListener
 o setForeground
 public synchronized void setForeground(Color c)
Sets the foreground color of this text component.

Overrides:
setForeground in class Component
 o setBackground
 public synchronized void setBackground(Color c)
Sets the background color of this text component.

Overrides:
setBackground in class Component
 o setFont
 public synchronized void setFont(Font font)
Sets the font of this text component.

Overrides:
setFont in class Component
 o setCursor
 public synchronized void setCursor(Cursor c)
Sets the cursor of this text component.

Overrides:
setCursor in class Component
 o setEnabled
 public synchronized void setEnabled(boolean b)
Enables or disables this text component.

Overrides:
setEnabled in class KContainer
 o setText
 public synchronized void setText(String str)
Sets the string that is presented by this text component to be the specified string.

Parameters:
str - the new string.
See Also:
getText
 o getText
 public String getText()
Returns the string that is presented by this text component.

See Also:
setText, getText
 o getText
 public String getText(String separator)
Returns the string that is presented by this text component.

Parameters:
separator - the preferred line separator string.
See Also:
setText, getText
 o getSelectedText
 public String getSelectedText()
Returns the selected string from the string that is presented by this text component.

Returns:
the selected string of this text component.
See Also:
select
 o isEditable
 public boolean isEditable()
Indicates whether or not this text component is editable.

Returns:
true if this text component is editable; false otherwise.
See Also:
setEditable
 o setEditable
 public synchronized void setEditable(boolean b)
Sets the flag that determines whether or not this text component is editable.

Parameters:
b - a flag indicating whether this text component should be user editable.
See Also:
isEditable, setEditable
 o getSelectionStart
 public int getSelectionStart()
Returns the start position of the selected text in this text component.

Returns:
the start position of the selected text.
See Also:
setSelectionStart, getSelectionEnd
 o setSelectionStart
 public void setSelectionStart(int selectionStart)
Sets the selection start for this text component to the specified position.

Parameters:
selectionStart - the start position of the selected text.
See Also:
getSelectionStart, setSelectionEnd
 o getSelectionEnd
 public int getSelectionEnd()
Returns the end position of the selected text in this text component.

Returns:
the end position of the selected text.
See Also:
setSelectionEnd, getSelectionStart
 o setSelectionEnd
 public void setSelectionEnd(int selectionEnd)
Sets the selection end for this text component to the specified position.

Parameters:
selectionEnd - the end position of the selected text.
See Also:
getSelectionEnd, setSelectionStart
 o select
 public synchronized void select(int selectionStart,
                                 int selectionEnd)
Selects the text between the specified start and end positions.

Parameters:
selectionStart - the start position of the text to select.
selectionEnd - the end position of the text to select.
See Also:
setSelectionStart, setSelectionEnd, selectAll
 o selectAll
 public void selectAll()
Selects all the text in this text component.

See Also:
select
 o setCaretPosition
 public synchronized void setCaretPosition(int position)
Sets the position of the text insertion caret for this text component.

Parameters:
position - the position of the text insertion caret.
See Also:
getCaretPosition
 o getCaretPosition
 public int getCaretPosition()
Returns the position of the text insertion caret for this text component.

Returns:
the position of the text insertion caret.
See Also:
setCaretPosition
 o selectionIsCaret
 public boolean selectionIsCaret()
Tests if the selection is caret, i.e., null selection.

 o insert
 public synchronized void insert(String str,
                                 int pos)
Inserts the specified string at the specified position in this text component.

Parameters:
str - the string to insert.
pos - the position at which to insert.
See Also:
setText, replaceRange, append
 o insertText
 public void insertText(String str,
                        int pos)
Note: insertText() is deprecated. As of JDK version 1.1, replaced by insert(String, int).

 o append
 public synchronized void append(String str)
Appends the given string to the text component's current text.

Parameters:
str - the text to append.
See Also:
insert
 o appendText
 public void appendText(String str)
Note: appendText() is deprecated. As of JDK version 1.1, replaced by append(String).

 o replaceRange
 public synchronized void replaceRange(String str,
                                       int start,
                                       int end)
Replaces text between the indicated start and end positions with the specified replacement text.

Parameters:
str - the string to use as the replacement.
start - the start position.
end - the end position.
See Also:
insert
 o replaceText
 public void replaceText(String str,
                         int start,
                         int end)
Note: replaceText() is deprecated. As of JDK version 1.1, replaced by replaceRange(String, int, int).

 o getRows
 public int getRows()
Returns the number of rows in the text component.

Returns:
the number of rows in the text component.
See Also:
setRows, getColumns
 o setRows
 public void setRows(int rows)
Sets the number of rows for this text component.

Parameters:
rows - the number of rows.
See Also:
getRows, setColumns
 o getColumns
 public int getColumns()
Returns the number of columns in this text component.

Returns:
the number of columns in the text component.
See Also:
setColumns, getRows
 o setColumns
 public void setColumns(int columns)
Sets the number of columns for this text component.

Parameters:
columns - the number of columns.
See Also:
getColumns, setRows
 o getScrollbarVisibility
 public int getScrollbarVisibility()
Returns an enumerated value that indicates which scroll bars the text component uses.

Returns:
an integer that indicates which scroll bars are used.
See Also:
SCROLLBARS_BOTH, SCROLLBARS_VERTICAL_ONLY, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE
 o getPreferredSize
 public Dimension getPreferredSize(int rows,
                                   int columns)
Determines the preferred size of a text component with the specified number of rows and columns.

Parameters:
rows - the number of rows.
columns - the number of columns.
Returns:
the preferred dimensions required to display the text component with the specified number of rows and columns.
 o preferredSize
 public Dimension preferredSize(int rows,
                                int columns)
Note: preferredSize() is deprecated. As of JDK version 1.1, replaced by getPreferredSize(int, int).

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this text component.

Returns:
the preferred dimensions needed for this text component.
Overrides:
getPreferredSize in class KContainer
 o getMinimumSize
 public Dimension getMinimumSize(int rows,
                                 int columns)
Returns the minimum size of a text component with the specified number of rows and columns.

Parameters:
rows - the number of rows.
columns - the number of columns.
Returns:
the minimum dimensions required to display the text component with the specified number of rows and columns.
 o minimumSize
 public Dimension minimumSize(int rows,
                              int columns)
Note: minimumSize() is deprecated. As of JDK version 1.1, replaced by getMinimumSize(int, int).

 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this text component.

Returns:
the preferred dimensions needed for this text component.
Overrides:
getMinimumSize in class KContainer
 o getModel
 public TextEditModel getModel()
Returns the model of this text component.

 o getView
 public TextEditView getView()
Returns the view of this text component.

 o getController
 public TextEditController getController()
Returns the controller of this text component.

 o getRichText
 public RichText getRichText()
Returns the rich text of this text component.

 o setRichText
 public synchronized void setRichText(RichText richText)
Sets the rich text of this text component.

 o getLineWrap
 public int getLineWrap()
Returns the line wrapping style.

See Also:
setLineWrap, CHAR_WRAP, WORD_WRAP, NO_WRAP
 o setLineWrap
 public synchronized void setLineWrap(int lineWrap)
Sets the line wrapping style.

Parameters:
lineWrap - the line wrapping style.
See Also:
getLineWrap, CHAR_WRAP, WORD_WRAP, NO_WRAP
 o getLocationOfText
 public Point getLocationOfText()
Returns the location of the text of this text component.

See Also:
setLocationOfText
 o setLocationOfText
 public synchronized void setLocationOfText(Point p)
Sets the location of the text of this text component.

See Also:
getLocationOfText
 o getSelectionForeground
 public Color getSelectionForeground()
Returns the selection foreground color.

See Also:
setSelectionForeground
 o setSelectionForeground
 public synchronized void setSelectionForeground(Color c)
Sets the selection foreground color.

See Also:
getSelectionForeground
 o getSelectionBackground
 public Color getSelectionBackground()
Returns the selection background color.

See Also:
setSelectionBackground
 o setSelectionBackground
 public synchronized void setSelectionBackground(Color c)
Sets the selection background color.

See Also:
getSelectionBackground
 o getCaretColor
 public Color getCaretColor()
Returns the caret color.

See Also:
setCaretColor
 o setCaretColor
 public synchronized void setCaretColor(Color c)
Sets the caret color.

See Also:
getCaretColor
 o getTextCaret
 public TextCaret getTextCaret()
Returns the text caret of this text component.

See Also:
setCaretColor
 o setTextCaret
 public synchronized void setTextCaret(TextCaret textCaret)
Sets the text caret of this text component.

See Also:
getTextCaret
 o getEditMenu
 public Menu getEditMenu()
Returns the edit menu of this text component.

 o getPopupMenu
 public PopupMenu getPopupMenu()
Returns the popup menu of this text component.

See Also:
setPopupMenu
 o setPopupMenu
 public void setPopupMenu(PopupMenu menu)
Sets the popup menu of this text component.

See Also:
getPopupMenu
 o setEditable
 public synchronized void setEditable(boolean b,
                                      boolean changeColor)
Sets the flag that determines whether or not this text component is editable.

Parameters:
b - a flag indicating whether this text component should be user editable.
changeColor - if true, change the color of the text component according to the editable state.
See Also:
isEditable, setEditable
 o isClickToFocus
 public boolean isClickToFocus()
Tests if the text component requests the focus when the mouse is clicked.

Returns:
true if the text component requests the focus when the mouse is clicked, false if the text component requests the focus when the mouse enters the view.
See Also:
isMouseFocus
 o isMouseFocus
 public boolean isMouseFocus()
Tests if the text component requests the focus when the mouse enters the component.

See Also:
isClickToFocus
 o setClickToFocus
 public void setClickToFocus()
Makes the text component request the focus when the mouse is clicked.

See Also:
isClickToFocus, setMouseFocus
 o setMouseFocus
 public void setMouseFocus()
Makes the text component request the focus when the mouse enters the component.

See Also:
isMouseFocus, setClickToFocus
 o getKeymap
 public Keymap getKeymap()
Returns the keymap of this text component.

See Also:
setKeymap
 o setKeymap
 public synchronized void setKeymap(Keymap keymap)
Sets the keymap of this text component.

See Also:
getKeymap
 o getKeyBinding
 public KeyBinding getKeyBinding()
Returns the key binding of this text component.

See Also:
addKeyAction, removeKeyAction, removeKeyActionNamed
 o getKeyAction
 public KeyAction getKeyAction(String actionName)
Returns the key action object associated with the specified name.

Parameters:
actionName - the name of the key action.
Returns:
the key action object, or null if no associated action exists.
See Also:
addKeyAction, removeKeyAction, removeKeyActionNamed
 o addKeyAction
 public synchronized void addKeyAction(KeyAction keyAction)
Adds the key action to the key binding of this text component.

Parameters:
keyAction - the key action object.
See Also:
getKeyAction, removeKeyAction, removeKeyActionNamed
 o removeKeyAction
 public synchronized void removeKeyAction(KeyAction keyAction)
Removes the key action from the key binding of this text component.

Parameters:
keyAction - the key action object.
See Also:
getKeyAction, addKeyAction, removeKeyActionNamed
 o removeKeyActionNamed
 public synchronized void removeKeyActionNamed(String actionName)
Removes the key action named the specified name from the key binding of this text component.

Parameters:
actionName - the name of the key action.
See Also:
getKeyAction, addKeyAction, removeKeyAction
 o performKeyAction
 public void performKeyAction(String actionName)
Performs the key action named the specified name.

Parameters:
actionName - the name of the key action.
See Also:
performKeyAction
 o performKeyAction
 public synchronized void performKeyAction(String actionName,
                                           char keyChar)
Performs the key action named the specified name.

Parameters:
actionName - the name of the key action.
keyChar - the key character for the key action.
See Also:
performKeyAction
 o isClickable
 public boolean isClickable()
Tests if this text component handles ClickableTextAction.

See Also:
setClickable, ClickableTextAction
 o setClickable
 public void setClickable(boolean b)
Makes this text component handle ClickableTextAction.

See Also:
isClickable, ClickableTextAction
 o isSoftTab
 public boolean isSoftTab()
Checks if this text component allows soft tab.

See Also:
clearSoftTab, getSoftTab, setSoftTab
 o getSoftTab
 public int getSoftTab()
Returns the length of soft tab.

Returns:
the length of soft tab. if the length is less than 0, soft tab is not allowed by this text component.
See Also:
setSoftTab, isSoftTab, clearSoftTab
 o setSoftTab
 public void setSoftTab(int i)
Sets the length of soft tab.

Parameters:
i - the length of soft tab. if the length is less than 0, disables soft tab.
See Also:
getSoftTab, isSoftTab, clearSoftTab
 o clearSoftTab
 public void clearSoftTab()
Disables soft tab.

See Also:
isSoftTab, getSoftTab, setSoftTab
 o getCurrentTextStyle
 public TextStyle getCurrentTextStyle()
Returns the current text style of this text component.

 o getTextStyleAt
 public TextStyle getTextStyleAt(int index)
Returns the text style at the specified index in this text component.

Returns:
the text style at the specified index, or null if the index is out of range.
 o getTextStyleCount
 public int getTextStyleCount()
Returns the number of the text styles in the text of this text component.

 o getTextStyles
 public TextStyle[] getTextStyles()
Returns all text styles in the text of this text component.

 o getTextStyles
 public TextStyle[] getTextStyles(int begin,
                                  int end)
Returns the text styles in the text of this text component.

Parameters:
begin - the beginning index to get text styles, inclusive.
end - the ending index to get text styles, exclusive.
 o textStyles
 public Enumeration textStyles()
Returns an enumeration of the text styles of the text of this text component.

 o textStyles
 public Enumeration textStyles(int begin,
                               int end)
Returns an enumeration of the text styles of the text of this text component.

Parameters:
begin - the beginning index to get styles, inclusive.
end - the ending index to get styles, exclusive.
 o getParagraphStyleAt
 public ParagraphStyle getParagraphStyleAt(int index)
Returns the paragraph style at the specified index in this text component.

Returns:
the paragraph style at the specified index, or null if the index is out of range.
 o getParagraphStyleCount
 public int getParagraphStyleCount()
Returns the number of the paragraph styles in the text of this text component.

 o getParagraphStyles
 public ParagraphStyle[] getParagraphStyles()
Returns all paragraph styles in the text of this text component.

 o getParagraphStyles
 public ParagraphStyle[] getParagraphStyles(int begin,
                                            int end)
Returns the paragraph styles in the text of this text component.

Parameters:
begin - the beginning index of the text to get paragraph styles, inclusive.
end - the ending index of the text to get paragraph styles, exclusive.
 o paragraphStyles
 public Enumeration paragraphStyles()
Returns an enumeration of the paragraph styles of the text of this text component.

 o paragraphStyles
 public Enumeration paragraphStyles(int begin,
                                    int end)
Returns an enumeration of the paragraph styles of the text of this text component.

Parameters:
begin - the beginning index to get styles, inclusive.
end - the ending index to get styles, exclusive.
 o getTEXT
 public Text getTEXT()
Returns the text of this text component.

See Also:
setTEXT
 o setTEXT
 public synchronized void setTEXT(Text text)
Sets the text of this text component.

See Also:
getTEXT
 o getSelectedTEXT
 public Text getSelectedTEXT()
Returns the selected text from this text component.

 o select
 public void select(int selectionStart,
                    int selectionEnd,
                    boolean scroll)
Selects the text between the specified start and end positions.

Parameters:
selectionStart - the start position of the text to select.
selectionEnd - the end position of the text to select.
scroll - if true, scrolls the view after selection done.
See Also:
select
 o select
 public synchronized void select(int selectionStart,
                                 int selectionEnd,
                                 boolean scroll,
                                 boolean top)
Selects the text between the specified start and end positions.

Parameters:
selectionStart - the start position of the text to select.
selectionEnd - the end position of the text to select.
scroll - if true, scrolls the view after selection done.
top - if true, scrolls to the top of the view.
See Also:
select, select
 o setCaretPosition
 public void setCaretPosition(int position,
                              boolean top)
Sets the position of the text insertion caret.

Parameters:
position - the position of the caret.
top - if true, scrolls to the top of the view.
See Also:
setCaretPosition
 o insert
 public void insert(Text text,
                    int pos)
Inserts the specified text at the specified position in this text component.

Parameters:
text - the text to insert.
pos - the position at which to insert.
See Also:
insert
 o insert
 public void insert(Text text,
                    int pos,
                    boolean scroll)
Inserts the specified text at the specified position in this text component.

Parameters:
text - the text to insert.
pos - the position at which to insert.
scroll - if true, scrolls the view after the insertion.
See Also:
insert, replaceRange
 o append
 public void append(Text text)
Appends the given text to the current text.

Parameters:
text - the text to append.
See Also:
append
 o append
 public void append(Text text,
                    boolean scroll)
Appends the given text to the current text.

Parameters:
text - the text to append.
scroll - if true, scrolls the view after the appending.
See Also:
insert
 o replaceRange
 public void replaceRange(Text text,
                          int start,
                          int end)
Replaces text between the indicated start and end positions with the specified replacement text.

Parameters:
text - the text to use as the replacement.
start - the start position, inclusive.
end - the end position, exclusive.
See Also:
replaceRange
 o replaceRange
 public void replaceRange(Text text,
                          int start,
                          int end,
                          boolean scroll)
Replaces text between the indicated start and end positions with the specified replacement text.

Parameters:
text - the text to use as the replacement.
start - the start position, inclusive.
end - the end position, exclusive.
scroll - if true, scrolls the view after replace done.
See Also:
replaceRange, replaceRange, replaceSelection
 o replaceSelection
 public void replaceSelection(String str)
Replaces string in the range of the current selection with the specified replacement string.

Parameters:
str - the string to use as the replacement.
See Also:
replaceSelection
 o replaceSelection
 public void replaceSelection(Text text)
Replaces text in the range of the current selection with the specified replacement text.

Parameters:
text - the text to use as the replacement.
See Also:
replaceSelection
 o replaceSelection
 public void replaceSelection(Text text,
                              boolean scroll)
Replaces text in the range of the current selection with the specified replacement text.

Parameters:
text - the text to use as the replacement.
scroll - if true, scrolls the view after replace done.
See Also:
replaceSelection, replaceSelection, replaceRange
 o setRangeTextStyle
 public void setRangeTextStyle(TextStyle style,
                               int start,
                               int end)
Sets the text style between the indicated start and end positions to the specified text style.

Parameters:
style - the text style to be set.
start - the start position, inclusive.
end - the end position, exclusive.
See Also:
setRangeTextStyle
 o setRangeTextStyle
 public void setRangeTextStyle(TextStyle style,
                               int start,
                               int end,
                               boolean scroll)
Sets the text style between the indicated start and end positions to the specified text style.

Parameters:
style - the text style to be set.
start - the start position, inclusive.
end - the end position, exclusive.
scroll - if true, scrolls the view after set done.
See Also:
setRangeTextStyle, setSelectionTextStyle
 o setSelectionTextStyle
 public void setSelectionTextStyle(TextStyle style)
Sets the text style in the range of the current selection to the specified text style.

Parameters:
style - the text style to be set.
See Also:
setSelectionTextStyle
 o setSelectionTextStyle
 public void setSelectionTextStyle(TextStyle style,
                                   boolean scroll)
Sets the text style in the range of the current selection to the specified text style.

Parameters:
style - the text style to be set.
scroll - if true, scrolls the view after set done.
See Also:
setSelectionTextStyle, setRangeTextStyle
 o modifyRangeTextStyle
 public void modifyRangeTextStyle(TextStyleModifier modifier,
                                  int start,
                                  int end)
Modifies the text style between the indicated start and end positions by the specified text style modifier.

Parameters:
modifier - the text style modifier.
start - the start position, inclusive.
end - the end position, exclusive.
See Also:
modifyRangeTextStyle
 o modifyRangeTextStyle
 public void modifyRangeTextStyle(TextStyleModifier modifier,
                                  int start,
                                  int end,
                                  boolean scroll)
Modifies the text style between the indicated start and end positions by the specified text style modifier.

Parameters:
modifier - the text style modifier.
start - the start position, inclusive.
end - the end position, exclusive.
scroll - if true, scrolls the view after set done.
See Also:
modifyRangeTextStyle, modifySelectionTextStyle
 o modifySelectionTextStyle
 public void modifySelectionTextStyle(TextStyleModifier modifier)
Modifies the text style in the range of the current selection by the specified text style modifier.

Parameters:
modifier - the text style modifier.
See Also:
modifySelectionTextStyle
 o modifySelectionTextStyle
 public void modifySelectionTextStyle(TextStyleModifier modifier,
                                      boolean scroll)
Modifies the text style in the range of the current selection by the specified text style modifier.

Parameters:
modifier - the text style modifier.
scroll - if true, scrolls the view after set done.
See Also:
modifySelectionTextStyle, modifyRangeTextStyle
 o setRangeParagraphStyle
 public void setRangeParagraphStyle(ParagraphStyle style,
                                    int start,
                                    int end)
Sets the paragraph style between the indicated start and end positions to the specified paragraph style.

Parameters:
style - the paragraph style to be set.
start - the start position, inclusive.
end - the end position, exclusive.
See Also:
setRangeParagraphStyle
 o setRangeParagraphStyle
 public void setRangeParagraphStyle(ParagraphStyle style,
                                    int start,
                                    int end,
                                    boolean scroll)
Sets the paragraph style between the indicated start and end positions to the specified paragraph style.

Parameters:
style - the paragraph style to be set.
start - the start position, inclusive.
end - the end position, exclusive.
scroll - if true, scrolls the view after set done.
See Also:
setRangeParagraphStyle, setSelectionParagraphStyle
 o setSelectionParagraphStyle
 public void setSelectionParagraphStyle(ParagraphStyle style)
Sets the paragraph style in the range of the current selection to the specified paragraph style.

Parameters:
style - the paragraph style to be set.
See Also:
setSelectionParagraphStyle
 o setSelectionParagraphStyle
 public void setSelectionParagraphStyle(ParagraphStyle style,
                                        boolean scroll)
Sets the paragraph style in the range of the current selection to the specified paragraph style.

Parameters:
style - the paragraph style to be set.
scroll - if true, scrolls the view after set done.
See Also:
setSelectionParagraphStyle, setRangeParagraphStyle
 o modifyRangeParagraphStyle
 public void modifyRangeParagraphStyle(ParagraphStyleModifier modifier,
                                       int start,
                                       int end)
Modifies the paragraph style between the indicated start and end positions by the specified paragraph style modifier.

Parameters:
modifier - the paragraph style modifier.
start - the start position, inclusive.
end - the end position, exclusive.
See Also:
modifyRangeParagraphStyle
 o modifyRangeParagraphStyle
 public void modifyRangeParagraphStyle(ParagraphStyleModifier modifier,
                                       int start,
                                       int end,
                                       boolean scroll)
Modifies the paragraph style between the indicated start and end positions by the specified paragraph style modifier.

Parameters:
modifier - the paragraph style modifier.
start - the start position, inclusive.
end - the end position, exclusive.
scroll - if true, scrolls the view after set done.
See Also:
modifyRangeParagraphStyle, modifySelectionParagraphStyle
 o modifySelectionParagraphStyle
 public void modifySelectionParagraphStyle(ParagraphStyleModifier modifier)
Modifies the paragraph style in the range of the current selection by the specified paragraph style modifier.

Parameters:
modifier - the paragraph style modifier.
See Also:
modifySelectionParagraphStyle
 o modifySelectionParagraphStyle
 public void modifySelectionParagraphStyle(ParagraphStyleModifier modifier,
                                           boolean scroll)
Modifies the paragraph style in the range of the current selection by the specified paragraph style modifier.

Parameters:
modifier - the paragraph style modifier.
scroll - if true, scrolls the view after set done.
See Also:
modifySelectionParagraphStyle, modifyRangeParagraphStyle
 o getScrollbarThickness
 public int getScrollbarThickness()
Returns the thickness of the scroll bar.

See Also:
setScrollbarThickness
 o setScrollbarThickness
 public synchronized void setScrollbarThickness(int thickness)
Sets the thickness of the scroll bar.

See Also:
setScrollbarThickness
 o print
 public void print(boolean printPageNum)
Prints the text of this text component with the specified flag determining to print a page number in footer.

Parameters:
printPageNum - if true, prints a page number in footer.
 o print
 public void print(String header,
                   boolean printPageNum)
Prints the text of this text component with the specified header string and flag determining to print a page number in footer.

Parameters:
header - the header string.
printPageNum - if true, prints a page number in footer.
 o print
 public void print(Insets insets,
                   String header,
                   boolean printPageNum)
Prints the text of this text component with the specified insets, header string, and flag determining to print a page number in footer.

Parameters:
insets - the insets of a printing medium (paper).
header - the header string.
printPageNum - if true, prints a page number in footer.
 o print
 public void print(PrintJob job,
                   String header,
                   boolean printPageNum)
Prints the text of this text component to a print device provided from the specified print job, with the specified header string and flag determining to print a page number in footer.

Parameters:
job - the print job.
header - the header string.
printPageNum - if true, prints a page number in footer.
 o print
 public synchronized void print(PrintJob job,
                                Insets insets,
                                String header,
                                boolean printPageNum)
Prints the text of this text component to a print device provided from the specified print job, with the specified insets, header string, and flag determining to print a page number in footer.

Parameters:
job - the print job.
insets - the insets of a printing medium (paper).
header - the header string.
printPageNum - if true, prints a page number in footer.
 o isAutoIndentEnabled
 public boolean isAutoIndentEnabled()
Checks if the auto indent is enabled.

 o setAutoIndentEnabled
 public void setAutoIndentEnabled(boolean autoIndent)
Enables the auto indent.

 o isShowMatchEnabled
 public boolean isShowMatchEnabled()
Checks if the show match is enabled.

 o setShowMatchEnabled
 public void setShowMatchEnabled(boolean showMatch)
Enables the show match.

 o clearUndo
 public void clearUndo()
Clears the undo of the last change.

 o copy_clipboard
 public void copy_clipboard()
Copies the current selection to the clipboard.

 o cut_clipboard
 public void cut_clipboard()
Cuts the current selection to the clipboard.

 o backward_character
 public void backward_character()
Moves the insertion cursor one character to the left.

 o backward_word
 public void backward_word()
Moves the insertion cursor to the first non-whitespace character after the first whitespace character to the left or the beginning of the line. If the insertion cursor is already at the beginning of a word, moves the insertion cursor to the beginning of the previous word.

 o beep
 public void beep()
Causes the terminal to beep.

 o beginning_of_file
 public void beginning_of_file()
Moves the insertion cursor to the beginning of the text.

 o beginning_of_line
 public void beginning_of_line()
Moves the insertion cursor to the beginning of the line.

 o delete_next_character
 public void delete_next_character()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the character following the insert cursor.

 o delete_next_word
 public void delete_next_word()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the characters following the insertion cursor to the next space, tab or end of line character.

 o delete_previous_character
 public void delete_previous_character()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the character of text immediately preceding the insertion cursor.

 o delete_previous_word
 public void delete_previous_word()
If the cursor is inside the selection, deletes the entire selection; otherwise, deletes the characters preceding the insertion cursor to the previous space, tab or beginning of line character.

 o delete_selection
 public void delete_selection()
Deletes the current selection.

 o delete_to_end_of_line
 public void delete_to_end_of_line()
Deletes the characters following the insertion cursor to the next end of line character.

 o delete_to_start_of_line
 public void delete_to_start_of_line()
Deletes the characters preceding the insertion cursor to the previous beginning of line character.

 o deselect_all
 public void deselect_all()
Deselects the current selection.

 o end_of_file
 public void end_of_file()
Moves the insertion cursor to the end of the text.

 o end_of_line
 public void end_of_line()
Moves the insertion cursor to the end of the line.

 o find_word
 public void find_word()
Finds the word and move the insertion cursor to the founded word.

 o forward_character
 public void forward_character()
Moves the insertion cursor one character to the right.

 o forward_word
 public void forward_word()
Moves the insertion cursor to the first whitespace character or end of line following the next non-whitespace character. If the insertion cursor is already at the end of a word, moves the insertion cursor to the end of the next word.

 o goto_line
 public void goto_line()
Go to line.

 o insert_character
 public void insert_character(char c)
If the cursor is inside the selection, deletes the entire selection. Inserts character at the insertion cursor.

 o insert_string
 public void insert_string(String str)
If the cursor is inside the selection, deletes the entire selection. Inserts string at the insertion cursor.

 o kill_next_character
 public void kill_next_character()
If the cursor is inside the selection, deletes the entire selection. Otherwise, kills the character following the insertion cursor and stores the character in the cut buffer.

 o kill_next_word
 public void kill_next_word()
If the cursor is inside the selection, deletes the entire selection. Otherwise, kills the characters following the insertion cursor to the next space, tab or end of line character, and stores the characters in the cut buffer.

 o kill_previous_character
 public void kill_previous_character()
If the cursor is inside the selection, deletes the entire selection. Otherwise, kills the character of text immediately preceding the insertion cursor and stores the character in the cut buffer.

 o kill_previous_word
 public void kill_previous_word()
If the cursor is inside the selection, deletes the entire selection. Otherwise, kills the characters preceding the insertion cursor to the next space, tab or beginning of line character, and stores the characters in the cut buffer.

 o kill_selection
 public void kill_selection()
Kills the currently selected text and stores the text in the cut buffer.

 o kill_to_end_of_line
 public void kill_to_end_of_line()
Kills the characters following the insertion cursor to the next end of line character and stores the characters in the cut buffer.

 o kill_to_start_of_line
 public void kill_to_start_of_line()
Kills the characters preceding the insertion cursor to the next beginning of line character and stores the characters in the cut buffer.

 o newbreak
 public void newbreak()
If the cursor is inside the selection, deletes the entire selection. Inserts a newbreak at the insertion cursor.

 o newline
 public void newline()
If the cursor is inside the selection, deletes the entire selection. Inserts a newline at the insertion cursor.

 o newline_and_indent
 public void newline_and_indent()
If the cursor is inside the selection, deletes the entire selection. Inserts a newline and then the same number of whitespace characters as at the beginning of the previous line.

 o next_line
 public void next_line()
Moves the insertion cursor to the next line.

 o next_page
 public void next_page()
Moves the insertion cursor forward one page.

 o paste_clipboard
 public void paste_clipboard()
Pastes the the clipboard before the insertion cursor.

 o previous_line
 public void previous_line()
Moves the insertion cursor to the previous line.

 o previous_page
 public void previous_page()
Moves the insertion cursor back one page.

 o redraw_display
 public void redraw_display()
Redraw the display.

 o select_all
 public void select_all()
Select all text.

 o select_line
 public void select_line()
Select a line at the selection start position.

 o select_word
 public void select_word()
Select a word at the selection start position.

 o tab
 public void tab()
If the cursor is inside the selection, deletes the entire selection. Inserts the soft tab.

 o undo
 public void undo()
Undo the last change.

 o unkill
 public void unkill()
Restores last killed text to the position of the insertion cursor.


All Packages  Class Hierarchy  This Package  Previous  Next  Index