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, removeElementAtaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic AutoAddComboBoxModel()
AutoAddComboBoxModel.public void setSelectedItem(Object anObject)
setSelectedItem in interface ComboBoxModelsetSelectedItem in class DefaultComboBoxModel© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.