ListModel
and adds the concept of a selected item. The selected item is generally
the item which is visible in the combo box display area.
The selected item may not necessarily be managed by the underlying
ListModel. This disjoint behavior allows for the temporary
storage and retrieval of a selected item in the model.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The selected item ornull if there is no selectionReturns the selected item |
| public void | setSelectedItem(Object
the list object to select or anItem)null
to clear the selectionSet the selected item. |
| getSelectedItem | back to summary |
|---|---|
| public Object getSelectedItem() Returns the selected item
| |
| setSelectedItem | back to summary |
|---|---|
| public void setSelectedItem(Object anItem) Set the selected item. The implementation of this method should notify
all registered
| |