org.apache.myfaces.util

Class ViewIterator

Implemented Interfaces:
Iterator

public class ViewIterator
extends java.lang.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

boolean
hasNext()
Object
next()
void
remove()

Constructor Details

ViewIterator

public ViewIterator(UIComponent root)
Parameters:
root - the root of the view structure to iterate over

Method Details

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()