textbender.o.rhinohide.core
Class RhiNodeList

java.lang.Object
  extended by Rhinohide
      extended by RhiNodeList
All Implemented Interfaces:
NodeList

@ThreadSafe
final class RhiNodeList
extends Rhinohide
implements NodeList

A node list implemented as an overlay of a JavaScript node list.


Field Summary
 
Fields inherited from class Rhinohide
window
 
Method Summary
 int getLength()
           
 Node item(int index)
           
static RhiNodeList wrapNodeList(RhiWindow window, netscape.javascript.JSObject jsObject)
          Creates a RhiNodeList.
 
Methods inherited from class Rhinohide
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, toString, window
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

wrapNodeList

public static RhiNodeList wrapNodeList(RhiWindow window,
                                       netscape.javascript.JSObject jsObject)
Creates a RhiNodeList.

Parameters:
window - global object
jsObject - bridge to underlying JavaScript node list, per jsObject()
Returns:
node list, or null if jsObject is null

item

public Node item(int index)
Specified by:
item in interface NodeList

getLength

public int getLength()
Specified by:
getLength in interface NodeList