|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectableTextInput
Internal interface which defines an input element which contains selectable text. This interface just keeps
the various implementations in sync as to selection functionality, and provides a definition of the functionality
required by the SelectionDelegate
so that it can do its job. This interface is not public because it is
an internal contract.
Field Summary |
---|
Method Summary | |
---|---|
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. |
Methods inherited from interface org.w3c.dom.Node |
---|
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 |
Method Detail |
---|
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 element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |