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
-
Method Summary
Modifier and TypeMethodDescriptioncloneContents.void
collapse
(boolean toStart) createContextualFragment
(String newHtml) void
void
detach()
extractContents.boolean
getCommonAncestorContainer.int
getCompareBoundaryPoints
(int how, Range sourceRange) compareBoundaryPoints.short
short
getEndContainer.int
short
short
getStartContainer.int
void
insertNode
(Node newNode) void
selectNode
(Node refNode) void
selectNodeContents
(Node refNode) void
void
setEndAfter
(Node refNode) void
setEndBefore
(Node refNode) void
void
setStartAfter
(Node refNode) void
setStartBefore
(Node refNode) void
surroundContents
(Node newParent) toString()
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
RangeImpl
-
-
Method Details
-
getStartContainer
Description copied from interface:Range
getStartContainer.
- Specified by:
getStartContainer
in interfaceRange
- Returns:
- a
Node
object. - Throws:
DOMException
-
getStartOffset
- Specified by:
getStartOffset
in interfaceRange
- Throws:
DOMException
-
getEndContainer
Description copied from interface:Range
getEndContainer.
- Specified by:
getEndContainer
in interfaceRange
- Returns:
- a
Node
object. - Throws:
DOMException
-
getEndOffset
- Specified by:
getEndOffset
in interfaceRange
- Throws:
DOMException
-
getCollapsed
- Specified by:
getCollapsed
in interfaceRange
- Throws:
DOMException
-
createContextualFragment
- Specified by:
createContextualFragment
in interfaceRange
-
getCommonAncestorContainer
Description copied from interface:Range
getCommonAncestorContainer.
- Specified by:
getCommonAncestorContainer
in interfaceRange
- Returns:
- a
Node
object.
-
setStart
- Specified by:
setStart
in interfaceRange
- Throws:
RangeException
DOMException
-
setEnd
- Specified by:
setEnd
in interfaceRange
- Throws:
RangeException
DOMException
-
setStartBefore
- Specified by:
setStartBefore
in interfaceRange
- Throws:
RangeException
-
setStartAfter
- Specified by:
setStartAfter
in interfaceRange
- Throws:
RangeException
-
setEndBefore
- Specified by:
setEndBefore
in interfaceRange
- Throws:
RangeException
-
setEndAfter
- Specified by:
setEndAfter
in interfaceRange
- Throws:
RangeException
-
collapse
- Specified by:
collapse
in interfaceRange
- Throws:
DOMException
-
selectNode
- Specified by:
selectNode
in interfaceRange
- Throws:
RangeException
-
selectNodeContents
- Specified by:
selectNodeContents
in interfaceRange
- Throws:
RangeException
-
getCompareBoundaryPoints
Description copied from interface:Range
compareBoundaryPoints.
- Specified by:
getCompareBoundaryPoints
in interfaceRange
- Parameters:
how
-sourceRange
- aRange
object.- Returns:
- a
Integer
object. - Throws:
DOMException
-
deleteContents
- Specified by:
deleteContents
in interfaceRange
- Throws:
DOMException
-
extractContents
Description copied from interface:Range
extractContents.
- Specified by:
extractContents
in interfaceRange
- Returns:
- a
DocumentFragment
object. - Throws:
DOMException
-
cloneContents
Description copied from interface:Range
cloneContents.
- Specified by:
cloneContents
in interfaceRange
- Returns:
- a
DocumentFragment
object. - Throws:
DOMException
-
insertNode
- Specified by:
insertNode
in interfaceRange
- Throws:
DOMException
RangeException
-
surroundContents
- Specified by:
surroundContents
in interfaceRange
- Throws:
DOMException
RangeException
-
cloneRange
- Specified by:
cloneRange
in interfaceRange
- Throws:
DOMException
-
detach
- Specified by:
detach
in interfaceRange
- Throws:
DOMException
-
getClientRects
- Specified by:
getClientRects
in interfaceRange
-
getBoundingClientRect
- Specified by:
getBoundingClientRect
in 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()
-