Class RangeImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.dom.nodeimpl.RangeImpl
- All Implemented Interfaces:
Range,ScriptableDelegate
RangeImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.ranges.Range
END_TO_END, END_TO_START, START_TO_END, START_TO_START -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneContents.voidcollapse(boolean toStart) createContextualFragment(String newHtml) voidvoiddetach()extractContents.booleangetCommonAncestorContainer.intgetCompareBoundaryPoints(int how, Range sourceRange) compareBoundaryPoints.shortshortgetEndContainer.intshortshortgetStartContainer.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()Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
RangeImpl
-
-
Method Details
-
getStartContainer
Description copied from interface:RangegetStartContainer.
- Specified by:
getStartContainerin interfaceRange- Returns:
- a
Nodeobject. - Throws:
DOMException
-
getStartOffset
- Specified by:
getStartOffsetin interfaceRange- Throws:
DOMException
-
getEndContainer
Description copied from interface:RangegetEndContainer.
- Specified by:
getEndContainerin interfaceRange- Returns:
- a
Nodeobject. - Throws:
DOMException
-
getEndOffset
- Specified by:
getEndOffsetin interfaceRange- Throws:
DOMException
-
getCollapsed
- Specified by:
getCollapsedin interfaceRange- Throws:
DOMException
-
createContextualFragment
- Specified by:
createContextualFragmentin interfaceRange
-
getCommonAncestorContainer
Description copied from interface:RangegetCommonAncestorContainer.
- Specified by:
getCommonAncestorContainerin interfaceRange- Returns:
- a
Nodeobject.
-
setStart
- Specified by:
setStartin interfaceRange- Throws:
RangeExceptionDOMException
-
setEnd
- Specified by:
setEndin interfaceRange- Throws:
RangeExceptionDOMException
-
setStartBefore
- Specified by:
setStartBeforein interfaceRange- Throws:
RangeException
-
setStartAfter
- Specified by:
setStartAfterin interfaceRange- Throws:
RangeException
-
setEndBefore
- Specified by:
setEndBeforein interfaceRange- Throws:
RangeException
-
setEndAfter
- Specified by:
setEndAfterin interfaceRange- Throws:
RangeException
-
collapse
- Specified by:
collapsein interfaceRange- Throws:
DOMException
-
selectNode
- Specified by:
selectNodein interfaceRange- Throws:
RangeException
-
selectNodeContents
- Specified by:
selectNodeContentsin interfaceRange- Throws:
RangeException
-
getCompareBoundaryPoints
Description copied from interface:RangecompareBoundaryPoints.
- Specified by:
getCompareBoundaryPointsin interfaceRange- Parameters:
how-sourceRange- aRangeobject.- Returns:
- a
Integerobject. - Throws:
DOMException
-
deleteContents
- Specified by:
deleteContentsin interfaceRange- Throws:
DOMException
-
extractContents
Description copied from interface:RangeextractContents.
- Specified by:
extractContentsin interfaceRange- Returns:
- a
DocumentFragmentobject. - Throws:
DOMException
-
cloneContents
Description copied from interface:RangecloneContents.
- Specified by:
cloneContentsin interfaceRange- Returns:
- a
DocumentFragmentobject. - Throws:
DOMException
-
insertNode
- Specified by:
insertNodein interfaceRange- Throws:
DOMExceptionRangeException
-
surroundContents
- Specified by:
surroundContentsin interfaceRange- Throws:
DOMExceptionRangeException
-
cloneRange
- Specified by:
cloneRangein interfaceRange- Throws:
DOMException
-
detach
- Specified by:
detachin interfaceRange- Throws:
DOMException
-
getClientRects
- Specified by:
getClientRectsin interfaceRange
-
getBoundingClientRect
- Specified by:
getBoundingClientRectin interfaceRange
-
toString
-
getEND_TO_START
public short getEND_TO_START() -
getEND_TO_END
public short getEND_TO_END() -
getSTART_TO_END
public short getSTART_TO_END() -
getSTART_TO_START
public short getSTART_TO_START()
-