|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.ri.common.search.SearchStatusEventAdapter
An abstract adapter class for receiving search result or status. The methods in this class are empty. This class exists as convenience for creating listener objects.
Extend this class to create a listener and override the methods in which you are interested.
SearchStatusEventListener,
SearchHelper| Constructor Summary | |
SearchStatusEventAdapter()
|
|
| Method Summary | |
void |
reset(int signal)
Invoked when the document of top level Viewport or child
Viewport is changed. |
void |
setSearchEnabled(boolean b)
Invoked when executing search is currently allowed or disallowed. |
void |
setSearchStatusMessage(int status,
int number_of_matches)
Invoked when search result message needs to be set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SearchStatusEventAdapter()
| Method Detail |
public void setSearchStatusMessage(int status,
int number_of_matches)
setSearchStatusMessage in interface SearchStatusEventListenerstatus - number_of_matches - The number of matches found. It is meaningful
only if status equals SearchHelper.MATCH_FOUND and number_of_matches
> 0.public void setSearchEnabled(boolean b)
setSearchEnabled in interface SearchStatusEventListenerb - true if executing search is allowed, false otherwise.public void reset(int signal)
Viewport or child
Viewport is changed. This is useful when you use it in a
non-modal form.
reset in interface SearchStatusEventListenersignal - Viewport
is changed and HIGHLIGHT button, WHOLE-WORD and MATCH-CASE check boxes
need to be reset.Viewport
is changed and for example HIGHLIGHT button needs to be reset.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||