public interface SelectableTextInput extends Node
SelectionDelegate
so that it can do its job. This interface is not public because it is
an internal contract.ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
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.
|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
Page getPage()
void focus()
void select()
String getText()
void setText(String text)
text
- the text to put in this elementString getSelectedText()
int 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-2013 Gargoyle Software Inc.. All Rights Reserved.