public class MapComboBoxModel extends AbstractListModel implements ComboBoxModel
for license details.
,
Serialized FormModifier and Type | Field and Description |
---|---|
private List<?> |
list |
private Object |
selected
What is currently selected?
|
private static long |
serialVersionUID
Serialization ID
|
listenerList
Constructor and Description |
---|
MapComboBoxModel(Map<?,?> map)
Simple ctor for an entry from a map.
|
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object newSelection) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
private List<?> list
private transient Object selected
private static final long serialVersionUID
public MapComboBoxModel(Map<?,?> map)
public void setSelectedItem(Object newSelection)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel