public static interface QuickSearch.Callback
Modifier and Type | Method and Description |
---|---|
String |
findMaxPrefix(String prefix)
Find the maximum prefix among the search results, that starts with the provided string.
|
void |
quickSearchCanceled()
Called when the quick search is canceled by the user.
|
void |
quickSearchConfirmed()
Called when the quick search is confirmed by the user.
|
void |
quickSearchUpdate(String searchText)
Called with an updated search text.
|
void |
showNextSelection(boolean forward)
Called to select a next occurrence of the search result.
|
void quickSearchUpdate(String searchText)
#isAsynchronous()
is false
it's called in EQ thread, otherwise, it's called in a background thread.
The client should update the visual representation of the search results
and then return.This method is called to initiate and update the search process.
searchText
- The new text to search for.void showNextSelection(boolean forward)
#isAsynchronous()
is false
it's called in EQ thread, otherwise, it's called in a background thread.
The client should update the visual representation of the search results
and then return.forward
- The direction of the next search result.
true
for forward direction,
false
for backward direction.String findMaxPrefix(String prefix)
#isAsynchronous()
is false
it's called in EQ thread, otherwise, it's called in a background thread.
Utility method QuickSearch.findMaxPrefix(java.lang.String, java.lang.String, boolean)
can be used by the implementation.prefix
- The prefix to start withvoid quickSearchConfirmed()
void quickSearchCanceled()