Ontimize 5.2072EN

com.ontimize.gui.field
Class CustomComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byjavax.swing.DefaultComboBoxModel
          extended bycom.ontimize.gui.field.CustomComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel, java.io.Serializable

public class CustomComboBoxModel
extends javax.swing.DefaultComboBoxModel

See Also:
Serialized Form

Field Summary
static java.lang.String NULL_SELECTION
           
protected  boolean nullSelection
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CustomComboBoxModel()
           
CustomComboBoxModel(boolean nullSelection)
           
CustomComboBoxModel(java.util.Vector v)
           
CustomComboBoxModel(java.util.Vector v, boolean nullSelection)
           
 
Method Summary
protected  void checkNullSelection()
           
protected  void fireIntervalAdded(java.lang.Object source, int index0, int index1)
           
 boolean isNullSelection()
           
 void removeAllElements()
           
 void removeElement(java.lang.Object ob)
           
 void removeElementAt(int index)
           
 void setDataVector(java.util.Vector v)
           
 void setNullSelection(boolean nullSelection)
           
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, 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

NULL_SELECTION

public static final java.lang.String NULL_SELECTION
See Also:
Constant Field Values

nullSelection

protected boolean nullSelection
Constructor Detail

CustomComboBoxModel

public CustomComboBoxModel()

CustomComboBoxModel

public CustomComboBoxModel(boolean nullSelection)

CustomComboBoxModel

public CustomComboBoxModel(java.util.Vector v)

CustomComboBoxModel

public CustomComboBoxModel(java.util.Vector v,
                           boolean nullSelection)
Method Detail

isNullSelection

public boolean isNullSelection()

setNullSelection

public void setNullSelection(boolean nullSelection)

removeAllElements

public void removeAllElements()

removeElement

public void removeElement(java.lang.Object ob)

removeElementAt

public void removeElementAt(int index)

setDataVector

public void setDataVector(java.util.Vector v)

fireIntervalAdded

protected void fireIntervalAdded(java.lang.Object source,
                                 int index0,
                                 int index1)

checkNullSelection

protected void checkNullSelection()

Ontimize