Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.inspector.find
Interface SearchableContainer

All Known Implementing Classes:
AbstractAdditionalPage, PropertyInspector

public interface SearchableContainer

SearchableContainer is an interface to be implemented by components that will participate in the property label text searching initiated by the user from the PropertyInspector's toolbar.

The SearchableContainer must be capable of iterating its own subcomponents either forward or backward. A SearchableContainer is also expected to remember the property label matched by a previous call to findText so that if the search is repeated, it can continue from the previous match.

It is recommended that a custom component within PropertyInspector use PropertyLabel rather than JLabel as the label for a property because PropertyLabel has methods to support searching and highlighting the matching label text.

There is a default implementation of findText for SearchableContainers. To make use of it, embed an instance of ContainerSearch in the class implementing SearchableContainer, and delegate the findText call to it.

See Also:
PropertyLabel, PropertyRadioButton, PropertyCheckBox, ContainerSearch

Method Summary
 boolean findText(java.lang.String searchText, boolean searchForward, boolean searchRepeat)
          Find the specified searchText by searching forward or backward through the property labels of the Searchable component.

 

Method Detail

findText

boolean findText(java.lang.String searchText,
                 boolean searchForward,
                 boolean searchRepeat)
Find the specified searchText by searching forward or backward through the property labels of the Searchable component.

An implementation of this method should perform the following steps:

Parameters:
searchText - the text to be found.
searchForward - the direction of the search.
searchRepeat - repeat the search starting beyond the last match location (if any)
Returns:
true if a property label containing the searchText could be found.
See Also:
ContainerSearch

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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