public class ContainerSearch
extends java.lang.Object
SearchableContainer| Constructor and Description | 
|---|
ContainerSearch(java.awt.Container container)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
attachTo(javax.swing.JComponent container)
Attach this ContainerSearch object to the specified container as a client 
 property. 
 | 
java.util.Iterator<java.awt.Component> | 
createSearchIterator(java.awt.Container root,
                    boolean forward)
Create an iterator for traversing the component containment hierarchy. 
 | 
boolean | 
findText(java.lang.String searchText,
        boolean searchForward,
        boolean searchRepeat)
Default findText implementation. 
 | 
static ContainerSearch | 
fromContainer(javax.swing.JComponent container)
Return the ContainerSearch object that was previously attached to the 
 specified  container. 
 | 
void | 
makeFoundComponentVisible(java.awt.Component c)
Override if necessary to provide custom logic to make the found
 component visible. 
 | 
java.lang.String | 
toString()  | 
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean findText(java.lang.String searchText,
               boolean searchForward,
               boolean searchRepeat)
public java.util.Iterator<java.awt.Component> createSearchIterator(java.awt.Container root,
                                                          boolean forward)
root - the starting point of the iterationforward - whether to iterate first-to-lastSearchIteratorpublic void makeFoundComponentVisible(java.awt.Component c)
public static ContainerSearch fromContainer(javax.swing.JComponent container)
container - the container from which to retrieve the ContainerSearch objectattachTo(javax.swing.JComponent)public void attachTo(javax.swing.JComponent container)
container - the container to attach to this ContainerSearch object