Package adams.gui.core
Class BaseComboBoxModel<E>
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultComboBoxModel<E>
-
- adams.gui.core.BaseComboBoxModel<E>
-
- All Implemented Interfaces:
Serializable
,ComboBoxModel<E>
,ListModel<E>
,MutableComboBoxModel<E>
public class BaseComboBoxModel<E> extends DefaultComboBoxModel<E>
EnhancedDefaultComboBoxModel
.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description BaseComboBoxModel()
Constructs an empty DefaultComboBoxModel object.BaseComboBoxModel(E[] items)
Constructs a DefaultComboBoxModel object initialized with an array of objects.BaseComboBoxModel(List<E> v)
Constructs a DefaultComboBoxModel object initialized with a vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getSelectedItem()
-
Methods inherited from class javax.swing.DefaultComboBoxModel
addAll, addAll, addElement, getElementAt, getIndexOf, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
-
-
-
Constructor Detail
-
BaseComboBoxModel
public BaseComboBoxModel()
Constructs an empty DefaultComboBoxModel object.
-
BaseComboBoxModel
public BaseComboBoxModel(E[] items)
Constructs a DefaultComboBoxModel object initialized with an array of objects.- Parameters:
items
- an array of Object objects
-
-
Method Detail
-
getSelectedItem
public E getSelectedItem()
- Specified by:
getSelectedItem
in interfaceComboBoxModel<E>
- Overrides:
getSelectedItem
in classDefaultComboBoxModel<E>
-
-