Package org.htmlunit.html.impl
Interface SelectionDelegate
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
SelectableTextSelectionDelegate,SimpleSelectionDelegate
public interface SelectionDelegate extends java.io.SerializableContains selection-related functionality used by elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSelectionEnd()Returns the end position of the selected text in the owner element.intgetSelectionStart()Returns the start position of the selected text in the owner element.voidsetSelectionEnd(int selectionEnd)Sets the end position of the selected text in the owner element.voidsetSelectionStart(int selectionStart)Sets the start position of the selected text in the owner element.
-
-
-
Method Detail
-
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
-
-