public class CollectionComboBoxModel<T> extends CollectionListModel<T> implements javax.swing.ComboBoxModel<T>
Modifier and Type | Field and Description |
---|---|
protected T |
mySelection |
Constructor and Description |
---|
CollectionComboBoxModel() |
CollectionComboBoxModel(java.util.List<T> items) |
CollectionComboBoxModel(java.util.List<T> items,
T selection) |
Modifier and Type | Method and Description |
---|---|
T |
getSelected() |
java.lang.Object |
getSelectedItem() |
void |
setSelectedItem(java.lang.Object item) |
void |
update() |
add, add, add, addAll, addRow, allContentsChanged, canExchangeRows, contains, contentsChanged, exchangeRows, getElementAt, getElementIndex, getInternalList, getItems, getSize, isEmpty, itemReplaced, remove, remove, removeAll, removeRange, removeRow, replaceAll, setElementAt, sort, toList, toString
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
protected T mySelection
public CollectionComboBoxModel()
public CollectionComboBoxModel(java.util.List<T> items)
public void setSelectedItem(java.lang.Object item)
setSelectedItem
in interface javax.swing.ComboBoxModel<T>
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel<T>
public T getSelected()
public void update()