org.jminor.common.model.combobox
Class BooleanComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by org.jminor.common.model.combobox.ItemComboBoxModel<Boolean>
              extended by org.jminor.common.model.combobox.BooleanComboBoxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel, Refreshable

public final class BooleanComboBoxModel
extends ItemComboBoxModel<Boolean>

A ComboBoxModel for boolean values, true, false and null.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jminor.common.model.combobox.ItemComboBoxModel
ItemComboBoxModel.IconItem<T>
 
Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
BooleanComboBoxModel()
          Constructs a new BooleanComboBoxModel.
BooleanComboBoxModel(String nullString, String trueString, String falseString)
          Constructs a new BooleanComboBoxModel.
 
Method Summary
 
Methods inherited from class org.jminor.common.model.combobox.ItemComboBoxModel
clear, getIndexOfItem, getSelectedItem, initializeItems, refresh, setSelectedItem
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, 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

BooleanComboBoxModel

public BooleanComboBoxModel()
Constructs a new BooleanComboBoxModel.


BooleanComboBoxModel

public BooleanComboBoxModel(String nullString,
                            String trueString,
                            String falseString)
Constructs a new BooleanComboBoxModel.

Parameters:
nullString - the string representing a null value
trueString - the string representing the boolean value 'true'
falseString - the string representing the boolean value 'false'