Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ide.inspector.find
Class SearchIterator

java.lang.Object
  extended by oracle.ide.inspector.find.SearchIterator
All Implemented Interfaces:
java.util.Iterator<java.awt.Component>

public class SearchIterator
extends java.lang.Object
implements java.util.Iterator<java.awt.Component>

Default component iterator to be used for findText. May be customized by subclassing and overriding isSearchableContainer.

See Also:
isSearchableContainer(java.awt.Container)

Constructor Summary
SearchIterator(java.awt.Container container, boolean forward)
          Construct a post-order containment hierarchy SearchIterator.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchIterator

public SearchIterator(java.awt.Container container,
                      boolean forward)
Construct a post-order containment hierarchy SearchIterator. Returns the children of a container before returning the container itself.

Parameters:
container - the container whose containment hierarchy is to be iterated.
forward - true to iterate children in a 0 to n-1 index order
Method Detail

hasNext

public final boolean hasNext()
Determine whether there is another Component to be returned in the iteration sequence.

Specified by:
hasNext in interface java.util.Iterator<java.awt.Component>

next

public final java.awt.Component next()
Return the next component in the iteration sequence.

Specified by:
next in interface java.util.Iterator<java.awt.Component>

isSearchableContainer

protected boolean isSearchableContainer(java.awt.Container container)
Called to decide whether to traverse the specified container. May be overridden to perform a selective traversal.


remove

public final void remove()
Specified by:
remove in interface java.util.Iterator<java.awt.Component>

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.