- 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 TgetElementAt(int pIdx)TgetSelectedItem()intgetSize()voidsetSelectedItem(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:
setSelectedItemin interfaceComboBoxModel<T>
-
getSelectedItem
public T getSelectedItem()
- Specified by:
getSelectedItemin interfaceComboBoxModel<T>
-
getElementAt
public T getElementAt(int pIdx)
- Specified by:
getElementAtin interfaceListModel<T>
-
-