public abstract class FindTextSupport extends java.lang.Object implements SearchableText
PropertyLabel,
PropertyRadioButton,
PropertyCheckBox| Constructor and Description |
|---|
FindTextSupport() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void setText(java.lang.String text)
setText in interface SearchableTextSearchableText.setText(String)public boolean findText(java.lang.String textToFind,
boolean matchCase)
findText in interface SearchableTextSearchableText.findText(String, boolean)public void removeFoundTextEffect()
removeFoundTextEffect in interface SearchableTextSearchableText.removeFoundTextEffect()public abstract void setDisplayedText(java.lang.String text)
public java.awt.Dimension getPreferredSize()
public abstract java.awt.Dimension getSuperPreferredSize()