public static interface AutoCompletion.Choices
Modifier and Type | Method and Description |
---|---|
boolean |
choiceListDependsOnPrefix()
Returns
true if the number of items contained
in the AutoCompletion.ChoiceList updated by 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 list)
Computes the list of all possible choices given the ``prefix''
typed by the user.
|
void getChoices(String prefix, AutoCompletion.ChoiceList list)
prefix
- what has been typed in the text field by the userlist
- the corresponding list of choicesboolean choiceListDependsOnPrefix()
true
if the number of items contained
in the AutoCompletion.ChoiceList
updated by 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.