Package org.htmlunit.html.impl
Interface SelectionDelegate
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SelectableTextSelectionDelegate
,SimpleSelectionDelegate
Contains selection-related functionality used by elements.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the end position of the selected text in the owner element.int
Returns the start position of the selected text in the owner element.void
setSelectionEnd
(int selectionEnd) Sets the end position of the selected text in the owner element.void
setSelectionStart
(int selectionStart) Sets the start position of the selected text in the owner element.
-
Method Details
-
getSelectionStart
int getSelectionStart()Returns the start position of the selected text in the owner element.- Returns:
- the start position of the selected text in the owner element
-
setSelectionStart
void setSelectionStart(int selectionStart) Sets the start position of the selected text in the owner element.- Parameters:
selectionStart
- the start position of the selected text in the owner element
-
getSelectionEnd
int getSelectionEnd()Returns the end position of the selected text in the owner element.- Returns:
- the end position of the selected text in the owner element
-
setSelectionEnd
void setSelectionEnd(int selectionEnd) Sets the end position of the selected text in the owner element.- Parameters:
selectionEnd
- the end position of the selected text in the owner element
-