public class SimpleComboModel<T> extends SimpleListModel<T> implements javax.swing.ComboBoxModel<T>
*
The SimpleListModel.asList() method returns an object that implements the
List interface. Changes you make to this list will
automatically fire events to listeners of this list model. This is
convenient if you want to pass a list model down to code that uses the
collections framework.
| Constructor and Description |
|---|
SimpleComboModel() |
SimpleComboModel(java.util.List<T> list)
Create a combo model with the given items.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getSelectedItem() |
void |
setSelectedItem(java.lang.Object item) |
addElement, addElements, asList, changed, changed, getElementAt, getSize, indexOf, insertAt, iterator, moveBottom, moveDown, moveTop, moveUp, removeAll, removeElement, removeIndicesaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SimpleComboModel()
public SimpleComboModel(java.util.List<T> list)
list -