Skip navigation links

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

E13403-06


oracle.ide.inspector.find
Class FindTextSupport

java.lang.Object
  extended by oracle.ide.inspector.find.FindTextSupport

All Implemented Interfaces:
SearchableText

public abstract class FindTextSupport
extends java.lang.Object
implements SearchableText

Implementation of SearchableText suitable for reuse by components that have displayed text that can be set to HTML fragments for special effects purposes (in this case, highlighting the matched substring).

See Also:
PropertyLabel, PropertyRadioButton, PropertyCheckBox

Constructor Summary
FindTextSupport()
           

 

Method Summary
 boolean findText(java.lang.String textToFind, boolean matchCase)
          Attempt to find the specified text, and if successful, reset the displayed text to an HTML representation with highlighting.
 java.awt.Dimension getPreferredSize()
           
abstract  java.awt.Dimension getSuperPreferredSize()
           
 void removeFoundTextEffect()
          Resets the displayed text to the plain text, which has the effect of removing the highlight.
abstract  void setDisplayedText(java.lang.String text)
          To be implemented by something that knows how to set the text displayed by the actual Component subclass.
 void setText(java.lang.String text)
          Set the plain text of the control and update its displayed text.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FindTextSupport

public FindTextSupport()

Method Detail

setText

public void setText(java.lang.String text)
Set the plain text of the control and update its displayed text.
Specified by:
setText in interface SearchableText
See Also:
SearchableText.setText(String)

findText

public boolean findText(java.lang.String textToFind,
                        boolean matchCase)
Attempt to find the specified text, and if successful, reset the displayed text to an HTML representation with highlighting.
Specified by:
findText in interface SearchableText
Returns:
true if a match was found
See Also:
SearchableText.findText(String, boolean)

removeFoundTextEffect

public void removeFoundTextEffect()
Resets the displayed text to the plain text, which has the effect of removing the highlight.
Specified by:
removeFoundTextEffect in interface SearchableText
See Also:
SearchableText.removeFoundTextEffect()

setDisplayedText

public abstract void setDisplayedText(java.lang.String text)
To be implemented by something that knows how to set the text displayed by the actual Component subclass.

getPreferredSize

public java.awt.Dimension getPreferredSize()

getSuperPreferredSize

public abstract java.awt.Dimension getSuperPreferredSize()

Skip navigation links

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

E13403-06


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