org.xwiki.gwt.dom.client
Class DepthFirstPreOrderIterator
java.lang.Object
org.xwiki.gwt.dom.client.DepthFirstPreOrderIterator
- All Implemented Interfaces:
- Iterator<com.google.gwt.dom.client.Node>
public class DepthFirstPreOrderIterator
- extends Object
- implements Iterator<com.google.gwt.dom.client.Node>
Iterator for the depth-first pre-order strategy, starting in a specified node.
- Version:
- $Id: 4e4f1d133193ec8ba7d9c8ae040e849514900cd9 $
- See Also:
- "http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-Document"
|
Constructor Summary |
DepthFirstPreOrderIterator(com.google.gwt.dom.client.Node startNode)
Creates an iterator for the subtree rooted in startNode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DepthFirstPreOrderIterator
public DepthFirstPreOrderIterator(com.google.gwt.dom.client.Node startNode)
- Creates an iterator for the subtree rooted in startNode.
- Parameters:
startNode - root of the subtree to iterate through.
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<com.google.gwt.dom.client.Node>
next
public com.google.gwt.dom.client.Node next()
- Specified by:
next in interface Iterator<com.google.gwt.dom.client.Node>
remove
public void remove()
- Specified by:
remove in interface Iterator<com.google.gwt.dom.client.Node>
Copyright © 2004–2014 XWiki. All rights reserved.