org.xnap.commons.gui.util
Class ComponentIterator
java.lang.Object
   org.xnap.commons.gui.util.ComponentIterator
org.xnap.commons.gui.util.ComponentIterator
- All Implemented Interfaces: 
- Iterator<Component>
- public class ComponentIterator 
- extends Object- implements Iterator<Component>
Provides an iterator that traverses a component's hierarchy in preorder.
- Author:
- Steffen Pingel
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ComponentIterator
public ComponentIterator(Component component)
- Iterate over hierarchy of component. First call to next
 will returncomponent.
 
remove
public void remove()
- Not supported.
 
- 
- Specified by:
- removein interface- Iterator<Component>
 
- 
- Throws:
- UnsupportedOperationException
 
hasNext
public boolean hasNext()
- 
- Specified by:
- hasNextin interface- Iterator<Component>
 
- 
 
next
public Component next()
- 
- Specified by:
- nextin interface- Iterator<Component>
 
- 
 
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.