Package org.htmlunit.html.impl
Class SimpleSelectionDelegate
java.lang.Object
org.htmlunit.html.impl.SimpleSelectionDelegate
- All Implemented Interfaces:
Serializable
,SelectionDelegate
Contains selection-related functionality without an associated node.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
selectionStart_
private int selectionStart_ -
selectionEnd_
private int selectionEnd_
-
-
Constructor Details
-
SimpleSelectionDelegate
public SimpleSelectionDelegate()
-
-
Method Details
-
getSelectionStart
public int getSelectionStart()Returns the start position of the selected text in the owner element.- Specified by:
getSelectionStart
in interfaceSelectionDelegate
- Returns:
- the start position of the selected text in the owner element
-
setSelectionStart
public void setSelectionStart(int selectionStart) Sets the start position of the selected text in the owner element.- Specified by:
setSelectionStart
in interfaceSelectionDelegate
- Parameters:
selectionStart
- the start position of the selected text in the owner element
-
getSelectionEnd
public int getSelectionEnd()Returns the end position of the selected text in the owner element.- Specified by:
getSelectionEnd
in interfaceSelectionDelegate
- Returns:
- the end position of the selected text in the owner element
-
setSelectionEnd
public void setSelectionEnd(int selectionEnd) Sets the end position of the selected text in the owner element.- Specified by:
setSelectionEnd
in interfaceSelectionDelegate
- Parameters:
selectionEnd
- the end position of the selected text in the owner element
-