| Modifier and Type | Field and Description |
|---|---|
| pack-priv Vector | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultComboBoxModel(final E[]
an array of Object objects items)Constructs a DefaultComboBoxModel object initialized with an array of objects. |
| public | DefaultComboBoxModel(Vector<E>
a Vector object ... v)Constructs a DefaultComboBoxModel object initialized with a vector. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAll(Collection<? extends E>
the collection which contains the elements to add c)Adds all of the elements present in the collection. |
| public void | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends E> the collection which contains the elements to add c)Adds all of the elements present in the collection, starting from the specified index. |
| public void | addElement(E anObject)
Implements javax. Adds an item at the end of the model. |
| public E | getElementAt(int index)
Implements javax. Returns the value at the specified index. |
| public int | Returns: an int representing the index position, where 0 is the first positionthe object to return the index of anObject)Returns the index-position of the specified object in the list. |
| public Object | |
| public int | |
| public void | insertElementAt(E anObject, int index)
Implements javax. Adds an item at a specific index. |
| public void | |
| public void | removeElement(Object anObject)
Implements javax. Removes an item from the model. |
| public void | removeElementAt(int index)
Implements javax. Removes an item at a specific index. |
| public void | setSelectedItem(Object
The combo box value or null for no selection. anObject)Implements javax. Set the value of the selected item. |
| objects | back to summary |
|---|---|
| pack-priv Vector<E> objects | |
| selectedObject | back to summary |
|---|---|
| pack-priv Object selectedObject | |
| DefaultComboBoxModel | back to summary |
|---|---|
| public DefaultComboBoxModel() Constructs an empty DefaultComboBoxModel object. | |
| DefaultComboBoxModel | back to summary |
|---|---|
| public DefaultComboBoxModel(final E[] items) Constructs a DefaultComboBoxModel object initialized with an array of objects.
| |
| DefaultComboBoxModel | back to summary |
|---|---|
| public DefaultComboBoxModel(Vector<E> v) Constructs a DefaultComboBoxModel object initialized with a vector.
| |
| addAll | back to summary |
|---|---|
| public void addAll(Collection<? extends E> c) Adds all of the elements present in the collection.
| |
| addAll | back to summary |
|---|---|
| public void addAll(int index, Collection<? extends E> c) Adds all of the elements present in the collection, starting from the specified index.
| |
| addElement | back to summary |
|---|---|
| public void addElement(E anObject) Implements javax. Doc from javax. Adds an item at the end of the model. The implementation of this method
should notify all registered | |
| getElementAt | back to summary |
|---|---|
| public E getElementAt(int index) Implements javax. Doc from javax. Returns the value at the specified index. | |
| getIndexOf | back to summary |
|---|---|
| public int getIndexOf(Object anObject) Returns the index-position of the specified object in the list.
| |
| getSelectedItem | back to summary |
|---|---|
| public Object getSelectedItem() Implements javax. Doc from javax. Returns the selected item | |
| getSize | back to summary |
|---|---|
| public int getSize() Implements javax. Doc from javax. Returns the length of the list. | |
| insertElementAt | back to summary |
|---|---|
| public void insertElementAt(E anObject, int index) Implements javax. Doc from javax. Adds an item at a specific index. The implementation of this method
should notify all registered | |
| removeAllElements | back to summary |
|---|---|
| public void removeAllElements() Empties the list. | |
| removeElement | back to summary |
|---|---|
| public void removeElement(Object anObject) Implements javax. Doc from javax. Removes an item from the model. The implementation of this method should
should notify all registered | |
| removeElementAt | back to summary |
|---|---|
| public void removeElementAt(int index) Implements javax. Doc from javax. Removes an item at a specific index. The implementation of this method
should notify all registered | |
| setSelectedItem | back to summary |
|---|---|
| public void setSelectedItem(Object anObject) Implements javax. Set the value of the selected item. The selected item may be null.
| |