Top Inners Fields Constructors Methods
com.sun.webkit.dom

public Class RangeImpl

extends Object
implements Range
Class Inheritance
All Implemented Interfaces
org.w3c.dom.ranges.Range
Imports
com.sun.webkit.Disposer, .DisposerRecord, org.w3c.dom.DOMException, .DocumentFragment, .Node, org.w3c.dom.ranges.Range

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField 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

Constructor Summary

AccessConstructor and Description
pack-priv
RangeImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
public DocumentFragment
cloneContents()

Implements org.w3c.dom.ranges.Range.cloneContents.

Duplicates the contents of a Range

pack-priv static native long
cloneContentsImpl(long peer)

public Range
cloneRange()

Implements org.w3c.dom.ranges.Range.cloneRange.

Produces a new Range whose boundary-points are equal to the boundary-points of the Range.

pack-priv static native long
cloneRangeImpl(long peer)

public void
collapse(boolean
If TRUE, collapses the Range onto its start; if FALSE, collapses it onto its end.
toStart
)

Implements org.w3c.dom.ranges.Range.collapse.

Collapse a Range onto one of its boundary-points

pack-priv static native void
collapseImpl(long peer, boolean toStart)

public short
compareBoundaryPoints(short
A code representing the type of comparison, as defined above.
how
,
Range
The Range on which this current Range is compared to.
sourceRange
)

Implements org.w3c.dom.ranges.Range.compareBoundaryPoints.

Compare the boundary-points of two Ranges in a document.

pack-priv static native short
compareBoundaryPointsImpl(long peer, short how, long sourceRange)

public short
compareNode(Node refNode)

pack-priv static native short
compareNodeImpl(long peer, long refNode)

public short
comparePoint(Node refNode, int offset)

pack-priv static native short
comparePointImpl(long peer, long refNode, int offset)

pack-priv static Range
create(long peer)

public DocumentFragment
pack-priv static native long
public void
deleteContents()

Implements org.w3c.dom.ranges.Range.deleteContents.

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
deleteContentsImpl(long peer)

public void
detach()

Implements org.w3c.dom.ranges.Range.detach.

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
detachImpl(long peer)

private static native void
dispose(long peer)

