|
||||||||||
| 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
org.xwiki.gwt.dom.client.internal.mozilla.MozillaSelection
public class MozillaSelection
Fixes selection problems found in Firefox versions prior to 3.0.
| Constructor Summary | |
|---|---|
MozillaSelection(NativeSelection nativeSelection)
Creates a new selection object. |
|
| Method Summary | |
|---|---|
void |
addRange(Range range)
Adds a range to this selection. |
protected int |
adjustOffset(com.google.gwt.dom.client.Node node,
int offset)
Adjusts the specified offset within the given node to avoid NS_ERROR_DOM_INDEX_SIZE_ERR. |
| Methods inherited from class org.xwiki.gwt.dom.client.internal.DefaultSelection |
|---|
getNativeSelection, getRangeAt, getRangeCount, removeAllRanges, removeRange |
| 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 MozillaSelection(NativeSelection nativeSelection)
nativeSelection - the underlying native selection to be used| Method Detail |
|---|
public void addRange(Range range)
addRange in interface SelectionaddRange in class DefaultSelectionrange - the range to be addedDefaultSelection.addRange(Range)
protected int adjustOffset(com.google.gwt.dom.client.Node node,
int offset)
node - A DOM node.offset - The offset within the given node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||