| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRhinohide
RhiRange
@ThreadSafe public final class RhiRange
A range implemented as an overlay of a JavaScript range.
| Field Summary | 
|---|
| Fields inherited from class Rhinohide | 
|---|
window | 
| Fields inherited from interface org.w3c.dom.ranges.Range | 
|---|
END_TO_END, END_TO_START, START_TO_END, START_TO_START | 
| Constructor Summary | |
|---|---|
RhiRange(RhiWindow window,
                 netscape.javascript.JSObject jsObject)
 | 
|
| Method Summary | |
|---|---|
 DocumentFragment | 
cloneContents()
Not yet coded.  | 
 Range | 
cloneRange()
 | 
 void | 
collapse(boolean toStart)
 | 
 short | 
compareBoundaryPoints(short how,
                                           Range sourceRange)
 | 
 void | 
deleteContents()
Not yet coded.  | 
 void | 
detach()
Not yet coded.  | 
 DocumentFragment | 
extractContents()
Not yet coded.  | 
 boolean | 
getCollapsed()
 | 
 Node | 
getCommonAncestorContainer()
 | 
 Node | 
getEndContainer()
 | 
 int | 
getEndOffset()
 | 
 Node | 
getStartContainer()
 | 
 int | 
getStartOffset()
 | 
 void | 
insertNode(Node newNode)
Not yet coded.  | 
 void | 
selectNode(Node refNode)
 | 
 void | 
selectNodeContents(Node refNode)
Not yet coded.  | 
 void | 
setEnd(Node refNode,
             int offset)
 | 
 void | 
setEndAfter(Node refNode)
 | 
 void | 
setEndBefore(Node refNode)
 | 
 void | 
setStart(Node refNode,
                 int offset)
 | 
 void | 
setStartAfter(Node refNode)
 | 
 void | 
setStartBefore(Node refNode)
 | 
 void | 
surroundContents(Node newParent)
Not yet coded.  | 
 String | 
toString()
Defers to the bridge, returning jsObject.toString().  | 
static RhiRange | 
wrapRange(RhiWindow window,
                   netscape.javascript.JSObject jsObject)
Creates a RhiRange.  | 
| Methods inherited from class Rhinohide | 
|---|
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, window | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
RhiRange(RhiWindow window,
         netscape.javascript.JSObject jsObject)
| Method Detail | 
|---|
public static RhiRange wrapRange(RhiWindow window,
                                 netscape.javascript.JSObject jsObject)
window - global objectjsObject - bridge to underlying JavaScript range,
         per jsObject()
RhiDocument.createRange(), 
RhiSelection.getRangeAt(int)public String toString()
Rhinohide
toString in interface RangetoString in class Rhinohidepublic DocumentFragment cloneContents()
cloneContents in interface RangeUnsupportedOperationExceptionpublic Range cloneRange()
cloneRange in interface Rangepublic void collapse(boolean toStart)
collapse in interface Range
public short compareBoundaryPoints(short how,
                                   Range sourceRange)
compareBoundaryPoints in interface Rangepublic void deleteContents()
deleteContents in interface RangeUnsupportedOperationExceptionpublic void detach()
detach in interface RangeUnsupportedOperationExceptionpublic DocumentFragment extractContents()
extractContents in interface RangeUnsupportedOperationExceptionpublic boolean getCollapsed()
getCollapsed in interface Rangepublic Node getCommonAncestorContainer()
getCommonAncestorContainer in interface Rangepublic Node getEndContainer()
getEndContainer in interface Rangepublic int getEndOffset()
getEndOffset in interface Range
public void setEnd(Node refNode,
                   int offset)
setEnd in interface Rangepublic void setEndAfter(Node refNode)
setEndAfter in interface Rangepublic void setEndBefore(Node refNode)
setEndBefore in interface Rangepublic Node getStartContainer()
getStartContainer in interface Rangepublic int getStartOffset()
getStartOffset in interface Range
public void setStart(Node refNode,
                     int offset)
setStart in interface Rangepublic void setStartAfter(Node refNode)
setStartAfter in interface Rangepublic void setStartBefore(Node refNode)
setStartBefore in interface Rangepublic void insertNode(Node newNode)
insertNode in interface RangeUnsupportedOperationExceptionpublic void selectNode(Node refNode)
selectNode in interface Rangepublic void selectNodeContents(Node refNode)
selectNodeContents in interface RangeUnsupportedOperationExceptionpublic void surroundContents(Node newParent)
surroundContents in interface RangeUnsupportedOperationException
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||