public class EnumComboBoxModel<E extends Enum<E>> extends ListComboBoxModel<E>
data, selected, UPDATElistenerList| 构造器和说明 |
|---|
EnumComboBoxModel(Class<E> en)
Creates an
EnumComboBoxModel for the enum represent by the
Class en. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
setSelectedItem(Object anItem)
Set the selected item.
|
actionPerformed, getElementAt, getSelectedItem, getSizeaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic EnumComboBoxModel(Class<E> en)
EnumComboBoxModel for the enum represent by the
Class en.en - the enum class typeIllegalArgumentException - if the Enum.toString returns the same value for more
than one constantpublic void setSelectedItem(Object anItem)
ListDataListeners that the contents have changed.setSelectedItem 在接口中 ComboBoxModelsetSelectedItem 在类中 ListComboBoxModel<E extends Enum<E>>anItem - the list object to select or null to clear the
selectionCopyright © 2021. All rights reserved.