org.biojava.bio.structure.align.gui.autosuggest
Class DefaultAutoSuggestProvider

java.lang.Object
  extended by org.biojava.bio.structure.align.gui.autosuggest.DefaultAutoSuggestProvider
All Implemented Interfaces:
AutoSuggestProvider

public class DefaultAutoSuggestProvider
extends Object
implements AutoSuggestProvider


Constructor Summary
DefaultAutoSuggestProvider()
           
 
Method Summary
 void clear()
          reset all suggestions
 int getMaxNrSuggestions()
          Get the maximun nr of suggestions
 Vector<String> getSuggestion(String userInput)
          get a list of suggestions for a userInput
 void setMaxNrSuggestions(int maxNrSuggestions)
          set the maximum number of suggestions to return
 void stop()
          Interrupt searching for suggestions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAutoSuggestProvider

public DefaultAutoSuggestProvider()
Method Detail

getSuggestion

public Vector<String> getSuggestion(String userInput)
Description copied from interface: AutoSuggestProvider
get a list of suggestions for a userInput

Specified by:
getSuggestion in interface AutoSuggestProvider
Returns:
list of suggestions

setMaxNrSuggestions

public void setMaxNrSuggestions(int maxNrSuggestions)
Description copied from interface: AutoSuggestProvider
set the maximum number of suggestions to return

Specified by:
setMaxNrSuggestions in interface AutoSuggestProvider

getMaxNrSuggestions

public int getMaxNrSuggestions()
Description copied from interface: AutoSuggestProvider
Get the maximun nr of suggestions

Specified by:
getMaxNrSuggestions in interface AutoSuggestProvider
Returns:
maxNrSuggestions

clear

public void clear()
Description copied from interface: AutoSuggestProvider
reset all suggestions

Specified by:
clear in interface AutoSuggestProvider

stop

public void stop()
Description copied from interface: AutoSuggestProvider
Interrupt searching for suggestions

Specified by:
stop in interface AutoSuggestProvider