public class RangeImpl extends Object implements org.w3c.dom.ranges.Range
| Modifier and Type | Field and Description |
|---|---|
static int |
END_TO_END |
static int |
END_TO_START |
static int |
NODE_AFTER |
static int |
NODE_BEFORE |
static int |
NODE_BEFORE_AND_AFTER |
static int |
NODE_INSIDE |
static int |
START_TO_END |
static int |
START_TO_START |
public static final int START_TO_START
public static final int START_TO_END
public static final int END_TO_END
public static final int END_TO_START
public static final int NODE_BEFORE
public static final int NODE_AFTER
public static final int NODE_BEFORE_AND_AFTER
public static final int NODE_INSIDE
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 String getText()
public void setStart(Node refNode, int offset) throws DOMException
setStart in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void setEnd(Node refNode, int offset) throws DOMException
setEnd in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void setStartBefore(Node refNode) throws DOMException
setStartBefore in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void setStartAfter(Node refNode) throws DOMException
setStartAfter in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void setEndBefore(Node refNode) throws DOMException
setEndBefore in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void setEndAfter(Node refNode) throws DOMException
setEndAfter in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void collapse(boolean toStart)
collapse in interface org.w3c.dom.ranges.Rangepublic void selectNode(Node refNode) throws DOMException
selectNode in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void selectNodeContents(Node refNode) throws DOMException
selectNodeContents in interface org.w3c.dom.ranges.RangeDOMExceptionpublic 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
insertNode in interface org.w3c.dom.ranges.RangeDOMExceptionpublic void surroundContents(Node newParent) throws DOMException
surroundContents in interface org.w3c.dom.ranges.RangeDOMExceptionpublic 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 DocumentFragment createContextualFragment(String html) throws DOMException
DOMExceptionpublic short compareNode(Node refNode) throws DOMException
DOMExceptionpublic short comparePoint(Node refNode, int offset) throws DOMException
DOMExceptionpublic boolean intersectsNode(Node refNode) throws DOMException
DOMExceptionpublic boolean isPointInRange(Node refNode, int offset) throws DOMException
DOMExceptionpublic void expand(String unit) throws DOMException
DOMExceptionCopyright © 2025. All rights reserved.