Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MutableComboBoxModel
A mutable version of ComboBoxModel.
| Method Summary | |
|---|---|
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)
ListDataListeners that the
item has been added.
obj - the Object to be addedvoid removeElement(Object obj)
ListDataListeners that the
item has been removed.
obj - the Object to be removed
void insertElementAt(Object obj,
int index)
ListDataListeners that the
item has been added.
obj - the Object to be addedindex - location to add the objectvoid removeElementAt(int index)
ListDataListeners that the
item has been removed.
index - location of object to be removed
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.