public interface SelectableTextInput
SelectableTextSelectionDelegate
so that it can do its job.
This interface is not public because it is an internal contract.Modifier and Type | Method and Description |
---|---|
void |
focus()
Focuses this element.
|
Page |
getPage()
Returns the page which contains this element.
|
String |
getSelectedText()
Returns the selected text in this element, or
null if there is no selected text in this element. |
int |
getSelectionEnd()
Returns the end position of the selected text in this element.
|
int |
getSelectionStart()
Returns the start position of the selected text in this element.
|
String |
getText()
Returns all of the text in this element.
|
void |
select()
Focuses this element and selects all of its text.
|
void |
setSelectionEnd(int selectionEnd)
Sets the end position of the selected text in this element.
|
void |
setSelectionStart(int selectionStart)
Sets the start position of the selected text in this element.
|
void |
setText(String text)
Sets the text in this element.
|
Page getPage()
void focus()
void select()
String getText()
void setText(String text)
text
- the text to put in this elementString getSelectedText()
null
if there is no selected text in this element.null
if there is no selected text in this elementint getSelectionStart()
void setSelectionStart(int selectionStart)
selectionStart
- the start position of the selected text in this elementint getSelectionEnd()
void setSelectionEnd(int selectionEnd)
selectionEnd
- the end position of the selected text in this elementCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.