| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final long | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public DocumentFragment | cloneContents()
Implements org. Duplicates the contents of a Range |
| pack-priv static native long | |
| public Range | cloneRange()
Implements org. Produces a new Range whose boundary-points are equal to the boundary-points of the Range. |
| pack-priv static native long | |
| public void | collapse(boolean
If TRUE, collapses the Range onto its start; if FALSE,
collapses it onto its end. toStart)Implements org. Collapse a Range onto one of its boundary-points |
| pack-priv static native void | |
| public short | compareBoundaryPoints(short
A code representing the type of comparison, as defined
above. how, Range The sourceRange)Range on which this current
Range is compared to.Implements org. Compare the boundary-points of two Ranges in a document. |
| pack-priv static native short | |
| public short | |
| pack-priv static native short | |
| public short | |
| pack-priv static native short | |
| pack-priv static Range | |
| public DocumentFragment | |
| pack-priv static native long | |
| public void | deleteContents()
Implements org. Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content. |
| pack-priv static native void | |
| public void | detach()
Implements org. Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range. |
| pack-priv static native void | |
| private static native void | |
| public boolean | equals(Object
the reference object with which to compare. that)Overrides java. Indicates whether some other object is "equal to" this one. |
| public void | |
| pack-priv static native void | |
| public DocumentFragment | extractContents()
Implements org. Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment. |
| pack-priv static native long | |
| public boolean | |
| pack-priv static native boolean | |
| public Node | getCommonAncestorContainer()
Implements org. The deepest common ancestor container of the Range's two boundary-points. |
| pack-priv static native long | |
| public Node | getEndContainer()
Implements org. Node within which the Range ends |
| pack-priv static native long | |
| public int | getEndOffset()
Implements org. Offset within the ending node of the Range. |
| pack-priv static native int | |
| pack-priv static Range | |
| pack-priv long | |
| pack-priv static long | |
| public Node | getStartContainer()
Implements org. Node within which the Range begins |
| pack-priv static native long | |
| public int | getStartOffset()
Implements org. Offset within the starting node of the Range. |
| pack-priv static native int | |
| public String | |
| pack-priv static native String | |
| public int | |
| public void | insertNode(Node
The node to insert at the start of the Range newNode)Implements org. Inserts a node into the Document or DocumentFragment at the start of the Range. |
| pack-priv static native void | |
| public boolean | |
| pack-priv static native boolean | |
| public boolean | |
| pack-priv static native boolean | |
| public void | selectNode(Node
The node to select. refNode)Implements org. Select a node and its contents |
| public void | selectNodeContents(Node
Node to select from refNode)Implements org. Select the contents within a node |
| pack-priv static native void | |
| pack-priv static native void | |
| public void | setEnd(Node
The refNode, int refNode value. This parameter must be
different from null.The offset)endOffset value.Implements org. Sets the attributes describing the end of a Range. |
| public void | setEndAfter(Node
Range ends after refNode)refNode.Implements org. Sets the end of a Range to be after a node |
| pack-priv static native void | |
| public void | setEndBefore(Node
Range ends before refNode)refNodeImplements org. Sets the end position to be before a node. |
| pack-priv static native void | |
| pack-priv static native void | |
| public void | setStart(Node
The refNode, int refNode value. This parameter must be
different from null.The offset)startOffset value.Implements org. Sets the attributes describing the start of the Range. |
| public void | setStartAfter(Node
Range starts after refNode)refNodeImplements org. Sets the start position to be after a node |
| pack-priv static native void | |
| public void | setStartBefore(Node
Range starts before refNode)refNodeImplements org. Sets the start position to be before a node |
| pack-priv static native void | |
| pack-priv static native void | |
| public void | surroundContents(Node
The node to surround the contents with. newParent)Implements org. Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range. |
| pack-priv static native void | |
| public String | toString()
Overrides java. Implements org. Returns the contents of a Range as a string. |
| pack-priv static native String |
| END_TO_END | back to summary |
|---|---|
| public static final int END_TO_END | |
| END_TO_START | back to summary |
|---|---|
| public static final int END_TO_START | |
| NODE_AFTER | back to summary |
|---|---|
| public static final int NODE_AFTER | |
| NODE_BEFORE | back to summary |
|---|---|
| public static final int NODE_BEFORE | |
| NODE_BEFORE_AND_AFTER | back to summary |
|---|---|
| public static final int NODE_BEFORE_AND_AFTER | |
| NODE_INSIDE | back to summary |
|---|---|
| public static final int NODE_INSIDE | |
| peer | back to summary |
|---|---|
| private final long peer | |
| START_TO_END | back to summary |
|---|---|
| public static final int START_TO_END | |
| START_TO_START | back to summary |
|---|---|
| public static final int START_TO_START | |
| RangeImpl | back to summary |
|---|---|
| pack-priv RangeImpl(long peer) | |
| cloneContents | back to summary |
|---|---|
| public DocumentFragment cloneContents() throws DOMException Implements org. Doc from org. Duplicates the contents of a Range
| |
| cloneContentsImpl | back to summary |
|---|---|
| pack-priv static native long cloneContentsImpl(long peer) | |
| cloneRange | back to summary |
|---|---|
| public Range cloneRange() Implements org. Doc from org. Produces a new Range whose boundary-points are equal to the boundary-points of the Range.
| |
| cloneRangeImpl | back to summary |
|---|---|
| pack-priv static native long cloneRangeImpl(long peer) | |
| collapse | back to summary |
|---|---|
| public void collapse(boolean toStart) Implements org. Doc from org. Collapse a Range onto one of its boundary-points
| |
| collapseImpl | back to summary |
|---|---|
| pack-priv static native void collapseImpl(long peer, boolean toStart) | |
| compareBoundaryPoints | back to summary |
|---|---|
| public short compareBoundaryPoints(short how, Range sourceRange) throws DOMException Implements org. Doc from org. Compare the boundary-points of two Ranges in a document.
| |
| compareBoundaryPointsImpl | back to summary |
|---|---|
| pack-priv static native short compareBoundaryPointsImpl(long peer, short how, long sourceRange) | |
| compareNode | back to summary |
|---|---|
| public short compareNode(Node refNode) throws DOMException | |
| compareNodeImpl | back to summary |
|---|---|
| pack-priv static native short compareNodeImpl(long peer, long refNode) | |
| comparePoint | back to summary |
|---|---|
| public short comparePoint(Node refNode, int offset) throws DOMException | |
| comparePointImpl | back to summary |
|---|---|
| pack-priv static native short comparePointImpl(long peer, long refNode, int offset) | |
| create | back to summary |
|---|---|
| pack-priv static Range create(long peer) | |
| createContextualFragment | back to summary |
|---|---|
| public DocumentFragment createContextualFragment(String html) throws DOMException | |
| createContextualFragmentImpl | back to summary |
|---|---|
| pack-priv static native long createContextualFragmentImpl(long peer, String html) | |
| deleteContents | back to summary |
|---|---|
| public void deleteContents() throws DOMException Implements org. Doc from org. Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content.
| |
| deleteContentsImpl | back to summary |
|---|---|
| pack-priv static native void deleteContentsImpl(long peer) | |
| detach | back to summary |
|---|---|
| public void detach() Implements org. Doc from org. Called to indicate that the Range is no longer in use and that the
implementation may relinquish any resources associated with this
Range. Subsequent calls to any methods or attribute getters on this
Range will result in a | |
| detachImpl | back to summary |
|---|---|
| pack-priv static native void detachImpl(long peer) | |
| dispose | back to summary |
|---|---|
| private static native void dispose(long peer) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| expand | back to summary |
|---|---|
| public void expand(String unit) throws DOMException | |
| expandImpl | back to summary |
|---|---|
| pack-priv static native void expandImpl(long peer, String unit) | |
| extractContents | back to summary |
|---|---|
| public DocumentFragment extractContents() throws DOMException Implements org. Doc from org. Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment.
| |
| extractContentsImpl | back to summary |
|---|---|
| pack-priv static native long extractContentsImpl(long peer) | |
| getCollapsed | back to summary |
|---|---|
| public boolean getCollapsed() Implements org. Doc from org. TRUE if the Range is collapsed | |
| getCollapsedImpl | back to summary |
|---|---|
| pack-priv static native boolean getCollapsedImpl(long peer) | |
| getCommonAncestorContainer | back to summary |
|---|---|
| public Node getCommonAncestorContainer() Implements org. Doc from org. The deepest common ancestor container of the Range's two boundary-points. | |
| getCommonAncestorContainerImpl | back to summary |
|---|---|
| pack-priv static native long getCommonAncestorContainerImpl(long peer) | |
| getEndContainer | back to summary |
|---|---|
| public Node getEndContainer() Implements org. Doc from org. Node within which the Range ends | |
| getEndContainerImpl | back to summary |
|---|---|
| pack-priv static native long getEndContainerImpl(long peer) | |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Implements org. Doc from org. Offset within the ending node of the Range. | |
| getEndOffsetImpl | back to summary |
|---|---|
| pack-priv static native int getEndOffsetImpl(long peer) | |
| getImpl | back to summary |
|---|---|
| pack-priv static Range getImpl(long peer) | |
| getPeer | back to summary |
|---|---|
| pack-priv long getPeer() | |
| getPeer | back to summary |
|---|---|
| pack-priv static long getPeer(Range arg) | |
| getStartContainer | back to summary |
|---|---|
| public Node getStartContainer() Implements org. Doc from org. Node within which the Range begins | |
| getStartContainerImpl | back to summary |
|---|---|
| pack-priv static native long getStartContainerImpl(long peer) | |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Implements org. Doc from org. Offset within the starting node of the Range. | |
| getStartOffsetImpl | back to summary |
|---|---|
| pack-priv static native int getStartOffsetImpl(long peer) | |
| getText | back to summary |
|---|---|
| public String getText() | |
| getTextImpl | back to summary |
|---|---|
| pack-priv static native String getTextImpl(long peer) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| insertNode | back to summary |
|---|---|
| public void insertNode(Node newNode) throws DOMException Implements org. Doc from org. Inserts a node into the Document or DocumentFragment at the start of the Range. If the container is a Text node, this will be split at the start of the Range (as if the Text node's splitText method was performed at the insertion point) and the insertion will occur between the two resulting Text nodes. Adjacent Text nodes will not be automatically merged. If the node to be inserted is a DocumentFragment node, the children will be inserted rather than the DocumentFragment node itself.
| |
| insertNodeImpl | back to summary |
|---|---|
| pack-priv static native void insertNodeImpl(long peer, long newNode) | |
| intersectsNode | back to summary |
|---|---|
| public boolean intersectsNode(Node refNode) throws DOMException | |
| intersectsNodeImpl | back to summary |
|---|---|
| pack-priv static native boolean intersectsNodeImpl(long peer, long refNode) | |
| isPointInRange | back to summary |
|---|---|
| public boolean isPointInRange(Node refNode, int offset) throws DOMException | |
| isPointInRangeImpl | back to summary |
|---|---|
| pack-priv static native boolean isPointInRangeImpl(long peer, long refNode, int offset) | |
| selectNode | back to summary |
|---|---|
| public void selectNode(Node refNode) throws DOMException Implements org. Doc from org. Select a node and its contents
| |
| selectNodeContents | back to summary |
|---|---|
| public void selectNodeContents(Node refNode) throws DOMException Implements org. Doc from org. Select the contents within a node
| |
| selectNodeContentsImpl | back to summary |
|---|---|
| pack-priv static native void selectNodeContentsImpl(long peer, long refNode) | |
| selectNodeImpl | back to summary |
|---|---|
| pack-priv static native void selectNodeImpl(long peer, long refNode) | |
| setEnd | back to summary |
|---|---|
| public void setEnd(Node refNode, int offset) throws DOMException Implements org. Doc from org. Sets the attributes describing the end of a Range.
| |
| setEndAfter | back to summary |
|---|---|
| public void setEndAfter(Node refNode) throws DOMException Implements org. Doc from org. Sets the end of a Range to be after a node
| |
| setEndAfterImpl | back to summary |
|---|---|
| pack-priv static native void setEndAfterImpl(long peer, long refNode) | |
| setEndBefore | back to summary |
|---|---|
| public void setEndBefore(Node refNode) throws DOMException Implements org. Doc from org. Sets the end position to be before a node.
| |
| setEndBeforeImpl | back to summary |
|---|---|
| pack-priv static native void setEndBeforeImpl(long peer, long refNode) | |
| setEndImpl | back to summary |
|---|---|
| pack-priv static native void setEndImpl(long peer, long refNode, int offset) | |
| setStart | back to summary |
|---|---|
| public void setStart(Node refNode, int offset) throws DOMException Implements org. Doc from org. Sets the attributes describing the start of the Range.
| |
| setStartAfter | back to summary |
|---|---|
| public void setStartAfter(Node refNode) throws DOMException Implements org. Doc from org. Sets the start position to be after a node
| |
| setStartAfterImpl | back to summary |
|---|---|
| pack-priv static native void setStartAfterImpl(long peer, long refNode) | |
| setStartBefore | back to summary |
|---|---|
| public void setStartBefore(Node refNode) throws DOMException Implements org. Doc from org. Sets the start position to be before a node
| |
| setStartBeforeImpl | back to summary |
|---|---|
| pack-priv static native void setStartBeforeImpl(long peer, long refNode) | |
| setStartImpl | back to summary |
|---|---|
| pack-priv static native void setStartImpl(long peer, long refNode, int offset) | |
| surroundContents | back to summary |
|---|---|
| public void surroundContents(Node newParent) throws DOMException Implements org. Doc from org. Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range.
| |
| surroundContentsImpl | back to summary |
|---|---|
| pack-priv static native void surroundContentsImpl(long peer, long newParent) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from org. Returns the contents of a Range as a string. This string contains only the data characters, not any markup.
| |
| toStringImpl | back to summary |
|---|---|
| pack-priv static native String toStringImpl(long peer) | |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| peer | back to summary |
|---|---|
| private final long peer | |
| SelfDisposer | back to summary |
|---|---|
| pack-priv SelfDisposer(final long peer) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. | |