PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javax.swing
Interface ComboBoxModel

All Superinterfaces:
ListModel
All Known Subinterfaces:
MutableComboBoxModel
All Known Implementing Classes:
DefaultComboBoxModel

public interface ComboBoxModel
extends ListModel

Unsafe:


Method Summary
Object getSelectedItem()
Enabled: Returns the selected item
void setSelectedItem(Object anItem)
Enabled: Set the selected item.
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener

Method Detail

setSelectedItem

public void setSelectedItem(Object anItem)
Enabled: 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 the selection

getSelectedItem

public Object getSelectedItem()
Enabled: Returns the selected item

Returns:
The selected item or null if there is no selection

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

comments?

AltStyle によって変換されたページ (->オリジナル) /