- 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>
public class ImmutableComboBoxModel<T> extends AbstractListModel<T> implements ComboBoxModel<T>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description ImmutableComboBoxModel(List<? extends T> pItems)
ImmutableComboBoxModel(T[] pItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getElementAt(int pIdx)
T
getSelectedItem()
int
getSize()
void
setSelectedItem(Object pSelectedItem)
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
-
-
-
Method Detail
-
setSelectedItem
public void setSelectedItem(Object pSelectedItem)
- Specified by:
setSelectedItem
in interfaceComboBoxModel<T>
-
getSelectedItem
public T getSelectedItem()
- Specified by:
getSelectedItem
in interfaceComboBoxModel<T>
-
getElementAt
public T getElementAt(int pIdx)
- Specified by:
getElementAt
in interfaceListModel<T>
-
-