Interface Range
- All Known Implementing Classes:
RangeImpl
public interface Range
A fragment of a document that can contain nodes and parts of text nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final short -
Method Summary
Modifier and TypeMethodDescriptioncloneContents.voidcollapse(boolean toStart) voidvoiddetach()extractContents.booleangetCommonAncestorContainer.intgetCompareBoundaryPoints(int how, Range sourceRange) compareBoundaryPoints.getEndContainer.intgetStartContainer.intvoidinsertNode(Node newNode) voidselectNode(Node refNode) voidselectNodeContents(Node refNode) voidvoidsetEndAfter(Node refNode) voidsetEndBefore(Node refNode) voidvoidsetStartAfter(Node refNode) voidsetStartBefore(Node refNode) voidsurroundContents(Node newParent) toString()
-
Field Details
-
START_TO_START
static final short START_TO_START- See Also:
-
START_TO_END
static final short START_TO_END- See Also:
-
END_TO_END
static final short END_TO_END- See Also:
-
END_TO_START
static final short END_TO_START- See Also:
-
-
Method Details
-
getStartContainer
getStartContainer.
- Returns:
- a
Nodeobject. - Throws:
DOMException
-
getStartOffset
- Throws:
DOMException
-
getEndContainer
getEndContainer.
- Returns:
- a
Nodeobject. - Throws:
DOMException
-
getEndOffset
- Throws:
DOMException
-
getCollapsed
- Throws:
DOMException
-
createContextualFragment
-
getCommonAncestorContainer
getCommonAncestorContainer.
- Returns:
- a
Nodeobject. - Throws:
DOMException
-
setStart
- Throws:
RangeExceptionDOMException
-
setEnd
- Throws:
RangeExceptionDOMException
-
setStartBefore
- Throws:
RangeExceptionDOMException
-
setStartAfter
- Throws:
RangeExceptionDOMException
-
setEndBefore
- Throws:
RangeExceptionDOMException
-
setEndAfter
- Throws:
RangeExceptionDOMException
-
collapse
- Throws:
DOMException
-
selectNode
- Throws:
RangeExceptionDOMException
-
selectNodeContents
- Throws:
RangeExceptionDOMException
-
getCompareBoundaryPoints
compareBoundaryPoints.
- Parameters:
how-sourceRange- aRangeobject.- Returns:
- a
Integerobject. - Throws:
DOMException
-
deleteContents
- Throws:
DOMException
-
extractContents
extractContents.
- Returns:
- a
DocumentFragmentobject. - Throws:
DOMException
-
cloneContents
cloneContents.
- Returns:
- a
DocumentFragmentobject. - Throws:
DOMException
-
insertNode
- Throws:
DOMExceptionRangeException
-
surroundContents
- Throws:
DOMExceptionRangeException
-
cloneRange
- Throws:
DOMException
-
toString
- Overrides:
toStringin classObject- Throws:
DOMException
-
detach
- Throws:
DOMException
-
getClientRects
DOMRectList getClientRects() -
getBoundingClientRect
DOMRect getBoundingClientRect()
-