public interface

MutableComboBoxModel

implements ComboBoxModel
javax.swing.MutableComboBoxModel
Known Indirect Subclasses

Class Overview

A mutable version of ComboBoxModel.

Summary

Public Methods
abstract void addElement(Object obj)
Adds an item at the end of the model.
abstract void insertElementAt(Object obj, int index)
Adds an item at a specific index.
abstract void removeElement(Object obj)
Removes an item from the model.
abstract void removeElementAt(int index)
Removes an item at a specific index.
[Expand]
Inherited Methods
From interface javax.swing.ComboBoxModel
From interface javax.swing.ListModel

Public Methods

public abstract void addElement (Object obj)

Adds an item at the end of the model. The implementation of this method should notify all registered ListDataListeners that the item has been added.

Parameters
obj the Object to be added

public abstract void insertElementAt (Object obj, int index)

Adds an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been added.

Parameters
obj the Object to be added
index location to add the object

public abstract void removeElement (Object obj)

Removes an item from the model. The implementation of this method should should notify all registered ListDataListeners that the item has been removed.

Parameters
obj the Object to be removed

public abstract void removeElementAt (int index)

Removes an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been removed.

Parameters
index location of object to be removed