E - the generic type of the enumpublic class EnumComboBoxModel<E extends Enum<E>> extends AbstractComboBoxModel<E>
EnumComboBoxModel is an implementation that safely wraps an Enum.comboList, selectedItemlistenerList| Constructor and Description |
|---|
EnumComboBoxModel(@NonNull Class<E> enumClass)
Instantiates a new
EnumComboBoxModel from the given enum class. |
EnumComboBoxModel(Class<E> enumClass,
E selectedItem)
Instantiates a new
EnumComboBoxModel from the given enum class and set as selected
item the given value. |
| Modifier and Type | Method and Description |
|---|---|
void |
setSelectedItem(Object anItem) |
actionPerformed, getElementAt, getSize, setComboSetaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectedItemaddListDataListener, removeListDataListenerpublic EnumComboBoxModel(@NonNull
@NonNull Class<E> enumClass)
EnumComboBoxModel from the given enum class.enumClass - the enum classpublic EnumComboBoxModel(Class<E> enumClass, E selectedItem)
EnumComboBoxModel from the given enum class and set as selected
item the given value.enumClass - the enum classselectedItem - the selected itempublic void setSelectedItem(Object anItem)
setSelectedItem in interface ComboBoxModel<E extends Enum<E>>setSelectedItem in class AbstractComboBoxModel<E extends Enum<E>>Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.