|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextPieceKeeper
Keeps piece of text of textual node. This text is localized by locator into segment of one line. Properties of this text are held by ITextPieceInfo.
Method Summary | |
---|---|
void |
deselect()
Deselects anything selected. |
String |
getPreviousText()
Returns text from node before keeper's text. |
ITextPieceSelectionStatus |
getSelectionStatus()
Returns status about which text is selected. |
String |
getText()
Returns keeper's text. |
ITextPieceContainer |
getTextContainer()
Returns ITextPieceContainer where keeper is held. |
ITextLocator |
getTextLocator()
Returns ITextLocator for this keeper. |
ITextPieceInfo |
getTextPieceInfo()
Returns ITextPieceInfo about keeper's text piece. |
String |
getWholeTextToPosition(int index)
Returns text before keeper's text from node + substring of keeper's text to position index. |
void |
select()
Selects whole text. |
void |
select(int start,
int end)
Selects text starting at position start and ending at position end - 1. |
Method Detail |
---|
ITextPieceContainer getTextContainer()
ITextLocator getTextLocator()
ITextPieceInfo getTextPieceInfo()
String getPreviousText()
String getWholeTextToPosition(int index)
index
- local position in text
String getText()
ITextPieceSelectionStatus getSelectionStatus()
void select()
void select(int start, int end)
start
- index of first character in the selectionend
- index of first character that is not in the selectionvoid deselect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |