|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A mutable version of ComboBoxModel
.
Method Summary | |
void |
addElement(java.lang.Object obj)
Adds an item at the end of the model. |
void |
insertElementAt(java.lang.Object obj,
int index)
Adds an item at a specific index. |
void |
removeElement(java.lang.Object obj)
Removes an item from the model. |
void |
removeElementAt(int index)
Removes an item at a specific index. |
Methods inherited from interface javax.swing.ComboBoxModel |
getSelectedItem, setSelectedItem |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
public void addElement(java.lang.Object obj)
ListDataListener
s that the
item has been added.
obj
- the Object
to be addedpublic void removeElement(java.lang.Object obj)
ListDataListener
s that the
item has been removed.
obj
- the Object
to be removedpublic void insertElementAt(java.lang.Object obj, int index)
ListDataListener
s that the
item has been added.
obj
- the Object
to be addedindex
- location to add the objectpublic void removeElementAt(int index)
ListDataListener
s that the
item has been removed.
index
- location of object to be removed
|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |