public interface Selection
Modifier and Type | Method and Description |
---|---|
void |
addRange(Range range) |
void |
collapse(Node node,
int index) |
void |
collapseToEnd() |
void |
collapseToStart() |
boolean |
containsNode(Node node,
boolean allowPartial) |
void |
deleteFromDocument() |
void |
empty() |
void |
extend(Node node,
int offset) |
Node |
getAnchorNode() |
int |
getAnchorOffset() |
Node |
getBaseNode() |
int |
getBaseOffset() |
Node |
getExtentNode() |
int |
getExtentOffset() |
Node |
getFocusNode() |
int |
getFocusOffset() |
Range |
getRangeAt(int index) |
int |
getRangeCount() |
String |
getType() |
boolean |
isCollapsed() |
void |
modify(String alter,
String direction,
String granularity) |
void |
removeAllRanges() |
void |
selectAllChildren(Node node) |
void |
setBaseAndExtent(Node baseNode,
int baseOffset,
Node extentNode,
int extentOffset) |
void |
setPosition(Node node,
int offset) |
Node getAnchorNode()
int getAnchorOffset()
Node getBaseNode()
int getBaseOffset()
Node getExtentNode()
int getExtentOffset()
Node getFocusNode()
int getFocusOffset()
boolean isCollapsed()
int getRangeCount()
String getType()
void addRange(Range range)
void collapse(Node node, int index)
void collapseToEnd()
void collapseToStart()
boolean containsNode(Node node, boolean allowPartial)
void deleteFromDocument()
void empty()
void extend(Node node, int offset)
Range getRangeAt(int index)
void removeAllRanges()
void selectAllChildren(Node node)
void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset)
void setPosition(Node node, int offset)
Copyright © 2018. All rights reserved.