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.Range
public int getStartOffset()
getStartOffset
in interface org.w3c.dom.ranges.Range
public Node getEndContainer()
getEndContainer
in interface org.w3c.dom.ranges.Range
public int getEndOffset()
getEndOffset
in interface org.w3c.dom.ranges.Range
public boolean getCollapsed()
getCollapsed
in interface org.w3c.dom.ranges.Range
public Node getCommonAncestorContainer()
getCommonAncestorContainer
in interface org.w3c.dom.ranges.Range
public void setStart(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException
setStart
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
DOMException
public void setEnd(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException
setEnd
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
DOMException
public void setStartBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
setStartBefore
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public void setStartAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
setStartAfter
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public void setEndBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
setEndBefore
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public void setEndAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
setEndAfter
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public void collapse(boolean toStart)
collapse
in interface org.w3c.dom.ranges.Range
public void selectNode(Node refNode) throws org.w3c.dom.ranges.RangeException
selectNode
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public void selectNodeContents(Node refNode) throws org.w3c.dom.ranges.RangeException
selectNodeContents
in interface org.w3c.dom.ranges.Range
org.w3c.dom.ranges.RangeException
public short compareBoundaryPoints(short how, org.w3c.dom.ranges.Range sourceRange) throws DOMException
compareBoundaryPoints
in interface org.w3c.dom.ranges.Range
DOMException
public void deleteContents() throws DOMException
deleteContents
in interface org.w3c.dom.ranges.Range
DOMException
public DocumentFragment extractContents() throws DOMException
extractContents
in interface org.w3c.dom.ranges.Range
DOMException
public DocumentFragment cloneContents() throws DOMException
cloneContents
in interface org.w3c.dom.ranges.Range
DOMException
public void insertNode(Node newNode) throws DOMException, org.w3c.dom.ranges.RangeException
insertNode
in interface org.w3c.dom.ranges.Range
DOMException
org.w3c.dom.ranges.RangeException
public void surroundContents(Node newParent) throws DOMException, org.w3c.dom.ranges.RangeException
surroundContents
in interface org.w3c.dom.ranges.Range
DOMException
org.w3c.dom.ranges.RangeException
public org.w3c.dom.ranges.Range cloneRange()
cloneRange
in interface org.w3c.dom.ranges.Range
public String toString()
toString
in interface org.w3c.dom.ranges.Range
toString
in class Object
public void detach()
detach
in interface org.w3c.dom.ranges.Range
public void insertedNodeFromDOM(Node node)
Copyright © 2016 JBoss by Red Hat. All rights reserved.