|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.dom.InternetExplorerSelection
Defined in InternetExplorerSelection.js
Field Summary | |
Node |
anchorNode
The node in wich the selection begins. |
Integer |
anchorOffset
The number of characters that the selection's anchor is offset within the ancherNode. |
Node |
focusNode
The node in which the selection ends. |
Integer |
focusOffset
The number of characters that the selection's focus is offset within the focusNode. |
mozile.edit.InsertionPoint |
getInsertionPoint
Create a new insertion point using the selection's focus. |
Boolean |
isCollapsed
A boolean indicating whether the selection's start and end points are at the same position. |
Integer |
rangeCount
The number of ranges in the selection. |
Void |
restore
Takes a stored range object and creates a new range with the same properties. |
Object |
store
Store the details about this range in an object which can be used to restore the range. |
Constructor Summary | |
mozile.dom.InternetExplorerSelection
()
Selection object, based on the mozilla implementation. |
Method Summary | |
Void
|
addRange(<Range> range)
A range object that will be added to the selection. |
Void
|
collapse(parentNode, offset)
Collapses the current selection to a single point. |
Void
|
collapseToEnd()
Moves the anchor of the selection to the same point as the focus. |
Void
|
collapseToStart()
Moves the focus of the selection to the same point as the anchor. |
Boolean
|
containsNode(<Node> aNode, <Boolean> aPartlyContained)
NOT IMPLEMENTED. |
Void
|
deleteFromDocument()
Deletes the selection's content from the document. |
Void
|
extend(<Node> parentNode, <Integer> offset)
Moves the focus of the selection to a specified point. |
Range
|
getRangeAt(<Integer> index)
Returns a range object representing one of the ranges currently selected |
Void
|
removeAllRanges()
Removes all ranges from the selection. |
Void
|
removeRange(<Range> range)
Removes a range from the selection. |
Void
|
selectAllChildren(<Node> parentNode)
Adds all the children of the specified node to the selection. |
Void
|
selectionLanguageChange()
NOT IMPLEMENTED. |
String
|
toString()
Returns a string currently being represented by the selection object, i.e. |
Field Detail |
Node anchorNode
Integer anchorOffset
Node focusNode
Integer focusOffset
mozile.edit.InsertionPoint getInsertionPoint
Boolean isCollapsed
Integer rangeCount
Void restore
Object store
Constructor Detail |
mozile.dom.InternetExplorerSelection()
Method Detail |
Void addRange(<Range> range)
range
- The range to add.
Void collapse(parentNode, offset)
Void collapseToEnd()
Void collapseToStart()
Boolean containsNode(<Node> aNode, <Boolean> aPartlyContained)
aNode
-
aPartlyContained
-
Void deleteFromDocument()
Void extend(<Node> parentNode, <Integer> offset)
parentNode
- The new focusNode.
offset
- The new focusOffset.
Range getRangeAt(<Integer> index)
index
- The index of the desired range.
Void removeAllRanges()
Void removeRange(<Range> range)
range
- The range to remove.
Void selectAllChildren(<Node> parentNode)
parentNode
-
Void selectionLanguageChange()
langRTL
- True indicates Right-to-Left, false indicates Left-to-Right.
String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |