Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public interface: ComboBoxModel [javadoc | source]

All Implemented Interfaces:
    ListModel

All Known Implementing Classes:
    OptionComboBoxModel, DirectoryComboBoxModel, FilterComboBoxModel, DefaultComboBoxModel, MutableComboBoxModel, ItemListModel

A data model for a combo box. This interface extends ListDataModel 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.

Method from javax.swing.ComboBoxModel Summary:
getSelectedItem,   setSelectedItem
Method from javax.swing.ComboBoxModel Detail:
 public Object getSelectedItem()
    Returns the selected item
 public  void setSelectedItem(Object anItem)
    Set the selected item. The implementation of this method should notify all registered ListDataListeners that the contents have changed.