Methods' Details |
collapseToStart
[oneway] void |
collapseToStart(); |
- Description
- sets the end of the position to the start.
|
|
collapseToEnd
[oneway] void |
collapseToEnd(); |
- Description
- sets the start of the position to the end.
|
|
isCollapsed
- Description
- determines if the start and end positions are the same.
|
|
goLeft
boolean |
goLeft( |
[in] short |
nCount, |
| [in] boolean |
bExpand ); |
- Description
- moves the cursor the specified number of characters to the left.
- Parameter nCount
- the number of characters to move.
- Parameter bExpand
- specifies if the current selection of the cursor should
be expanded or not.
- Returns
- true if the command was successfully completed.
false otherwise.
Note: Even if the command was not completed successfully
it may be completed partially. E.g. if it was required to move
5 characters but it is only possible to move 3 false will
be returned and the cursor moves only those 3 characters.
|
|
goRight
boolean |
goRight( |
[in] short |
nCount, |
| [in] boolean |
bExpand ); |
- Description
- moves the cursor the specified number of characters to the right.
- Parameter nCount
- the number of characters to move.
- Parameter bExpand
- specifies if the current selection of the cursor should
be expanded or not.
- Returns
- true if the command was successfully completed.
false otherwise.
Note: Even if the command was not completed successfully
it may be completed partially. E.g. if it was required to move
5 characters but it is only possible to move 3 false will
be returned and the cursor moves only those 3 characters.
|
|
gotoStart
void |
gotoStart( |
[in] boolean |
bExpand ); |
- Description
- moves the cursor to the start of the text.
|
|
gotoEnd
void |
gotoEnd( |
[in] boolean |
bExpand ); |
- Description
- moves the cursor to the end of the text.
|
|
gotoRange
void |
gotoRange( |
[in] XTextRange |
xRange, |
| [in] boolean |
bExpand ); |
- Description
- moves or expands the cursor to a specified TextRange.
|
|
Copyright © 2010 Sun Microsystems, Inc.