public boolean
equals(Object
the reference object with which to compare.
that
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public void
expand(String unit)

pack-priv static native void
expandImpl(long peer, String unit)

public DocumentFragment
extractContents()

Implements org.w3c.dom.ranges.Range.extractContents.

Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment.

pack-priv static native long
public boolean
getCollapsed()

Implements org.w3c.dom.ranges.Range.getCollapsed.

TRUE if the Range is collapsed

pack-priv static native boolean
getCollapsedImpl(long peer)

public Node
getCommonAncestorContainer()

Implements org.w3c.dom.ranges.Range.getCommonAncestorContainer.

The deepest common ancestor container of the Range's two boundary-points.

pack-priv static native long
public Node
getEndContainer()

Implements org.w3c.dom.ranges.Range.getEndContainer.

Node within which the Range ends

pack-priv static native long
public int
getEndOffset()

Implements org.w3c.dom.ranges.Range.getEndOffset.

Offset within the ending node of the Range.

pack-priv static native int
getEndOffsetImpl(long peer)

pack-priv static Range
getImpl(long peer)

pack-priv long
pack-priv static long
public Node
getStartContainer()

Implements org.w3c.dom.ranges.Range.getStartContainer.

Node within which the Range begins

pack-priv static native long
public int
getStartOffset()

Implements org.w3c.dom.ranges.Range.getStartOffset.

Offset within the starting node of the Range.

pack-priv static native int
getStartOffsetImpl(long peer)

public String
pack-priv static native String
getTextImpl(long peer)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
insertNode(Node
The node to insert at the start of the Range
newNode
)

Implements org.w3c.dom.ranges.Range.insertNode.

Inserts a node into the Document or DocumentFragment at the start of the Range.

pack-priv static native void
insertNodeImpl(long peer, long newNode)

public boolean
pack-priv static native boolean
intersectsNodeImpl(long peer, long refNode)

public boolean
isPointInRange(Node refNode, int offset)

pack-priv static native boolean
isPointInRangeImpl(long peer, long refNode, int offset)

public void
selectNode(Node
The node to select.
refNode
)

Implements org.w3c.dom.ranges.Range.selectNode.

Select a node and its contents

public void
selectNodeContents(Node
Node to select from
refNode
)

Implements org.w3c.dom.ranges.Range.selectNodeContents.

Select the contents within a node

pack-priv static native void
selectNodeContentsImpl(long peer, long refNode)

pack-priv static native void
selectNodeImpl(long peer, long refNode)

public void
setEnd(Node
The refNode value. This parameter must be different from null.
refNode
,
int
The endOffset value.
offset
)

Implements org.w3c.dom.ranges.Range.setEnd.

Sets the attributes describing the end of a Range.

public void
setEndAfter(Node
Range ends after refNode.
refNode
)

Implements org.w3c.dom.ranges.Range.setEndAfter.

Sets the end of a Range to be after a node

pack-priv static native void
setEndAfterImpl(long peer, long refNode)

public void
setEndBefore(Node
Range ends before refNode
refNode
)

Implements org.w3c.dom.ranges.Range.setEndBefore.

Sets the end position to be before a node.

pack-priv static native void
setEndBeforeImpl(long peer, long refNode)

pack-priv static native void
setEndImpl(long peer, long refNode, int offset)

public void
setStart(Node
The refNode value. This parameter must be different from null.
refNode
,
int
The startOffset value.
offset
)

Implements org.w3c.dom.ranges.Range.setStart.

Sets the attributes describing the start of the Range.

public void
setStartAfter(Node
Range starts after refNode
refNode
)

Implements org.w3c.dom.ranges.Range.setStartAfter.

Sets the start position to be after a node

pack-priv static native void
setStartAfterImpl(long peer, long refNode)

public void
setStartBefore(Node
Range starts before refNode
refNode
)

Implements org.w3c.dom.ranges.Range.setStartBefore.

Sets the start position to be before a node

pack-priv static native void
setStartBeforeImpl(long peer, long refNode)

pack-priv static native void
setStartImpl(long peer, long refNode, int offset)

public void
surroundContents(Node
The node to surround the contents with.
newParent
)

Implements org.w3c.dom.ranges.Range.surroundContents.

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
surroundContentsImpl(long peer, long newParent)

public String
toString()

Overrides java.lang.Object.toString.

Implements org.w3c.dom.ranges.Range.toString.

Returns the contents of a Range as a string.

pack-priv static native String
toStringImpl(long peer)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

END_TO_ENDback to summary
public static final int END_TO_END

Hides org.w3c.dom.ranges.Range.END_TO_END.

END_TO_STARTback to summary
public static final int END_TO_START

Hides org.w3c.dom.ranges.Range.END_TO_START.

NODE_AFTERback to summary
public static final int NODE_AFTER
NODE_BEFOREback to summary
public static final int NODE_BEFORE
NODE_BEFORE_AND_AFTERback to summary
public static final int NODE_BEFORE_AND_AFTER
NODE_INSIDEback to summary
public static final int NODE_INSIDE
peerback to summary
private final long peer
START_TO_ENDback to summary
public static final int START_TO_END

Hides org.w3c.dom.ranges.Range.START_TO_END.

START_TO_STARTback to summary
public static final int START_TO_START

Hides org.w3c.dom.ranges.Range.START_TO_START.

Constructor Detail

RangeImplback to summary
pack-priv RangeImpl(long peer)

Method Detail

cloneContentsback to summary
public DocumentFragment cloneContents() throws DOMException

Implements org.w3c.dom.ranges.Range.cloneContents.

Doc from org.w3c.dom.ranges.Range.cloneContents.

Duplicates the contents of a Range

Returns:DocumentFragment

A DocumentFragment that contains content equivalent to this Range.

Exceptions
DOMException:
HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be extracted into the new DocumentFragment.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
cloneContentsImplback to summary
pack-priv static native long cloneContentsImpl(long peer)
cloneRangeback to summary
public Range cloneRange()

Implements org.w3c.dom.ranges.Range.cloneRange.

Doc from org.w3c.dom.ranges.Range.cloneRange.

Produces a new Range whose boundary-points are equal to the boundary-points of the Range.

Returns:Range

The duplicated Range.

cloneRangeImplback to summary
pack-priv static native long cloneRangeImpl(long peer)
collapseback to summary
public void collapse(boolean toStart)

Implements org.w3c.dom.ranges.Range.collapse.

Doc from org.w3c.dom.ranges.Range.collapse.

Collapse a Range onto one of its boundary-points

Parameters
toStart:boolean

If TRUE, collapses the Range onto its start; if FALSE, collapses it onto its end.

collapseImplback to summary
pack-priv static native void collapseImpl(long peer, boolean toStart)
compareBoundaryPointsback to summary
public short compareBoundaryPoints(short how, Range sourceRange) throws DOMException

Implements org.w3c.dom.ranges.Range.compareBoundaryPoints.

Doc from org.w3c.dom.ranges.Range.compareBoundaryPoints.

Compare the boundary-points of two Ranges in a document.

Parameters
how:short

A code representing the type of comparison, as defined above.

sourceRange:Range

The Range on which this current Range is compared to.

Returns:short

-1, 0 or 1 depending on whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of sourceRange.

Exceptions
DOMException:
WRONG_DOCUMENT_ERR: Raised if the two Ranges are not in the same Document or DocumentFragment.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
compareBoundaryPointsImplback to summary
pack-priv static native short compareBoundaryPointsImpl(long peer, short how, long sourceRange)
compareNodeback to summary
public short compareNode(Node refNode) throws DOMException
compareNodeImplback to summary
pack-priv static native short compareNodeImpl(long peer, long refNode)
comparePointback to summary
public short comparePoint(Node refNode, int offset) throws DOMException
comparePointImplback to summary
pack-priv static native short comparePointImpl(long peer, long refNode, int offset)
createback to summary
pack-priv static Range create(long peer)
createContextualFragmentback to summary
public DocumentFragment createContextualFragment(String html) throws DOMException
createContextualFragmentImplback to summary
pack-priv static native long createContextualFragmentImpl(long peer, String html)
deleteContentsback to summary
public void deleteContents() throws DOMException

Implements org.w3c.dom.ranges.Range.deleteContents.

Doc from org.w3c.dom.ranges.Range.deleteContents.

Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content.

Exceptions
DOMException:
NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of the Range is read-only or any of the nodes that contain any of the content of the Range are read-only.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
deleteContentsImplback to summary
pack-priv static native void deleteContentsImpl(long peer)
detachback to summary
public void detach()

Implements org.w3c.dom.ranges.Range.detach.

Doc from org.w3c.dom.ranges.Range.detach.

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 DOMException being thrown with an error code of INVALID_STATE_ERR.

detachImplback to summary
pack-priv static native void detachImpl(long peer)
disposeback to summary
private static native void dispose(long peer)
equalsback to summary
public boolean equals(Object that)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

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.

Parameters
that:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
expandback to summary
public void expand(String unit) throws DOMException
expandImplback to summary
pack-priv static native void expandImpl(long peer, String unit)
extractContentsback to summary
public DocumentFragment extractContents() throws DOMException

Implements org.w3c.dom.ranges.Range.extractContents.

Doc from org.w3c.dom.ranges.Range.extractContents.

Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment.

Returns:DocumentFragment

A DocumentFragment containing the extracted contents.

Exceptions
DOMException:
NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of the Range is read-only or any of the nodes which contain any of the content of the Range are read-only.
HIERARCHY_REQUEST_ERR: Raised if a DocumentType node would be extracted into the new DocumentFragment.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
extractContentsImplback to summary
pack-priv static native long extractContentsImpl(long peer)
getCollapsedback to summary
public boolean getCollapsed()

Implements org.w3c.dom.ranges.Range.getCollapsed.

Doc from org.w3c.dom.ranges.Range.getCollapsed.

TRUE if the Range is collapsed

getCollapsedImplback to summary
pack-priv static native boolean getCollapsedImpl(long peer)
getCommonAncestorContainerback to summary
public Node getCommonAncestorContainer()

Implements org.w3c.dom.ranges.Range.getCommonAncestorContainer.

Doc from org.w3c.dom.ranges.Range.getCommonAncestorContainer.

The deepest common ancestor container of the Range's two boundary-points.

getCommonAncestorContainerImplback to summary
pack-priv static native long getCommonAncestorContainerImpl(long peer)
getEndContainerback to summary
public Node getEndContainer()

Implements org.w3c.dom.ranges.Range.getEndContainer.

Doc from org.w3c.dom.ranges.Range.getEndContainer.

Node within which the Range ends

getEndContainerImplback to summary
pack-priv static native long getEndContainerImpl(long peer)
getEndOffsetback to summary
public int getEndOffset()

Implements org.w3c.dom.ranges.Range.getEndOffset.

Doc from org.w3c.dom.ranges.Range.getEndOffset.

Offset within the ending node of the Range.

getEndOffsetImplback to summary
pack-priv static native int getEndOffsetImpl(long peer)
getImplback to summary
pack-priv static Range getImpl(long peer)
getPeerback to summary
pack-priv long getPeer()
getPeerback to summary
pack-priv static long getPeer(Range arg)
getStartContainerback to summary
public Node getStartContainer()

Implements org.w3c.dom.ranges.Range.getStartContainer.

Doc from org.w3c.dom.ranges.Range.getStartContainer.

Node within which the Range begins

getStartContainerImplback to summary
pack-priv static native long getStartContainerImpl(long peer)
getStartOffsetback to summary
public int getStartOffset()

Implements org.w3c.dom.ranges.Range.getStartOffset.

Doc from org.w3c.dom.ranges.Range.getStartOffset.

Offset within the starting node of the Range.

getStartOffsetImplback to summary
pack-priv static native int getStartOffsetImpl(long peer)
getTextback to summary
public String getText()
getTextImplback to summary
pack-priv static native String getTextImpl(long peer)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
insertNodeback to summary
public void insertNode(Node newNode) throws DOMException

Implements org.w3c.dom.ranges.Range.insertNode.

Doc from org.w3c.dom.ranges.Range.insertNode.

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.

Parameters
newNode:Node

The node to insert at the start of the Range

Exceptions
DOMException:
NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of the start of the Range is read-only.
WRONG_DOCUMENT_ERR: Raised if newNode and the container of the start of the Range were not created from the same document.
HIERARCHY_REQUEST_ERR: Raised if the container of the start of the Range is of a type that does not allow children of the type of newNode or if newNode is an ancestor of the container.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
insertNodeImplback to summary
pack-priv static native void insertNodeImpl(long peer, long newNode)
intersectsNodeback to summary
public boolean intersectsNode(Node refNode) throws DOMException
intersectsNodeImplback to summary
pack-priv static native boolean intersectsNodeImpl(long peer, long refNode)
isPointInRangeback to summary
public boolean isPointInRange(Node refNode, int offset) throws DOMException
isPointInRangeImplback to summary
pack-priv static native boolean isPointInRangeImpl(long peer, long refNode, int offset)
selectNodeback to summary
public void selectNode(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.selectNode.

Doc from org.w3c.dom.ranges.Range.selectNode.

Select a node and its contents

Parameters
refNode:Node

The node to select.

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
selectNodeContentsback to summary
public void selectNodeContents(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.selectNodeContents.

Doc from org.w3c.dom.ranges.Range.selectNodeContents.

Select the contents within a node

Parameters
refNode:Node

Node to select from

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
selectNodeContentsImplback to summary
pack-priv static native void selectNodeContentsImpl(long peer, long refNode)
selectNodeImplback to summary
pack-priv static native void selectNodeImpl(long peer, long refNode)
setEndback to summary
public void setEnd(Node refNode, int offset) throws DOMException

Implements org.w3c.dom.ranges.Range.setEnd.

Doc from org.w3c.dom.ranges.Range.setEnd.

Sets the attributes describing the end of a Range.

Parameters
refNode:Node

The refNode value. This parameter must be different from null.

offset:int

The endOffset value.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if offset is negative or greater than the number of child units in refNode. Child units are 16-bit units if refNode is a type of CharacterData node (e.g., a Text or Comment node) or a ProcessingInstruction node. Child units are Nodes in all other cases.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setEndAfterback to summary
public void setEndAfter(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.setEndAfter.

Doc from org.w3c.dom.ranges.Range.setEndAfter.

Sets the end of a Range to be after a node

Parameters
refNode:Node

Range ends after refNode.

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setEndAfterImplback to summary
pack-priv static native void setEndAfterImpl(long peer, long refNode)
setEndBeforeback to summary
public void setEndBefore(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.setEndBefore.

Doc from org.w3c.dom.ranges.Range.setEndBefore.

Sets the end position to be before a node.

Parameters
refNode:Node

Range ends before refNode

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setEndBeforeImplback to summary
pack-priv static native void setEndBeforeImpl(long peer, long refNode)
setEndImplback to summary
pack-priv static native void setEndImpl(long peer, long refNode, int offset)
setStartback to summary
public void setStart(Node refNode, int offset) throws DOMException

Implements org.w3c.dom.ranges.Range.setStart.

Doc from org.w3c.dom.ranges.Range.setStart.

Sets the attributes describing the start of the Range.

Parameters
refNode:Node

The refNode value. This parameter must be different from null.

offset:int

The startOffset value.

Exceptions
DOMException:
INDEX_SIZE_ERR: Raised if offset is negative or greater than the number of child units in refNode. Child units are 16-bit units if refNode is a type of CharacterData node (e.g., a Text or Comment node) or a ProcessingInstruction node. Child units are Nodes in all other cases.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setStartAfterback to summary
public void setStartAfter(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.setStartAfter.

Doc from org.w3c.dom.ranges.Range.setStartAfter.

Sets the start position to be after a node

Parameters
refNode:Node

Range starts after refNode

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setStartAfterImplback to summary
pack-priv static native void setStartAfterImpl(long peer, long refNode)
setStartBeforeback to summary
public void setStartBefore(Node refNode) throws DOMException

Implements org.w3c.dom.ranges.Range.setStartBefore.

Doc from org.w3c.dom.ranges.Range.setStartBefore.

Sets the start position to be before a node

Parameters
refNode:Node

Range starts before refNode

Exceptions
DOMException:
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
WRONG_DOCUMENT_ERR: Raised if refNode was created from a different document than the one that created this range.
setStartBeforeImplback to summary
pack-priv static native void setStartBeforeImpl(long peer, long refNode)
setStartImplback to summary
pack-priv static native void setStartImpl(long peer, long refNode, int offset)
surroundContentsback to summary
public void surroundContents(Node newParent) throws DOMException

Implements org.w3c.dom.ranges.Range.surroundContents.

Doc from org.w3c.dom.ranges.Range.surroundContents.

Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range.

Parameters
newParent:Node

The node to surround the contents with.

Exceptions
DOMException:
NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of either boundary-point of the Range is read-only.
WRONG_DOCUMENT_ERR: Raised if newParent and the container of the start of the Range were not created from the same document.
HIERARCHY_REQUEST_ERR: Raised if the container of the start of the Range is of a type that does not allow children of the type of newParent or if newParent is an ancestor of the container or if node would end up with a child node of a type not allowed by the type of node.
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.
surroundContentsImplback to summary
pack-priv static native void surroundContentsImpl(long peer, long newParent)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.w3c.dom.ranges.Range.toString.

Doc from org.w3c.dom.ranges.Range.toString.

Returns the contents of a Range as a string. This string contains only the data characters, not any markup.

Returns:String

The contents of the Range.

toStringImplback to summary
pack-priv static native String toStringImpl(long peer)
com.sun.webkit.dom back to summary

private Class RangeImpl.SelfDisposer

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
com.sun.webkit.DisposerRecord

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
SelfDisposer(final long peer)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

SelfDisposerback to summary
pack-priv SelfDisposer(final long peer)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.