public class KeyComboboxModel extends AbstractListModel implements MutableComboBoxModel, Serializable
listenerList| Constructor and Description |
|---|
KeyComboboxModel()
Creates a new KeyComboboxModel object.
|
KeyComboboxModel(List<Key> keys)
Creates a new KeyComboboxModel object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Object key) |
boolean |
contains(Object key)
DOCUMENT ME!
|
Object |
getElementAt(int index) |
int |
getIndexOf(Object key)
DOCUMENT ME!
|
Object |
getSelectedItem() |
int |
getSize() |
void |
insertElementAt(Object key,
int index) |
void |
removeAllElements()
DOCUMENT ME!
|
void |
removeElement(Object key) |
void |
removeElementAt(int index) |
void |
setSelectedItem(Object key) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic KeyComboboxModel()
public void setSelectedItem(Object key)
setSelectedItem in interface ComboBoxModelpublic Object getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic Object getElementAt(int index)
getElementAt in interface ListModelpublic boolean contains(Object key)
key - DOCUMENT ME!public int getIndexOf(Object key)
key - DOCUMENT ME!public void addElement(Object key)
addElement in interface MutableComboBoxModelpublic void insertElementAt(Object key, int index)
insertElementAt in interface MutableComboBoxModelpublic void removeElementAt(int index)
removeElementAt in interface MutableComboBoxModelpublic void removeElement(Object key)
removeElement in interface MutableComboBoxModelpublic void removeAllElements()
Copyright © 2012–2025 cismet GmbH. All rights reserved.