Class DefaultAutoSuggestProvider
java.lang.Object
org.biojava.nbio.structure.align.gui.autosuggest.DefaultAutoSuggestProvider
- All Implemented Interfaces:
AutoSuggestProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()reset all suggestionsintGet the maximun nr of suggestionsgetSuggestion(String userInput) get a list of suggestions for a userInputvoidsetMaxNrSuggestions(int maxNrSuggestions) set the maximum number of suggestions to returnvoidstop()Interrupt searching for suggestions
-
Constructor Details
-
DefaultAutoSuggestProvider
public DefaultAutoSuggestProvider()
-
-
Method Details
-
getSuggestion
Description copied from interface:AutoSuggestProviderget a list of suggestions for a userInput- Specified by:
getSuggestionin interfaceAutoSuggestProvider- Parameters:
userInput-- Returns:
- list of suggestions
-
setMaxNrSuggestions
Description copied from interface:AutoSuggestProviderset the maximum number of suggestions to return- Specified by:
setMaxNrSuggestionsin interfaceAutoSuggestProvider- Parameters:
maxNrSuggestions-
-
getMaxNrSuggestions
Description copied from interface:AutoSuggestProviderGet the maximun nr of suggestions- Specified by:
getMaxNrSuggestionsin interfaceAutoSuggestProvider- Returns:
- maxNrSuggestions
-
clear
Description copied from interface:AutoSuggestProviderreset all suggestions- Specified by:
clearin interfaceAutoSuggestProvider
-
stop
Description copied from interface:AutoSuggestProviderInterrupt searching for suggestions- Specified by:
stopin interfaceAutoSuggestProvider
-