E - the type of the elements of this model
public interface MutableComboBoxModel<E> extends ComboBoxModel<E>
ComboBoxModel.
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(E item)
Adds an item at the end of the model.
|
void |
insertElementAt(E item, int index)
Adds an item at a specific index.
|
void |
removeElement(Object
Removes an item from the model.
|
void |
removeElementAt(int index)
Removes an item at a specific index.
|
getSelectedItem, setSelectedItemaddListDataListener, getElementAt, getSize, removeListDataListenervoid addElement(E item)
ListDataListeners that the item has been added.
item - the item to be added
void removeElement(Objectobj)
ListDataListeners that the item has been removed.
obj - the
Object to be removed
void insertElementAt(E item, int index)
ListDataListeners that the item has been added.
item - the item to be added
index - location to add the object
void removeElementAt(int index)
ListDataListeners that the item has been removed.
index - location of the item to be removed