public class DefaultSearchOperation extends Object implements SearchOperation
SearchOperation
.Constructor and Description |
---|
DefaultSearchOperation(Context context,
SearchListener... callbacks) |
Modifier and Type | Method and Description |
---|---|
void |
search(String text)
Asynchronously updates the search query.
|
void |
setFuzzy(boolean fuzzy)
Asynchronously toggles whether to perform
"fuzzy"
matching of the query string.
|
void |
terminate()
Asynchronously terminates the search.
|
public DefaultSearchOperation(Context context, SearchListener... callbacks)
public void setFuzzy(boolean fuzzy)
SearchOperation
Intended to be called from the dispatch thread in response to the search pane's fuzzy matching checkbox being toggled by the user.
setFuzzy
in interface SearchOperation
fuzzy
- Whether the search should perform "fuzzy" matching.public void search(String text)
SearchOperation
Searcher
plugins will be
reinvoked after some delay, with previous-but-still-running queries
invalidated so the user is not bothered with stale results.
Intended to be called from the dispatch thread in response to the search pane's text field being updated by the user.
search
in interface SearchOperation
text
- The query to be searched.public void terminate()
SearchOperation
Intended to be called from the dispatch thread in response to the search pane being closed.
terminate
in interface SearchOperation
Copyright © 2015–2022 SciJava. All rights reserved.