public class ListComboBoxModel<T> extends ListListModel<T> implements MutableComboBoxModel<T>
MutableComboBoxModel that use a List as ContainerlistenerList| Constructor and Description |
|---|
ListComboBoxModel() |
ListComboBoxModel(List<T> list) |
ListComboBoxModel(List<T> list,
boolean allowNullSelection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(T element) |
Object |
getSelectedItem() |
void |
insertElementAt(T element,
int index) |
void |
removeElement(Object obj) |
void |
removeElementAt(int index) |
void |
setSelectedItem(Object item) |
add, addAll, clear, getElementAt, getList, getSize, removeAll, setListaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, getElementAt, getSize, removeListDataListenerpublic void addElement(T element)
addElement in interface MutableComboBoxModel<T>public void insertElementAt(T element, int index)
insertElementAt in interface MutableComboBoxModel<T>public void removeElement(Object obj)
removeElement in interface MutableComboBoxModel<T>public void removeElementAt(int index)
removeElementAt in interface MutableComboBoxModel<T>public Object getSelectedItem()
getSelectedItem in interface ComboBoxModel<T>public void setSelectedItem(Object item)
setSelectedItem in interface ComboBoxModel<T>Copyright © 2014 JDAL. All Rights Reserved.