TextEditingArea.
| Modifier and Type | Method and Description |
|---|---|
| public default void | append(StyledDocument<PS, SEG, S> document)
Appends the given rich-text content to the end of this text-editing area. |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | deleteText(IndexRange
The range of text to delete. It must not be null. Its start and end values specify the start
and end positions within the area. range)Removes a range of text. |
| public default void | deleteText(int
Start position of the range to remove start, int End position of the range to remove end)Removes a range of text. |
| public default void | deleteText(int startParagraph, int startColumn, int endParagraph, int endColumn)
Removes a range of text. |
| public default void | insert(int
The position to insert the text. position, StyledDocument<PS, SEG, S> The rich-text content to insert. document)Inserts the given rich-text content at the given position. |
| public default void | |
| public default void | insert(int paragraphIndex, int columnPosition, StyledDocument<PS, SEG, S>
The rich-text content to insert. document)Inserts the given rich-text content at the position returned from
|
| public default void | insertText(int
The position to insert the text. position, String The text to insert. text)Inserts the given text at the given position. |
| public default void | insertText(int paragraphIndex, int columnPosition, String
The text to insert text)Inserts the given text at the position returned from
|
| public default void | moveSelectedText(int position)
If something is currently selected and the given position is outside of the selection, moves the selected rich-text document to the given position by deleting it from the area and re-inserting it at the given position. |
| public default void | replace(StyledDocument<PS, SEG, S> replacement)
Replaces the entire content with the given rich-text content. |
| public default void | |
| public default void | replaceSelection(StyledDocument<PS, SEG, S> replacement)
Replaces the selection with the given rich-text replacement. |
| public default void |
| append | back to summary |
|---|---|
| public default void append(StyledDocument<PS, SEG, S> document) Appends the given rich-text content to the end of this text-editing area. | |
| append | back to summary |
|---|---|
| public default void append(SEG seg, S style) Append text with a style. | |
| appendText | back to summary |
|---|---|
| public default void appendText(String text) Appends the given text to the end of the text content. | |
| clear | back to summary |
|---|---|
| public default void clear() Clears the area, so that it displays only an empty paragraph. | |
| deleteNextChar | back to summary |
|---|---|
| public default void deleteNextChar() Deletes the character that follows the current caret position from the text. | |
| deletePreviousChar | back to summary |
|---|---|
| public default void deletePreviousChar() Deletes the character that precedes the current caret position from the text. | |
| deleteText | back to summary |
|---|---|
| public default void deleteText(IndexRange range) Removes a range of text.
| |
| deleteText | back to summary |
|---|---|
| public default void deleteText(int start, int end) Removes a range of text.
It must hold
| |
| deleteText | back to summary |
|---|---|
| public default void deleteText(int startParagraph, int startColumn, int endParagraph, int endColumn) Removes a range of text.
It must hold Caution see | |
| insert | back to summary |
|---|---|
| public default void insert(int position, StyledDocument<PS, SEG, S> document) Inserts the given rich-text content at the given position.
| |
| insert | back to summary |
|---|---|
| public default void insert(int position, SEG seg, S style) Inserts text with a style at the given position. | |
| insert | back to summary |
|---|---|
| public default void insert(int paragraphIndex, int columnPosition, StyledDocument<PS, SEG, S> document) Inserts the given rich-text content at the position returned from
Caution see
| |
| insertText | back to summary |
|---|---|
| public default void insertText(int position, String text) Inserts the given text at the given position.
| |
| insertText | back to summary |
|---|---|
| public default void insertText(int paragraphIndex, int columnPosition, String text) Inserts the given text at the position returned from
Caution see
| |
| moveSelectedText | back to summary |
|---|---|
| public default void moveSelectedText(int position) If something is currently selected and the given position is outside of the selection, moves the selected rich-text document to the given position by deleting it from the area and re-inserting it at the given position. If nothing is selected, moves the caret ot that position. | |
| replace | back to summary |
|---|---|
| public default void replace(StyledDocument<PS, SEG, S> replacement) Replaces the entire content with the given rich-text content. | |
| replaceSelection | back to summary |
|---|---|
| public default void replaceSelection(String replacement) Replaces the selection with the given replacement String. If there is no selection, then the replacement text is simply inserted at the current caret position. If there was a selection, then the selection is cleared and the given replacement text is inserted. | |
| replaceSelection | back to summary |
|---|---|
| public default void replaceSelection(StyledDocument<PS, SEG, S> replacement) Replaces the selection with the given rich-text replacement. If there is no selection, then the replacement is simply inserted at the current caret position. If there was a selection, then the selection is cleared and the given replacement text is inserted. | |
| replaceText | back to summary |
|---|---|
| public default void replaceText(String replacement) Replaces the entire content with the given text. | |