public abstract class OnlineSearchResultProducer extends SearchResultProducer
SearchResult
producer from online
results.SearchResultProducer
Modifier and Type | Field and Description |
---|---|
static long |
MAXIMUM_SEARCH_TIME |
static long |
REQUEST_INTERVAL |
Constructor and Description |
---|
OnlineSearchResultProducer() |
Modifier and Type | Method and Description |
---|---|
void |
doSearch(org.w3c.dom.Document doc,
java.lang.String[] words,
SearchResultConsumer consumer)
Deprecated.
Use
doSearch(Document, String, SearchResultConsumer) instead |
void |
doSearch(org.w3c.dom.Document doc,
java.lang.String text,
SearchResultConsumer consumer) |
void |
doSearch(java.lang.String text,
SearchResultConsumer consumer)
Performs the search request (internal).
|
addResult, compareTo, doSearch, getName, getOrder, getResults, getTooltipText, hasWaitingSearch, isSearching, search, search, waitSearchComplete
public static final long REQUEST_INTERVAL
public static final long MAXIMUM_SEARCH_TIME
public OnlineSearchResultProducer()
public void doSearch(java.lang.String text, SearchResultConsumer consumer)
SearchResultProducer
results
list :results
should be
cleared.results
variable access should be synchronized as it can be externally accessed.SearchResultProducer.hasWaitingSearch()
returns true.doSearch
in class SearchResultProducer
text
- Search text, it can contains several words and use operators.consumer
- Search result consumer for this search request.SearchResultConsumer.resultsChanged(SearchResultProducer)
method.SearchResultProducer.hasWaitingSearch()
@Deprecated public void doSearch(org.w3c.dom.Document doc, java.lang.String[] words, SearchResultConsumer consumer)
doSearch(Document, String, SearchResultConsumer)
insteadpublic void doSearch(org.w3c.dom.Document doc, java.lang.String text, SearchResultConsumer consumer)