public static class AutoCompletion.SimpleChoices extends AutoCompletion.ChoicesBase
AutoCompletion.ChoiceList
does not depend on the prefix typed by the user
in the text field.list
Constructor and Description |
---|
SimpleChoices(Object[] objects)
Constructs a SimpleChoices initialized using specified
list of choices.
|
Modifier and Type | Method and Description |
---|---|
boolean |
choiceListDependsOnPrefix()
Returns
false . |
void |
getChoices(String prefix,
AutoCompletion.ChoiceList choiceList)
Computes the list of all possible choices given the ``prefix''
typed by the user.
|
getAll
public SimpleChoices(Object[] objects)
objects
- the list of all possible choices.
Must be properly sorted.
May be null
in case the list of items
is lazily computed by AutoCompletion.ChoicesBase.getAll()
.
public void getChoices(String prefix, AutoCompletion.ChoiceList choiceList)
AutoCompletion.Choices
prefix
- what has been typed in the text field by the userchoiceList
- the corresponding list of choicespublic boolean choiceListDependsOnPrefix()
false
.