The KeyedComboBox model allows to define an internal key (the data element)
for every entry in the model.
This class is usefull in all cases, where the public text differs from the
internal view on the data. A separation between presentation data and
processing data is a prequesite for localizing combobox entries. This model
does not allow selected elements, which are not in the list of valid
elements.
author: Thomas Morgner
Creates a new keyed combobox model for the given keys and values. Keys
and values must have the same number of items.
Parameters: keys - the keys Parameters: values - the values
Tries to find the index of element with the given key. The key must not
be null.
Parameters: key - the key for the element to be searched. the index of the key, or -1 if not found.
Replaces the data in this combobox model. The number of keys must be
equals to the number of values.
Parameters: keys - the keys Parameters: values - the values
Set the selected item. The implementation of this method should notify
all registered ListDataListeners that the contents have
changed.
Parameters: anItem - the list object to select or null to clear theselection