|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.selection.internal.AbstractSelection
com.xpn.xwiki.wysiwyg.client.selection.internal.IESelection
public final class IESelection
| Method Summary | |
|---|---|
protected void |
addRange(com.google.gwt.core.client.JavaScriptObject range)
|
void |
collapse(com.google.gwt.dom.client.Node parentNode,
int offset)
Collapses the selection to a single point, at the specified offset in the given DOM node. |
void |
collapseToEnd()
Collapses the whole selection to a single point at the end of the current selection (irrespective of direction). |
void |
collapseToStart()
Collapses the whole selection to a single point at the start of the current selection (irrespective of direction). |
boolean |
containsNode(com.google.gwt.dom.client.Node node,
boolean partlyContained)
Indicates whether the node is part of the selection. |
void |
deleteFromDocument()
Deletes this selection from document the nodes belong to. |
void |
extend(com.google.gwt.dom.client.Node parentNode,
int offset)
Extends the selection by moving the selection end to the specified node and offset, preserving the selection begin position. |
com.google.gwt.dom.client.Node |
getAnchorNode()
|
int |
getAnchorOffset()
|
com.google.gwt.dom.client.Node |
getFocusNode()
|
int |
getFocusOffset()
|
Range |
getRangeAt(int index)
|
int |
getRangeCount()
|
boolean |
isCollapsed()
|
void |
removeAllRanges()
Removes all ranges from the current selection. |
protected void |
removeRange(com.google.gwt.core.client.JavaScriptObject range)
|
void |
selectAllChildren(com.google.gwt.dom.client.Node parentNode)
Adds all children of the specified node to the selection. |
void |
selectionLanguageChange(boolean langRTL)
Modifies the cursor Bidi level after a change in keyboard direction |
java.lang.String |
toString()
|
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.selection.internal.AbstractSelection |
|---|
addRange, getJSSelection, removeRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected void addRange(com.google.gwt.core.client.JavaScriptObject range)
addRange in class AbstractSelection
public void collapse(com.google.gwt.dom.client.Node parentNode,
int offset)
Selection
parentNode - The given dom node where the selection will be set.offset - Where in given dom node to place the selection (the offset into the given node).public void collapseToEnd()
Selection
public void collapseToStart()
Selection
public boolean containsNode(com.google.gwt.dom.client.Node node,
boolean partlyContained)
Selection
public void deleteFromDocument()
Selection
public void extend(com.google.gwt.dom.client.Node parentNode,
int offset)
Selection
parentNode - The node where the selection will be extended to.offset - Where in node to place the offset in the new selection end.public com.google.gwt.dom.client.Node getAnchorNode()
public int getAnchorOffset()
public com.google.gwt.dom.client.Node getFocusNode()
public int getFocusOffset()
public Range getRangeAt(int index)
public int getRangeCount()
public boolean isCollapsed()
public void removeAllRanges()
Selection
protected void removeRange(com.google.gwt.core.client.JavaScriptObject range)
removeRange in class AbstractSelectionpublic void selectAllChildren(com.google.gwt.dom.client.Node parentNode)
Selection
parentNode - the parent of the children to be added to the selection.public void selectionLanguageChange(boolean langRTL)
Selection
langRTL - is true if the new language is right-to-left or false if the new language is left-to-right.public java.lang.String toString()
toString in interface SelectiontoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||