public class SearchIterator
extends java.lang.Object
implements java.util.Iterator<java.awt.Component>
| Constructor and Description |
|---|
SearchIterator(java.awt.Container container,
boolean forward)
Construct a post-order containment hierarchy SearchIterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Determine whether there is another Component to be returned in the iteration
sequence.
|
protected boolean |
isSearchableContainer(java.awt.Container container)
Called to decide whether to traverse the specified container.
|
java.awt.Component |
next()
Return the next component in the iteration sequence.
|
void |
remove() |
public SearchIterator(java.awt.Container container,
boolean forward)
container - the container whose containment hierarchy is to be iterated.forward - true to iterate children in a 0 to n-1 index orderpublic final boolean hasNext()
hasNext in interface java.util.Iterator<java.awt.Component>public final java.awt.Component next()
next in interface java.util.Iterator<java.awt.Component>protected boolean isSearchableContainer(java.awt.Container container)
public final void remove()
remove in interface java.util.Iterator<java.awt.Component>