TextEditingArea.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | NavigationActions.
Indicates how to treat selection when caret is moved. |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | |
| public default void | |
| public default void | moveTo(int
the index of the paragraph to which to move the caret paragraphIndex, int the index to the left of which to move the caret columnIndex)Moves the caret to the position returned from |
| public default void | moveTo(int position, NavigationActions.
Moves the caret to the given position. |
| public default void | moveTo(int paragraphIndex, int columnIndex, NavigationActions.
Moves the caret to the position returned from
|
| public default void | nextChar(NavigationActions.
Moves the caret forward one char in the text. |
| public default void | paragraphEnd(NavigationActions.
Moves the caret to the end of the current paragraph. |
| public default void | paragraphStart(NavigationActions.
Moves the caret to the beginning of the current paragraph. |
| public default void | previousChar(NavigationActions.
Moves the caret backward one char in the text. |
| public default void | |
| public default void | |
| public default void | |
| public default void | start(NavigationActions.
Moves the caret to the beginning of the text. |
| public default void | wordBreaksBackwards(int n, NavigationActions.
Skips n number of word boundaries backwards. |
| public default void | wordBreaksForwards(int n, NavigationActions.
Skips n number of word boundaries forward. |
| deselect | back to summary |
|---|---|
| public default void deselect() Clears the selection while keeping the caret position. | |
| end | back to summary |
|---|---|
| public default void end(NavigationActions. Moves the caret to the end of the text. | |
| moveTo | back to summary |
|---|---|
| public default void moveTo(int pos) Moves the caret to the given position in the text and clears any selection. | |
| moveTo | back to summary |
|---|---|
| public default void moveTo(int paragraphIndex, int columnIndex) Moves the caret to the position returned from For example, if "|" represents the caret, "_" represents a newline character, and given the text "Some_Text" (1st line: 'Some'; 2nd line 'Text'), then...
Caution see
| |
| moveTo | back to summary |
|---|---|
| public default void moveTo(int position, NavigationActions. Moves the caret to the given position. | |
| moveTo | back to summary |
|---|---|
| public default void moveTo(int paragraphIndex, int columnIndex, NavigationActions. Moves the caret to the position returned from
Caution see | |
| nextChar | back to summary |
|---|---|
| public default void nextChar(NavigationActions. Moves the caret forward one char in the text. | |
| paragraphEnd | back to summary |
|---|---|
| public default void paragraphEnd(NavigationActions. Moves the caret to the end of the current paragraph. | |
| paragraphStart | back to summary |
|---|---|
| public default void paragraphStart(NavigationActions. Moves the caret to the beginning of the current paragraph. | |
| previousChar | back to summary |
|---|---|
| public default void previousChar(NavigationActions. Moves the caret backward one char in the text. | |
| selectAll | back to summary |
|---|---|
| public default void selectAll() Selects everything in the area. | |
| selectParagraph | back to summary |
|---|---|
| public default void selectParagraph() Selects the current paragraph. | |
| selectWord | back to summary |
|---|---|
| public default void selectWord() Selects the word closest to the caret | |
| start | back to summary |
|---|---|
| public default void start(NavigationActions. Moves the caret to the beginning of the text. | |
| wordBreaksBackwards | back to summary |
|---|---|
| public default void wordBreaksBackwards(int n, NavigationActions. Skips n number of word boundaries backwards. | |
| wordBreaksForwards | back to summary |
|---|---|
| public default void wordBreaksForwards(int n, NavigationActions. Skips n number of word boundaries forward. | |