textbender.o.rhinohide.ranges
Class RhiSelection
java.lang.Object
Rhinohide
RhiSelection
@ThreadSafe
public final class RhiSelection
- extends Rhinohide
A text selection implemented as an overlay of a JavaScript text selection.
This is non-standard. It has only been tested with Mozilla browsers.
- See Also:
- http://developer.mozilla.org/en/docs/DOM:selection
Methods inherited from class Rhinohide |
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, toString, window |
RhiSelection
RhiSelection(RhiWindow window,
netscape.javascript.JSObject jsObject)
wrapSelection
public static RhiSelection wrapSelection(RhiWindow window,
netscape.javascript.JSObject jsObject)
- Creates a RhiSelection.
- Parameters:
window
- global objectjsObject
- bridge to underlying JavaScript selection,
per jsObject()
- Returns:
- selection, or null if jsObject is null
- See Also:
RhiWindow.getSelection()
getRangeAt
public Range getRangeAt(int index)
- Returns:
- range or null
getRangeCount
public int getRangeCount()