The RangeImpl class implements the org.w3c.dom.range.Range interface.
Please see the API documentation for the interface classes
and use the interfaces in your client programs.
cloneContents
public DocumentFragment cloneContents()
throws DOMException
cloneRange
public Range cloneRange()
collapse
public void collapse(boolean toStart)
compareBoundaryPoints
public short compareBoundaryPoints(short how,
Range sourceRange)
throws DOMException
deleteContents
public void deleteContents()
throws DOMException
detach
public void detach()
extractContents
public DocumentFragment extractContents()
throws DOMException
getCollapsed
public boolean getCollapsed()
getCommonAncestorContainer
public Node getCommonAncestorContainer()
getEndContainer
public Node getEndContainer()
getEndOffset
public int getEndOffset()
getStartContainer
public Node getStartContainer()
getStartOffset
public int getStartOffset()
insertNode
public void insertNode(Node newNode)
throws DOMException,
RangeException
insertedNodeFromDOM
public void insertedNodeFromDOM(Node node)
This function is called from the DOM.
This node has already been inserted into the DOM.
Fix-up any offsets.
selectNode
public void selectNode(Node refNode)
throws RangeException
selectNodeContents
public void selectNodeContents(Node refNode)
throws RangeException
setEnd
public void setEnd(Node refNode,
int offset)
throws RangeException,
DOMException
setEndAfter
public void setEndAfter(Node refNode)
throws RangeException
setEndBefore
public void setEndBefore(Node refNode)
throws RangeException
setStart
public void setStart(Node refNode,
int offset)
throws RangeException,
DOMException
setStartAfter
public void setStartAfter(Node refNode)
throws RangeException
setStartBefore
public void setStartBefore(Node refNode)
throws RangeException
surroundContents
public void surroundContents(Node newParent)
throws DOMException,
RangeException
toString
public String toString()