public static class SwingFactories.AutoAddComboBoxModel extends DefaultComboBoxModel
DefaultComboBoxModel
which automatically adds to its list
all items trying to be set in the JComboBox
if they are not
already in the list.listenerList
Constructor and Description |
---|
AutoAddComboBoxModel()
Creates a new
AutoAddComboBoxModel . |
Modifier and Type | Method and Description |
---|---|
void |
setSelectedItem(Object anObject) |
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public AutoAddComboBoxModel()
AutoAddComboBoxModel
.public void setSelectedItem(Object anObject)
setSelectedItem
in interface ComboBoxModel
setSelectedItem
in class DefaultComboBoxModel
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.