org.xwiki.gwt.dom.client.internal.mozilla
Class MozillaSelection

java.lang.Object
  extended by org.xwiki.gwt.dom.client.internal.AbstractSelection
      extended by org.xwiki.gwt.dom.client.internal.DefaultSelection
          extended by org.xwiki.gwt.dom.client.internal.mozilla.MozillaSelection
All Implemented Interfaces:
Selection

public class MozillaSelection
extends DefaultSelection

Fixes selection problems found in Mozilla browsers.


Constructor Summary
MozillaSelection(NativeSelection nativeSelection)
          Creates a new selection object.
 
Method Summary
 void removeAllRanges()
          Removes all ranges from the current selection.
 
Methods inherited from class org.xwiki.gwt.dom.client.internal.DefaultSelection
addRange, getNativeSelection, getRangeAt, getRangeCount, 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

MozillaSelection

public MozillaSelection(NativeSelection nativeSelection)
Creates a new selection object.

Parameters:
nativeSelection - the underlying native selection to be used
Method Detail

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()