|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Rhinohide 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 Range
toString
in class Rhinohide
public DocumentFragment cloneContents()
cloneContents
in interface Range
UnsupportedOperationException
public Range cloneRange()
cloneRange
in interface Range
public void collapse(boolean toStart)
collapse
in interface Range
public short compareBoundaryPoints(short how, Range sourceRange)
compareBoundaryPoints
in interface Range
public void deleteContents()
deleteContents
in interface Range
UnsupportedOperationException
public void detach()
detach
in interface Range
UnsupportedOperationException
public DocumentFragment extractContents()
extractContents
in interface Range
UnsupportedOperationException
public boolean getCollapsed()
getCollapsed
in interface Range
public Node getCommonAncestorContainer()
getCommonAncestorContainer
in interface Range
public Node getEndContainer()
getEndContainer
in interface Range
public int getEndOffset()
getEndOffset
in interface Range
public void setEnd(Node refNode, int offset)
setEnd
in interface Range
public void setEndAfter(Node refNode)
setEndAfter
in interface Range
public void setEndBefore(Node refNode)
setEndBefore
in interface Range
public Node getStartContainer()
getStartContainer
in interface Range
public int getStartOffset()
getStartOffset
in interface Range
public void setStart(Node refNode, int offset)
setStart
in interface Range
public void setStartAfter(Node refNode)
setStartAfter
in interface Range
public void setStartBefore(Node refNode)
setStartBefore
in interface Range
public void insertNode(Node newNode)
insertNode
in interface Range
UnsupportedOperationException
public void selectNode(Node refNode)
selectNode
in interface Range
public void selectNodeContents(Node refNode)
selectNodeContents
in interface Range
UnsupportedOperationException
public void surroundContents(Node newParent)
surroundContents
in interface Range
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |