| java.awt.AWTEvent com.jidesoft.swing.event.SearchableEvent
Field Summary | |
final public static int | SEARCHABLE_CHANGE To indicate the searching text changes. | final public static int | SEARCHABLE_END To indicate the searching process stopped. | final public static int | SEARCHABLE_FIRST The first number in the range of IDs used for SearchableEvent . | final public static int | SEARCHABLE_LAST The last number in the range of IDs used for SearchableEvent . | final public static int | SEARCHABLE_MATCH To indicate the searching process finds a matching element. | final public static int | SEARCHABLE_MODEL_CHANGE To indicate the search component model is changed. | final public static int | SEARCHABLE_NOMATCH To indicate the searching process doesn't find a matching element. | final public static int | SEARCHABLE_START To indicate the searching process started. |
Constructor Summary | |
public | SearchableEvent(Searchable source, int id) Creates a SearchableEvent . | public | SearchableEvent(Object source, int id, String searchingText) Creates a SearchableEvent . | public | SearchableEvent(Object source, int id, String searchingText, String oldSearchingText) | public | SearchableEvent(Object source, int id, String searchingText, Object matchingObject, String matchingText) |
SEARCHABLE_CHANGE | final public static int SEARCHABLE_CHANGE(Code) | | To indicate the searching text changes. In this case, getSearchingText() will return
the text that is being searched for. getOldSearchingText() will return the previous searching text.
|
SEARCHABLE_END | final public static int SEARCHABLE_END(Code) | | To indicate the searching process stopped. It is fired when the search popup is gone.
|
SEARCHABLE_FIRST | final public static int SEARCHABLE_FIRST(Code) | | The first number in the range of IDs used for SearchableEvent .
|
SEARCHABLE_LAST | final public static int SEARCHABLE_LAST(Code) | | The last number in the range of IDs used for SearchableEvent .
|
SEARCHABLE_MATCH | final public static int SEARCHABLE_MATCH(Code) | | To indicate the searching process finds a matching element. In this case, getSearchingText() will return
the text that is being searched for. getMatchingObject() will return the element that matches the searching text.
getMatchingText() is the text converting from the the matching object.
|
SEARCHABLE_MODEL_CHANGE | final public static int SEARCHABLE_MODEL_CHANGE(Code) | | To indicate the search component model is changed. The model could be ListModel in the case of JList, TableModel in the case
of JTable, etc.
|
SEARCHABLE_NOMATCH | final public static int SEARCHABLE_NOMATCH(Code) | | To indicate the searching process doesn't find a matching element. In this case, getSearchingText() will return
the text that is being searched for. getMatchingObject() and getMatchingText() will be null.
|
SEARCHABLE_START | final public static int SEARCHABLE_START(Code) | | To indicate the searching process started. It is fired when the search popup shows up.
|
SearchableEvent | public SearchableEvent(Searchable source, int id)(Code) | | Creates a SearchableEvent .
Parameters: source - Parameters: id - |
SearchableEvent | public SearchableEvent(Object source, int id, String searchingText)(Code) | | Creates a SearchableEvent . The searching text is the text that is being searched for.
Parameters: source - Parameters: id - Parameters: searchingText - |
getMatchingObject | public Object getMatchingObject()(Code) | | Gets the object that matches the searching text.
The returned value is only valid for events SEARCHABLE_MATCH.
Gets the object that matches the searching text. |
getMatchingText | public String getMatchingText()(Code) | | Gets the text that is converted from the object matching the searching text.
The returned value is only valid for events SEARCHABLE_MATCH.
the text that is converted from the object matching the searching text. |
getOldSearchingText | public String getOldSearchingText()(Code) | | Gets the text that was searched for.
The returned value is only valid for event SEARCHABLE_CHANGE.
the text that was searched for. |
getSearchable | public Searchable getSearchable()(Code) | | Returns the originator of the event.
the Searchable object that originated the event |
getSearchingText | public String getSearchingText()(Code) | | Gets the text that is being searched for. The returned value is valid for events SEARCHABLE_START,
SEARCHABLE_MATCH, SEARCHABLE_NOMATCH, and SEARCHABLE_CHANGE.
the text that is being searched for. |
paramString | public String paramString()(Code) | | Returns a parameter string identifying this event.
This method is useful for event logging and for debugging.
a string identifying the event and its attributes |
|
|