Class NodeList<T extends BaseNode>

  • Type Parameters:
    T - type of base node

    @JsType(isNative=true,
            namespace="<global>")
    public final class NodeList<T extends BaseNode>
    extends Object
    Maps the java script object which is a collections of nodes,
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • length

        @JsProperty(name="length")
        public int length()
        Returns the number of nodes in the node list.
        Returns:
        the number of nodes in the node list.
      • item

        @JsMethod
        public T item​(int index)
        Returns an item in the list by its index, or null if the index is out-of-bounds.
        Parameters:
        index - the index of the node to be fetched.
        The index is zero-based.
        Returns:
        is the indexTH node in the node list or null if the index is out-of-bounds