com.xpn.xwiki.wysiwyg.client.selection.internal
Class AbstractRange

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.selection.internal.AbstractRange
All Implemented Interfaces:
Range
Direct Known Subclasses:
DefaultRange, IERange

public abstract class AbstractRange
extends java.lang.Object
implements Range


Method Summary
protected abstract  short compareBoundaryPoints(int how, com.google.gwt.core.client.JavaScriptObject sourceRange)
           
 short compareBoundaryPoints(RangeCompare how, Range sourceRange)
          Compare the boundary-points of two Ranges in a document.
 com.google.gwt.core.client.JavaScriptObject getJSRange()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.wysiwyg.client.selection.Range
cloneContents, cloneRange, collapse, deleteContents, detach, extractContents, getCommonAncestorContainer, getEndContainer, getEndOffset, getStartContainer, getStartOffset, insertNode, isCollapsed, selectNode, selectNodeContents, setEnd, setEndAfter, setEndBefore, setStart, setStartAfter, setStartBefore, surroundContents, toString
 

Method Detail

getJSRange

public final com.google.gwt.core.client.JavaScriptObject getJSRange()

compareBoundaryPoints

public final short compareBoundaryPoints(RangeCompare how,
                                         Range sourceRange)
Compare the boundary-points of two Ranges in a document.

Specified by:
compareBoundaryPoints in interface Range
Parameters:
how - The type of comparison.
sourceRange - The Range on which this current Range is compared to.
Returns:
-1, 0 or 1 depending on whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of sourceRange.
See Also:
Range.compareBoundaryPoints(RangeCompare, Range)

compareBoundaryPoints

protected abstract short compareBoundaryPoints(int how,
                                               com.google.gwt.core.client.JavaScriptObject sourceRange)


Copyright © 2004-2008 XWiki. All Rights Reserved.