public interface SearchObject
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon()
Returns an icon that can be used to identify this type of result.
|
java.lang.String |
getName()
The name of the object that matches the search pattern.
|
java.lang.String |
getOwnerName()
The name of the entity where this result is found.
|
java.lang.String |
getText()
Gets the text representation of the search result.
|
default boolean |
isMutable()
Whether or not the found object is mutable.
|
void |
locate()
Brings focus to the item in the UI in whatever way is appropriate.
|
void |
setText(java.lang.String value)
Updates the search result with the new value- the "replace" in "search & replace".
|
javax.swing.Icon getIcon()
java.lang.String getOwnerName()
java.lang.String getName()
java.lang.String getText()
void setText(java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- If the new text value is not suitable for this search objectvoid locate()
default boolean isMutable()