charvax.swing

Interface MutableComboBoxModel

All Superinterfaces:
ComboBoxModel, ListModel
Known Implementing Classes:
DefaultComboBoxModel

public interface MutableComboBoxModel
extends ComboBoxModel

A mutable version of ComboBoxModel.

Method Summary

void
addElement(Object item)
Add an item to the end of the model.
void
insertElementAt(Object obj, int index)
Insert an item at the specified index.
void
removeElement(Object obj)
Remove the specified object from the model.
void
removeElementAt(int index)
Remove the item at the specified index.

Methods inherited from interface charvax.swing.ComboBoxModel

getSelectedItem, setSelectedItem

Methods inherited from interface charvax.swing.ListModel

addListDataListener, getElementAt, getSize, removeListDataListener

Method Details

addElement

public void addElement(Object item)
Add an item to the end of the model.

insertElementAt

public void insertElementAt(Object obj,
                            int index)
Insert an item at the specified index.

removeElement

public void removeElement(Object obj)
Remove the specified object from the model.

removeElementAt

public void removeElementAt(int index)
Remove the item at the specified index.