org.apache.myfaces.util

Class ViewIterator

public class ViewIterator extends Object implements Iterator

Iterates over a view structure, i.e. a component tree, in a depth first manner.

Version: $Revision: 167257 $ $Date: 2004-10-13 13:51:02 +0200 (Wed, 13 Oct 2004) $

Author: Manfred Geiler (latest modification by $Author: matze $)

Constructor Summary
ViewIterator(UIComponent root)
Method Summary
booleanhasNext()
Objectnext()
voidremove()

Constructor Detail

ViewIterator

public ViewIterator(UIComponent root)

Parameters: root the root of the view structure to iterate over

Method Detail

hasNext

public boolean hasNext()

next

public Object next()

Returns: the next component in the view. The first element is always the given root component.

remove

public void remove()