oracle.javatools.controls
Class SimpleComboBoxModel<T>
java.lang.Object
  
javax.swing.AbstractListModel
      
oracle.javatools.ui.list.SimpleListModel<T>
          
oracle.javatools.controls.SimpleComboBoxModel<T>
- All Implemented Interfaces: 
 - java.io.Serializable, java.lang.Iterable<T>, javax.swing.ComboBoxModel, javax.swing.ListModel
 
public final class SimpleComboBoxModel<T>
- extends SimpleListModel<T>
- implements javax.swing.ComboBoxModel
  
A SimpleComboBoxModel is a specialized version of SimpleListModel
 that also implements ComboBoxModel.
- Since:
 
  - 11.1.1.0.0
 
- See Also:
 - Serialized Form
 
 
| Fields inherited from class javax.swing.AbstractListModel | 
listenerList | 
 
 
 
| Methods inherited from class oracle.javatools.ui.list.SimpleListModel | 
addElement, addElements, asList, changed, changed, getElementAt, getSize, insertAt, iterator, moveBottom, moveDown, moveTop, moveUp, removeAll, removeElement, removeIndices | 
 
| 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, getElementAt, getSize, removeListDataListener | 
 
SimpleComboBoxModel
public SimpleComboBoxModel()
SimpleComboBoxModel
public SimpleComboBoxModel(java.util.Collection<T> items)
sortedModel
public static <E extends java.lang.Comparable> SimpleComboBoxModel<E> sortedModel(java.util.Collection<E> items)
 
 
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
 setSelectedItem in interface javax.swing.ComboBoxModel
 
 
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
 getSelectedItem in interface javax.swing.ComboBoxModel
 
 
Copyright © 1997, 2011, Oracle. All rights reserved.