public class BuilderComboBoxModel extends SortedComboBoxModel
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.)DEFAULT_COMPARATOR
Constructor and Description |
---|
BuilderComboBoxModel()
Constructs an empty combo box model.
|
Modifier and Type | Method and Description |
---|---|
void |
setSelectedItem(java.lang.Object anObject)
Sets the selected item of the combo box model to the specified
object.
|
addElement, setComparator
getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public BuilderComboBoxModel()
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel
setSelectedItem
in class javax.swing.DefaultComboBoxModel
anObject
- the object to set as the selected item