|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject java.awt.AWTEvent com.jidesoft.swing.event.SearchableEvent
public class SearchableEvent
An AWTEvent
that adds support for
SearchableEvent
objects as the event source.
Searchable
,
SearchableListener
,
Serialized FormField Summary | |
---|---|
static int |
SEARCHABLE_CHANGE
To indicate the searching text changes. |
static int |
SEARCHABLE_END
To indicate the searching process stopped. |
static int |
SEARCHABLE_FIRST
The first number in the range of IDs used for SearchableEvent . |
static int |
SEARCHABLE_LAST
The last number in the range of IDs used for SearchableEvent . |
static int |
SEARCHABLE_MATCH
To indicate the searching process finds a matching element. |
static int |
SEARCHABLE_MODEL_CHANGE
To indicate the search component model is changed. |
static int |
SEARCHABLE_NOMATCH
To indicate the searching process doesn't find a matching element. |
static int |
SEARCHABLE_START
To indicate the searching process started. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
SearchableEvent(Object source,
int id,
String searchingText)
Creates a SearchableEvent . |
|
SearchableEvent(Object source,
int id,
String searchingText,
Object matchingObject,
String matchingText)
|
|
SearchableEvent(Object source,
int id,
String searchingText,
String oldSearchingText)
|
|
SearchableEvent(Searchable source,
int id)
Creates a SearchableEvent . |
Method Summary | |
---|---|
Object |
getMatchingObject()
Gets the object that matches the searching text. |
String |
getMatchingText()
Gets the text that is converted from the object matching the searching text. |
String |
getOldSearchingText()
Gets the text that was searched for. |
Searchable |
getSearchable()
Returns the originator of the event. |
String |
getSearchingText()
Gets the text that is being searched for. |
String |
paramString()
Returns a parameter string identifying this event. |
Methods inherited from class java.awt.AWTEvent |
---|
consume, getID, isConsumed, setSource, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SEARCHABLE_FIRST
SearchableEvent
.
public static final int SEARCHABLE_LAST
SearchableEvent
.
public static final int SEARCHABLE_START
public static final int SEARCHABLE_END
public static final int SEARCHABLE_MATCH
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.
public static final int SEARCHABLE_NOMATCH
getSearchingText()
will return
the text that is being searched for. getMatchingObject()
and getMatchingText()
will be null.
public static final int SEARCHABLE_CHANGE
getSearchingText()
will return
the text that is being searched for. getOldSearchingText()
will return the previous searching text.
public static final int SEARCHABLE_MODEL_CHANGE
Constructor Detail |
---|
public SearchableEvent(Searchable source, int id)
SearchableEvent
.
source
- id
- public SearchableEvent(Object source, int id, String searchingText)
SearchableEvent
. The searching text is the text that is being searched for.
source
- id
- searchingText
- public SearchableEvent(Object source, int id, String searchingText, String oldSearchingText)
public SearchableEvent(Object source, int id, String searchingText, Object matchingObject, String matchingText)
Method Detail |
---|
public String paramString()
paramString
in class AWTEvent
public Searchable getSearchable()
Searchable
object that originated the eventpublic String getSearchingText()
public String getOldSearchingText()
public String getMatchingText()
public Object getMatchingObject()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |