|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.inspector.find.ContainerSearch
public class ContainerSearch
Default search algorithm for findText. To use, embed an instance of ContainerSearch in a component that implements SearchableComponent, and delegate the findText call to it. To customize the search iterator, subclass ContainerSearch and override createSearchIterator.
SearchableContainer
Constructor Summary | |
---|---|
ContainerSearch(java.awt.Container container) |
Method Summary | |
---|---|
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() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContainerSearch(java.awt.Container container)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean findText(java.lang.String searchText, boolean searchForward, boolean searchRepeat)
SearchableContainer.findText(java.lang.String, boolean, boolean)
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-lastSearchIterator
public 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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |