Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableComboBoxModel extends ComboBoxModel
A mutable version of 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. |
Methods inherited from interface javax.swing.ComboBoxModel |
---|
getSelectedItem, setSelectedItem |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
---|
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
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.