Package org.pepstock.charba.client.dom
Class NodeList<T extends BaseNode>
- java.lang.Object
-
- org.pepstock.charba.client.dom.NodeList<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
item(int index)
Returns an item in the list by its index, ornull
if the index is out-of-bounds.int
length()
Returns the number of nodes in the node list.
-
-
-
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, ornull
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
-
-