public class MapComboBoxModel extends AbstractListModel implements ComboBoxModel
for license details.,
Serialized Form| Modifier 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, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprivate List<?> list
private transient Object selected
private static final long serialVersionUID
public MapComboBoxModel(Map<?,?> map)
public void setSelectedItem(Object newSelection)
setSelectedItem in interface ComboBoxModelpublic Object getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic Object getElementAt(int index)
getElementAt in interface ListModel