Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.builder
Class BuilderComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by oracle.ide.controls.SortedComboBoxModel
              extended by oracle.jdeveloper.builder.BuilderComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel

public class BuilderComboBoxModel
extends SortedComboBoxModel

The BuilderComboBoxModel is a basic combo box model that uses case-sensitive sorting, and makes the model disallow null selections (i.e., users cannot control-click an item to unselect it.)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.ide.controls.SortedComboBoxModel
DEFAULT_COMPARATOR
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
BuilderComboBoxModel()
          Constructs an empty combo box model.
 
Method Summary
 void setSelectedItem(java.lang.Object anObject)
          Sets the selected item of the combo box model to the specified object.
 
Methods inherited from class oracle.ide.controls.SortedComboBoxModel
addElement, setComparator
 
Methods inherited from class javax.swing.DefaultComboBoxModel
getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
 
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

BuilderComboBoxModel

public BuilderComboBoxModel()
Constructs an empty combo box model.

Method Detail

setSelectedItem

public void setSelectedItem(java.lang.Object anObject)
Sets the selected item of the combo box model to the specified object. This overrides the default behavior to prevent the selected item from being set to null. This means the user can't hit "Ctrl-click" to unselect an item in the JComboBox.

Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Overrides:
setSelectedItem in class javax.swing.DefaultComboBoxModel
Parameters:
anObject - the object to set as the selected item

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.