public interface MutableComboBoxModel extends ComboBoxModel
ComboBoxModel
.Modifier and Type | Method and Description |
---|---|
void |
addElement(Object obj)
Adds an item at the end of the model.
|
void |
insertElementAt(Object obj,
int index)
Adds an item at a specific index.
|
void |
removeElement(Object obj)
Removes an item from the model.
|
void |
removeElementAt(int index)
Removes an item at a specific index.
|
getSelectedItem, setSelectedItem
addListDataListener, getElementAt, getSize, removeListDataListener
void addElement(Object obj)
ListDataListener
s that the
item has been added.obj
- the Object
to be addedvoid removeElement(Object obj)
ListDataListener
s that the
item has been removed.obj
- the Object
to be removedvoid insertElementAt(Object obj, int index)
ListDataListener
s that the
item has been added.obj
- the Object
to be addedindex
- location to add the objectvoid removeElementAt(int index)
ListDataListener
s that the
item has been removed.index
- location of object to be removed Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138