public class DOMSelectionImpl extends Object
Modifier and Type | Method and Description |
---|---|
void |
addRange(org.w3c.dom.ranges.Range range) |
void |
collapse(Node node,
int index) |
void |
collapseToEnd() |
void |
collapseToStart() |
boolean |
containsNode(Node node,
boolean allowPartial) |
void |
deleteFromDocument() |
void |
empty() |
boolean |
equals(Object that) |
void |
extend(Node node,
int offset) |
Node |
getAnchorNode() |
int |
getAnchorOffset() |
Node |
getBaseNode() |
int |
getBaseOffset() |
Node |
getExtentNode() |
int |
getExtentOffset() |
Node |
getFocusNode() |
int |
getFocusOffset() |
boolean |
getIsCollapsed() |
org.w3c.dom.ranges.Range |
getRangeAt(int index) |
int |
getRangeCount() |
String |
getType() |
int |
hashCode() |
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) |
public Node getAnchorNode()
public int getAnchorOffset()
public Node getFocusNode()
public int getFocusOffset()
public boolean getIsCollapsed()
public int getRangeCount()
public Node getBaseNode()
public int getBaseOffset()
public Node getExtentNode()
public int getExtentOffset()
public String getType()
public void collapse(Node node, int index) throws DOMException
DOMException
public void collapseToEnd() throws DOMException
DOMException
public void collapseToStart() throws DOMException
DOMException
public void deleteFromDocument()
public boolean containsNode(Node node, boolean allowPartial)
public void selectAllChildren(Node node) throws DOMException
DOMException
public void extend(Node node, int offset) throws DOMException
DOMException
public org.w3c.dom.ranges.Range getRangeAt(int index) throws DOMException
DOMException
public void removeAllRanges()
public void addRange(org.w3c.dom.ranges.Range range)
public void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) throws DOMException
DOMException
public void setPosition(Node node, int offset) throws DOMException
DOMException
public void empty()
Copyright © 2020. All rights reserved.