RingJavafor Ring

org.w3c.dom.ranges

3 classes of the module java.xml.

Load them with:

using {
	"org.w3c.dom.ranges"
}

All packages

DocumentRange#

interface · org.w3c.dom.ranges.DocumentRange

Methods

MethodRing callJava overloads
createRangecreateRange()Range createRange()

Range#

interface · org.w3c.dom.ranges.Range

Fields

NameTypeAccessIn Ring
START_TO_STARTshortconstant · statico.START_TO_START
START_TO_ENDshortconstant · statico.START_TO_END
END_TO_ENDshortconstant · statico.END_TO_END
END_TO_STARTshortconstant · statico.END_TO_START

Methods

MethodRing callJava overloads
cloneContentscloneContents()DocumentFragment cloneContents()
cloneRangecloneRange()Range cloneRange()
collapsecollapse(toStart)void collapse(boolean toStart)
compareBoundaryPointscompareBoundaryPoints(how,sourceRange)short compareBoundaryPoints(short how, Range sourceRange)
deleteContentsdeleteContents()void deleteContents()
detachdetach()void detach()
extractContentsextractContents()DocumentFragment extractContents()
getCollapsedgetCollapsed()boolean getCollapsed()
getCommonAncestorContainergetCommonAncestorContainer()Node getCommonAncestorContainer()
getEndContainergetEndContainer()Node getEndContainer()
getEndOffsetgetEndOffset()int getEndOffset()
getStartContainergetStartContainer()Node getStartContainer()
getStartOffsetgetStartOffset()int getStartOffset()
insertNodeinsertNode(newNode)void insertNode(Node newNode)
selectNodeselectNode(refNode)void selectNode(Node refNode)
selectNodeContentsselectNodeContents(refNode)void selectNodeContents(Node refNode)
setEndsetEnd(refNode,offset)void setEnd(Node refNode, int offset)
setEndAftersetEndAfter(refNode)void setEndAfter(Node refNode)
setEndBeforesetEndBefore(refNode)void setEndBefore(Node refNode)
setStartsetStart(refNode,offset)void setStart(Node refNode, int offset)
setStartAftersetStartAfter(refNode)void setStartAfter(Node refNode)
setStartBeforesetStartBefore(refNode)void setStartBefore(Node refNode)
surroundContentssurroundContents(newParent)void surroundContents(Node newParent)

RangeException#

class · extends RuntimeException · org.w3c.dom.ranges.RangeException

Constructors

new RangeException(short code, String message)

Ring: new RangeException(args) uses the constructor with the fewest parameters (at least one); new RangeException makes the object with the constructor without parameters; the others: (new RangeException).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
codeshortread, writeo.code o.code = v
BAD_BOUNDARYPOINTS_ERRshortconstant · statico.BAD_BOUNDARYPOINTS_ERR
INVALID_NODE_TYPE_ERRshortconstant · statico.INVALID_NODE_TYPE_ERR

The methods and fields of RuntimeException are inherited.

RingJava - use Java classes and methods from Ring programs.