org.sgx.j2s.yui3.yui
Class NodeList

Package class diagram package NodeList
java.lang.Object
  extended by org.sgx.j2s.js.NativeWrapper
      extended by org.sgx.j2s.yui3.yui.YUINativeWrapper
          extended by org.sgx.j2s.yui3.yui.event.EventTarget
              extended by org.sgx.j2s.yui3.yui.Attribute
                  extended by org.sgx.j2s.yui3.yui.Base
                      extended by org.sgx.j2s.yui3.yui.NodeBase
                          extended by org.sgx.j2s.yui3.yui.NodeList

public class NodeList
extends NodeBase

The NodeList class provides a wrapper for manipulating DOM NodeLists. NodeList properties can be accessed via the set/get methods. Use Y.all() to retrieve NodeList instances.


Field Summary
 
Fields inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
Y
 
Fields inherited from class org.sgx.j2s.js.NativeWrapper
_data, _EMPTYPARAMS
 
Constructor Summary
NodeList()
           
 
Method Summary
 boolean[] hasClass(java.lang.String name)
          Determines whether each node has the given className.
 boolean isEmpty()
          Determines if the instance is bound to any nodes
 int size()
          Returns the current number of items in the NodeList.
 java.lang.String toString()
           
 
Methods inherited from class org.sgx.j2s.yui3.yui.NodeBase
addClass, removeClass, replaceClass, setContent
 
Methods inherited from class org.sgx.j2s.yui3.yui.Attribute
addAttr, addAttrs, attrAdded, get, getAttrs, modifyAttr, removeAttr, reset, set, setAttrs
 
Methods inherited from class org.sgx.j2s.yui3.yui.event.EventTarget
after, before, detach, detachAll, fire, getEvent, on, once, publish
 
Methods inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
_load
 
Methods inherited from class org.sgx.j2s.js.NativeWrapper
_call, _get, _getData, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()
Method Detail

hasClass

public boolean[] hasClass(java.lang.String name)
Determines whether each node has the given className.

Parameters:
className - the class name to search for

size

public int size()
Returns the current number of items in the NodeList.


isEmpty

public boolean isEmpty()
Determines if the instance is bound to any nodes

Returns:
{Boolean} Whether or not the NodeList is bound to any nodes

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object