Package org.htmlunit.html.impl
Class SimpleSelectionDelegate
- java.lang.Object
-
- org.htmlunit.html.impl.SimpleSelectionDelegate
-
- All Implemented Interfaces:
java.io.Serializable,SelectionDelegate
public class SimpleSelectionDelegate extends java.lang.Object implements SelectionDelegate
Contains selection-related functionality without an associated node.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intselectionEnd_private intselectionStart_
-
Constructor Summary
Constructors Constructor Description SimpleSelectionDelegate()
-
Method Summary
All Methods Instance Methods Concrete 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
public int getSelectionStart()
Returns the start position of the selected text in the owner element.- Specified by:
getSelectionStartin 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:
setSelectionStartin 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:
getSelectionEndin 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:
setSelectionEndin interfaceSelectionDelegate- Parameters:
selectionEnd- the end position of the selected text in the owner element
-
-