org.xwiki.gwt.dom.client
Class DepthFirstPreOrderIterator

java.lang.Object
  extended by org.xwiki.gwt.dom.client.DepthFirstPreOrderIterator
All Implemented Interfaces:
java.util.Iterator<com.google.gwt.dom.client.Node>

public class DepthFirstPreOrderIterator
extends java.lang.Object
implements java.util.Iterator<com.google.gwt.dom.client.Node>

Iterator for the depth-first pre-order strategy, starting in a specified node.

Version:
$Id: DepthFirstPreOrderIterator.java 20042 2009-05-16 12:12:50Z sdumitriu $
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.
 
Method Summary
 boolean hasNext()
          
 com.google.gwt.dom.client.Node next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<com.google.gwt.dom.client.Node>

next

public com.google.gwt.dom.client.Node next()

Specified by:
next in interface java.util.Iterator<com.google.gwt.dom.client.Node>

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<com.google.gwt.dom.client.Node>


Copyright © 2004-2009 XWiki. All Rights Reserved.