public class DynamicPropertyNameSearchObject extends java.lang.Object implements SearchObject
Constructor and Description |
---|
DynamicPropertyNameSearchObject(CachedComponent comp,
DynamicPropertyDescriptor property) |
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.
|
void |
locate()
Brings focus to the item in the UI in whatever way is appropriate.
|
void |
setText(java.lang.String newName)
Updates the search result with the new value- the "replace" in "search & replace".
|
public DynamicPropertyNameSearchObject(CachedComponent comp, DynamicPropertyDescriptor property)
public javax.swing.Icon getIcon()
SearchObject
getIcon
in interface SearchObject
public java.lang.String getOwnerName()
SearchObject
getOwnerName
in interface SearchObject
public java.lang.String getName()
SearchObject
getName
in interface SearchObject
public java.lang.String getText()
SearchObject
getText
in interface SearchObject
public void setText(java.lang.String newName) throws java.lang.IllegalArgumentException
SearchObject
setText
in interface SearchObject
java.lang.IllegalArgumentException
- If the new text value is not suitable for this search objectpublic void locate()
SearchObject
locate
in interface SearchObject