public class SortedComboBoxModel<E extends Comparable<E>> extends DefaultComboBoxModel<E>
listenerList
Constructor and Description |
---|
SortedComboBoxModel() |
SortedComboBoxModel(E[] items) |
SortedComboBoxModel(Vector<E> items) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(E element) |
void |
elementChanged(E element)
Notifies the listeners that the given
element of the combo box model was changed. |
void |
insertElementAt(E element,
int index) |
getElementAt, getIndexOf, getSelectedItem, getSize, removeAllElements, removeElement, removeElementAt, setSelectedItem
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public SortedComboBoxModel()
public SortedComboBoxModel(E[] items)
public void addElement(E element)
addElement
in interface MutableComboBoxModel<E extends Comparable<E>>
addElement
in class DefaultComboBoxModel<E extends Comparable<E>>
public void insertElementAt(E element, int index)
insertElementAt
in interface MutableComboBoxModel<E extends Comparable<E>>
insertElementAt
in class DefaultComboBoxModel<E extends Comparable<E>>
public void elementChanged(E element)
element
of the combo box model was changed.
The call to this method has no effect if the given element
doesn't exist in the
combo box model.
element
- the element that was changed.