org.homeunix.thecave.moss.swing.model
Class DefaultSortedSetComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by org.homeunix.thecave.moss.swing.model.DefaultSortedSetComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel

public class DefaultSortedSetComboBoxModel
extends javax.swing.DefaultComboBoxModel

Author:
wyatt Default model for the JHintComboBox. Enforces a 'set' type interface (no duplicates). Keeps the list sorted at all times (thus overriding insertElementAt() with addElement).
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
DefaultSortedSetComboBoxModel()
           
 
Method Summary
 void addElement(java.lang.Object arg0)
           
 void insertElementAt(java.lang.Object arg0, int arg1)
           
 
Methods inherited from class javax.swing.DefaultComboBoxModel
getElementAt, getIndexOf, getSelectedItem, getSize, removeAllElements, removeElement, removeElementAt, setSelectedItem
 
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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DefaultSortedSetComboBoxModel

public DefaultSortedSetComboBoxModel()
Method Detail

addElement

public void addElement(java.lang.Object arg0)
Specified by:
addElement in interface javax.swing.MutableComboBoxModel
Overrides:
addElement in class javax.swing.DefaultComboBoxModel

insertElementAt

public void insertElementAt(java.lang.Object arg0,
                            int arg1)
Specified by:
insertElementAt in interface javax.swing.MutableComboBoxModel
Overrides:
insertElementAt in class javax.swing.DefaultComboBoxModel