java.lang.Object
javax.swing.AbstractListModel<T>
com.iamsoft.util.ui.swing.ImmutableComboBoxModel<T>
- Type Parameters:
T- Type of element stored in model.
- All Implemented Interfaces:
Serializable,ComboBoxModel<T>,ListModel<T>
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionImmutableComboBoxModel(List<? extends T> pItems) ImmutableComboBoxModel(T[] pItems) -
Method Summary
Modifier and TypeMethodDescriptiongetElementAt(int pIdx) intgetSize()voidsetSelectedItem(Object pSelectedItem) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
ImmutableComboBoxModel
-
ImmutableComboBoxModel
-
-
Method Details
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel<T>
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<T>
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAtin interfaceListModel<T>
-