The auto complete field sample application demonstrates how to create and configure an
AutoCompleteField UI component using a variety of data sources. An
AutoCompleteField is a text
field that displays a list of values as the user types text in the
field. The list contains values that match the field or criteria that
you specify.The
AutoCompleteField
matches what the user types in the field against an associated data source.
BasicFilteredList filterList = new BasicFilteredList();
String[] currencyList = {RUB,AFN,EUR,ALL,GBP,GGP,DZD,EUR,AOA,XCD,XCD,
ARS,AMD,AWG,SHP,AUD,EUR};
int uniqueID = 0;
filterList.addDataSet(uniqueID,currencyList,"currency",
BasicFilteredList.COMPARISON_IGNORE_CASE);
AutoCompleteField autoCompleteField = new AutoCompleteField(filterList);
add(autoCompleteField);
No comments:
Post a Comment