Class NodeList

java.lang.Object
de.inetsoftware.jwebassembly.web.JSObject
de.inetsoftware.jwebassembly.web.dom.NodeList

public class NodeList extends JSObject
https://developer.mozilla.org/en-US/docs/Web/API/NodeList
  • Constructor Details

    • NodeList

      NodeList(Object peer)
      Create a Java instance as wrapper of the JavaScript object.
      Parameters:
      peer - the native JavaScript object
  • Method Details

    • length

      public int length()
      The number of items.
      Returns:
      the count
    • item

      public Node item(int idx)
      https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item
      Parameters:
      idx - the index
      Returns:
      the item