|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vectomatic.dom.svg.OMNodeList<T>
public class OMNodeList<T extends OMNode>
Wrapper class for DOM NodeList
| Constructor Summary | |
|---|---|
protected |
OMNodeList(com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> nodeList)
Constructor |
| Method Summary | |
|---|---|
T |
getItem(int index)
Returns the indexth item in the collection. |
int |
getLength()
The number of nodes in the list. |
Iterator<T> |
iterator()
Returns an iterator over the OMNode
elements in this list in proper sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected OMNodeList(com.google.gwt.dom.client.NodeList<? extends com.google.gwt.dom.client.Node> nodeList)
nodeList - The wrapped node list| Method Detail |
|---|
public final T getItem(int index)
indexth item in the collection. If
index is greater than or equal to the number of nodes in
the list, this returns null.
index - Index into the collection.
indexth position in the
NodeList, or null if that is not a valid
index.public final int getLength()
length-1 inclusive.
public Iterator<T> iterator()
OMNode
elements in this list in proper sequence.
This implementation returns a straightforward implementation of the
iterator interface, relying on the backing list's getNumberOfItems(),
and getItem(int) methods.
Note that the iterator returned by this method will throw an
UnsupportedOperationException in response to its
remove method.
iterator in interface Iterable<T extends OMNode>OMNode
elements in this list in proper sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||