org.xwiki.gwt.dom.client.internal.mozilla
Class MozillaSelection
java.lang.Object
org.xwiki.gwt.dom.client.internal.AbstractSelection
org.xwiki.gwt.dom.client.internal.DefaultSelection
org.xwiki.gwt.dom.client.internal.mozilla.MozillaSelection
- All Implemented Interfaces:
- Selection
public class MozillaSelection
- extends DefaultSelection
Fixes selection problems found in Mozilla browsers.
Method Summary |
void |
removeAllRanges()
Removes all ranges from the current 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 |
MozillaSelection
public MozillaSelection(NativeSelection nativeSelection)
- Creates a new selection object.
- Parameters:
nativeSelection
- the underlying native selection to be used
removeAllRanges
public void removeAllRanges()
- Removes all ranges from the current selection.
Removes the ghost resize handlers (visible around images and tables) as well as other trailing graphics.
- Specified by:
removeAllRanges
in interface Selection
- Overrides:
removeAllRanges
in class DefaultSelection
- See Also:
DefaultSelection.removeAllRanges()