Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public class: DefaultComboBoxModel [javadoc | source]
java.lang.Object
   javax.swing.AbstractListModel<E>
      javax.swing.DefaultComboBoxModel

All Implemented Interfaces:
    java$io$Serializable, MutableComboBoxModel, ListModel

Direct Known Subclasses:
    OptionComboBoxModel, ItemListModel

The default model for combo boxes.
Field Summary
 Vector<E> objects     
 Object selectedObject     
Fields inherited from javax.swing.AbstractListModel:
listenerList
Constructor:
 public DefaultComboBoxModel() 
 public DefaultComboBoxModel(E[] items) 
 public DefaultComboBoxModel(Vector<E> v) 
    Constructs a DefaultComboBoxModel object initialized with a vector.
    Parameters:
    v - a Vector object ...
Method from javax.swing.DefaultComboBoxModel Summary:
addElement,   getElementAt,   getIndexOf,   getSelectedItem,   getSize,   insertElementAt,   removeAllElements,   removeElement,   removeElementAt,   setSelectedItem
Methods from javax.swing.AbstractListModel:
addListDataListener,   fireContentsChanged,   fireIntervalAdded,   fireIntervalRemoved,   getListDataListeners,   getListeners,   removeListDataListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.DefaultComboBoxModel Detail:
 public  void addElement(E anObject) 
 public E getElementAt(int index) 
 public int getIndexOf(Object anObject) 
    Returns the index-position of the specified object in the list.
 public Object getSelectedItem() 
 public int getSize() 
 public  void insertElementAt(E anObject,
    int index) 
 public  void removeAllElements() 
    Empties the list.
 public  void removeElement(Object anObject) 
 public  void removeElementAt(int index) 
 public  void setSelectedItem(Object anObject) 
    Set the value of the selected item. The selected item may be null.