|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.dom.client.internal.AbstractSelection
org.xwiki.gwt.dom.client.internal.DefaultSelection
public class DefaultSelection
The default selection implementation for browsers supporting the W3C Range specification and following Mozilla Selection API.
| Constructor Summary | |
|---|---|
DefaultSelection(NativeSelection nativeSelection)
Creates a new selection object. |
|
| Method Summary | |
|---|---|
void |
addRange(Range range)
Adds a range to this selection. |
protected NativeSelection |
getNativeSelection()
|
Range |
getRangeAt(int index)
|
int |
getRangeCount()
|
void |
removeAllRanges()
Removes all ranges from the current selection. |
void |
removeRange(Range range)
Removes the given range from the selection. |
| Methods inherited from class org.xwiki.gwt.dom.client.internal.AbstractSelection |
|---|
collapse, collapseToEnd, collapseToStart, containsNode, deleteFromDocument, extend, getAnchorNode, getAnchorOffset, getFocusNode, getFocusOffset, isCollapsed, selectAllChildren, selectionLanguageChange, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSelection(NativeSelection nativeSelection)
Range objects to the native
range supported by the browser. The native ranges obtained will be applied to the underlying native selection.
nativeSelection - the underlying native selection to be used| Method Detail |
|---|
protected NativeSelection getNativeSelection()
nativeSelectionpublic void addRange(Range range)
range - the range to be addedSelection.addRange(Range)public Range getRangeAt(int index)
index - the index of the range to retrieve. Usually the selection contains just one range.
Selection.getRangeAt(int)public int getRangeCount()
Selection.getRangeCount()public void removeAllRanges()
Selection.removeAllRanges()public void removeRange(Range range)
range - the range to be removed from the selection.Selection.removeRange(Range)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||