org.xwiki.gwt.dom.client.internal
Class DefaultNativeRangeWrapper

java.lang.Object
  extended by org.xwiki.gwt.dom.client.internal.DefaultRange
      extended by org.xwiki.gwt.dom.client.internal.DefaultNativeRangeWrapper
All Implemented Interfaces:
NativeRangeWrapper, Range

public class DefaultNativeRangeWrapper
extends DefaultRange
implements NativeRangeWrapper

Wraps a native range to be used by the selection who created this object. For instance, in order to remove a range from the selection we must keep a reference to the native range returned by the native selection. The selection implementation is responsible for setting and handling the reference to the native range.

Version:
$Id: DefaultNativeRangeWrapper.java 20039 2009-05-16 12:04:30Z sdumitriu $

Constructor Summary
DefaultNativeRangeWrapper()
           
 
Method Summary
 Range cloneRange()
          Produces a new Range whose boundary-points are equal to the boundary-points of this range.
 JavaScriptObject getNativeRange()
          
 void setNativeRange(JavaScriptObject nativeRange)
          Sets the native range to be wrapped by this object.
 
Methods inherited from class org.xwiki.gwt.dom.client.internal.DefaultRange
cloneContents, collapse, compareBoundaryPoints, deleteContents, detach, extractContents, getCommonAncestorContainer, getEndContainer, getEndOffset, getStartContainer, getStartOffset, insertNode, isCollapsed, selectNode, selectNodeContents, setEnd, setEndAfter, setEndBefore, setStart, setStartAfter, setStartBefore, surroundContents, toHTML, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNativeRangeWrapper

public DefaultNativeRangeWrapper()
Method Detail

getNativeRange

public JavaScriptObject getNativeRange()

Specified by:
getNativeRange in interface NativeRangeWrapper
Returns:
the native range wrapped by this object.
See Also:
NativeRangeWrapper.getNativeRange()

setNativeRange

public void setNativeRange(JavaScriptObject nativeRange)
Sets the native range to be wrapped by this object.

Specified by:
setNativeRange in interface NativeRangeWrapper
Parameters:
nativeRange - the native range to be wrapped by this object.
See Also:
NativeRangeWrapper.setNativeRange(JavaScriptObject)

cloneRange

public Range cloneRange()
Produces a new Range whose boundary-points are equal to the boundary-points of this range.

Specified by:
cloneRange in interface Range
Overrides:
cloneRange in class DefaultRange
Returns:
the duplicated range
See Also:
DefaultRange.cloneRange()


Copyright © 2004-2009 XWiki. All Rights Reserved.