public static final class AutoCompletion.NoChoices extends Object implements AutoCompletion.Choices
Constructor and Description |
---|
NoChoices() |
Modifier and Type | Method and Description |
---|---|
boolean |
choiceListDependsOnPrefix()
Returns
true if the number of items contained
in the AutoCompletion.ChoiceList updated by AutoCompletion.Choices.getChoices(java.lang.String, com.xmlmind.guiutil.AutoCompletion.ChoiceList)
depends on the ``prefix'' typed by the user in the text field. |
void |
getChoices(String prefix,
AutoCompletion.ChoiceList choiceList)
Computes the list of all possible choices given the ``prefix''
typed by the user.
|
public void getChoices(String prefix, AutoCompletion.ChoiceList choiceList)
AutoCompletion.Choices
getChoices
in interface AutoCompletion.Choices
prefix
- what has been typed in the text field by the userchoiceList
- the corresponding list of choicespublic boolean choiceListDependsOnPrefix()
AutoCompletion.Choices
true
if the number of items contained
in the AutoCompletion.ChoiceList
updated by AutoCompletion.Choices.getChoices(java.lang.String, com.xmlmind.guiutil.AutoCompletion.ChoiceList)
depends on the ``prefix'' typed by the user in the text field.
Returns false
if AutoCompletion.ChoiceList
always contains
the same number of items. In such case, it's only the value of
AutoCompletion.ChoiceList.first
which depends on the ``prefix''
typed by the user.choiceListDependsOnPrefix
in interface AutoCompletion.Choices