|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ComboBoxModel
The data model for a JComboBox. This model keeps track of elements
contained in the JComboBox as well as the current
combo box selection. Whenever the selection in the JComboBox
changes, the ComboBoxModel should fire a ListDataEvent
to the model's ListDataListeners.
| Method Summary | |
|---|---|
Object |
getSelectedItem()
Returns the currently selected item in the combo box. |
void |
setSelectedItem(Object item)
Sets the selected item in the combo box. |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, getElementAt, getSize, removeListDataListener |
| Method Detail |
|---|
void setSelectedItem(Object item)
ListDataEvent to all registered
ListDataListeners to indicate that the selection has changed.
item - the selected item (null permitted).Object getSelectedItem()
null).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||