Class SelectionImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.dom.nodeimpl.SelectionImpl
- All Implemented Interfaces:
Selection
,ScriptableDelegate
SelectionImpl class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRange.void
collapse.void
collapse.void
collapseToEnd.void
collapseToStart.boolean
containsNode
(Node node) containsNode.boolean
containsNode
(Node node, boolean allowPartialContainment) containsNode.void
deleteFromDocument.void
empty()
empty.void
extend.void
extend.getAnchorNode.int
getAnchorOffset.getFocusNode.int
getFocusOffset.getRangeAt
(int index) getRangeAt.int
getRangeCount.getType()
getType.boolean
isIsCollapsed.void
removeAllRanges.void
removeRange
(Range range) removeRange.void
selectAllChildren
(Node node) selectAllChildren.void
setBaseAndExtent
(Node anchorNode, int anchorOffset, Node focusNode, int focusOffset) setBaseAndExtent.void
setPosition
(Node node) setPosition.void
setPosition
(Node node, int offset) setPosition.Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
SelectionImpl
public SelectionImpl()
-
-
Method Details
-
getAnchorNode
Description copied from interface:Selection
getAnchorNode.
- Specified by:
getAnchorNode
in interfaceSelection
- Returns:
- a
Node
object.
-
getAnchorOffset
public int getAnchorOffset()Description copied from interface:Selection
getAnchorOffset.
- Specified by:
getAnchorOffset
in interfaceSelection
- Returns:
- a
Integer
object.
-
getFocusNode
Description copied from interface:Selection
getFocusNode.
- Specified by:
getFocusNode
in interfaceSelection
- Returns:
- a
Node
object.
-
getFocusOffset
public int getFocusOffset()Description copied from interface:Selection
getFocusOffset.
- Specified by:
getFocusOffset
in interfaceSelection
- Returns:
- a
Integer
object.
-
isIsCollapsed
public boolean isIsCollapsed()Description copied from interface:Selection
isIsCollapsed.
- Specified by:
isIsCollapsed
in interfaceSelection
- Returns:
- a boolean.
-
getRangeCount
public int getRangeCount()Description copied from interface:Selection
getRangeCount.
- Specified by:
getRangeCount
in interfaceSelection
- Returns:
- a
Integer
object.
-
getType
Description copied from interface:Selection
getType.
-
addRange
Description copied from interface:Selection
addRange.
-
collapse
Description copied from interface:Selection
collapse.
-
collapse
Description copied from interface:Selection
collapse.
-
collapseToEnd
public void collapseToEnd()Description copied from interface:Selection
collapseToEnd.
- Specified by:
collapseToEnd
in interfaceSelection
-
collapseToStart
public void collapseToStart()Description copied from interface:Selection
collapseToStart.
- Specified by:
collapseToStart
in interfaceSelection
-
containsNode
Description copied from interface:Selection
containsNode.
- Specified by:
containsNode
in interfaceSelection
- Parameters:
node
- aNode
object.allowPartialContainment
- a boolean.- Returns:
- a boolean.
-
containsNode
Description copied from interface:Selection
containsNode.
- Specified by:
containsNode
in interfaceSelection
- Parameters:
node
- aNode
object.- Returns:
- a boolean.
-
deleteFromDocument
public void deleteFromDocument()Description copied from interface:Selection
deleteFromDocument.
- Specified by:
deleteFromDocument
in interfaceSelection
-
empty
public void empty()Description copied from interface:Selection
empty.
-
extend
Description copied from interface:Selection
extend.
-
extend
Description copied from interface:Selection
extend.
-
getRangeAt
Description copied from interface:Selection
getRangeAt.
- Specified by:
getRangeAt
in interfaceSelection
- Parameters:
index
- aInteger
object.- Returns:
- a
Range
object.
-
removeAllRanges
public void removeAllRanges()Description copied from interface:Selection
removeAllRanges.
- Specified by:
removeAllRanges
in interfaceSelection
-
removeRange
Description copied from interface:Selection
removeRange.
- Specified by:
removeRange
in interfaceSelection
- Parameters:
range
- aRange
object.
-
selectAllChildren
Description copied from interface:Selection
selectAllChildren.
- Specified by:
selectAllChildren
in interfaceSelection
- Parameters:
node
- aNode
object.
-
setBaseAndExtent
Description copied from interface:Selection
setBaseAndExtent.
-
setPosition
Description copied from interface:Selection
setPosition.
- Specified by:
setPosition
in interfaceSelection
- Parameters:
node
- aNode
object.offset
- aInteger
object.
-
setPosition
Description copied from interface:Selection
setPosition.
- Specified by:
setPosition
in interfaceSelection
- Parameters:
node
- aNode
object.
-