public class RangeImpl extends Object implements org.w3c.dom.ranges.Range
Please see the API documentation for the interface classes and use the interfaces in your client programs.
END_TO_END, END_TO_START, START_TO_END, START_TO_START| Constructor and Description |
|---|
RangeImpl(DocumentImpl document)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DocumentFragment |
cloneContents() |
org.w3c.dom.ranges.Range |
cloneRange() |
void |
collapse(boolean toStart) |
short |
compareBoundaryPoints(short how,
org.w3c.dom.ranges.Range sourceRange) |
void |
deleteContents() |
void |
detach() |
DocumentFragment |
extractContents() |
boolean |
getCollapsed() |
Node |
getCommonAncestorContainer() |
Node |
getEndContainer() |
int |
getEndOffset() |
Node |
getStartContainer() |
int |
getStartOffset() |
void |
insertedNodeFromDOM(Node node)
This function is called from the DOM.
|
void |
insertNode(Node newNode) |
void |
selectNode(Node refNode) |
void |
selectNodeContents(Node refNode) |
void |
setEnd(Node refNode,
int offset) |
void |
setEndAfter(Node refNode) |
void |
setEndBefore(Node refNode) |
void |
setStart(Node refNode,
int offset) |
void |
setStartAfter(Node refNode) |
void |
setStartBefore(Node refNode) |
void |
surroundContents(Node newParent) |
String |
toString() |
public RangeImpl(DocumentImpl document)
public Node getStartContainer()
getStartContainer in interface org.w3c.dom.ranges.Rangepublic int getStartOffset()
getStartOffset in interface org.w3c.dom.ranges.Rangepublic Node getEndContainer()
getEndContainer in interface org.w3c.dom.ranges.Rangepublic int getEndOffset()
getEndOffset in interface org.w3c.dom.ranges.Rangepublic boolean getCollapsed()
getCollapsed in interface org.w3c.dom.ranges.Rangepublic Node getCommonAncestorContainer()
getCommonAncestorContainer in interface org.w3c.dom.ranges.Rangepublic void setStart(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException
setStart in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionDOMExceptionpublic void setEnd(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException
setEnd in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionDOMExceptionpublic void setStartBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
setStartBefore in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic void setStartAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
setStartAfter in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic void setEndBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
setEndBefore in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic void setEndAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
setEndAfter in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic void collapse(boolean toStart)
collapse in interface org.w3c.dom.ranges.Rangepublic void selectNode(Node refNode) throws org.w3c.dom.ranges.RangeException
selectNode in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic void selectNodeContents(Node refNode) throws org.w3c.dom.ranges.RangeException
selectNodeContents in interface org.w3c.dom.ranges.Rangeorg.w3c.dom.ranges.RangeExceptionpublic short compareBoundaryPoints(short how,
org.w3c.dom.ranges.Range sourceRange)
throws DOMException
compareBoundaryPoints in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void deleteContents()
throws DOMException
deleteContents in interface org.w3c.dom.ranges.RangeDOMExceptionpublic DocumentFragment extractContents() throws DOMException
extractContents in interface org.w3c.dom.ranges.RangeDOMExceptionpublic DocumentFragment cloneContents() throws DOMException
cloneContents in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void insertNode(Node newNode) throws DOMException, org.w3c.dom.ranges.RangeException
insertNode in interface org.w3c.dom.ranges.RangeDOMExceptionorg.w3c.dom.ranges.RangeExceptionpublic void surroundContents(Node newParent) throws DOMException, org.w3c.dom.ranges.RangeException
surroundContents in interface org.w3c.dom.ranges.RangeDOMExceptionorg.w3c.dom.ranges.RangeExceptionpublic org.w3c.dom.ranges.Range cloneRange()
cloneRange in interface org.w3c.dom.ranges.Rangepublic String toString()
toString in interface org.w3c.dom.ranges.RangetoString in class Objectpublic void detach()
detach in interface org.w3c.dom.ranges.Rangepublic void insertedNodeFromDOM(Node node)
Copyright © 2017 JBoss by Red Hat. All rights reserved.