Interface AutoSuggestProvider
-
- All Known Implementing Classes:
DefaultAutoSuggestProvider
,SCOPAutoSuggestProvider
public interface AutoSuggestProvider
A class that provides auto-completion suggestions for JAutoSuggest- Author:
- AndreasPrlic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
reset all suggestionsint
getMaxNrSuggestions()
Get the maximun nr of suggestionsVector<String>
getSuggestion(String userInput)
get a list of suggestions for a userInputvoid
setMaxNrSuggestions(int maxNrSuggestions)
set the maximum number of suggestions to returnvoid
stop()
Interrupt searching for suggestions
-
-
-
Method Detail
-
getSuggestion
Vector<String> getSuggestion(String userInput)
get a list of suggestions for a userInput- Parameters:
userInput
-- Returns:
- list of suggestions
-
setMaxNrSuggestions
void setMaxNrSuggestions(int maxNrSuggestions)
set the maximum number of suggestions to return- Parameters:
maxNrSuggestions
-
-
getMaxNrSuggestions
int getMaxNrSuggestions()
Get the maximun nr of suggestions- Returns:
- maxNrSuggestions
-
clear
void clear()
reset all suggestions
-
stop
void stop()
Interrupt searching for suggestions
-
-