public class CustomComboBoxModel extends DefaultComboBoxModel
| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_SELECTION |
protected boolean |
nullSelection |
listenerList| Constructor and Description |
|---|
CustomComboBoxModel() |
CustomComboBoxModel(boolean nullSelection) |
CustomComboBoxModel(Vector v) |
CustomComboBoxModel(Vector v,
boolean nullSelection) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNullSelection() |
protected void |
fireIntervalAdded(Object source,
int index0,
int index1) |
protected void |
fireIntervalRemoved(Object source,
int index0,
int index1) |
boolean |
isNullSelection() |
void |
removeAllElements() |
void |
removeElement(Object ob) |
void |
removeElementAt(int index) |
void |
setDataVector(Vector v) |
void |
setNullSelection(boolean nullSelection) |
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, setSelectedItemaddListDataListener, fireContentsChanged, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic static final String NULL_SELECTION
protected boolean nullSelection
public CustomComboBoxModel()
public CustomComboBoxModel(boolean nullSelection)
public CustomComboBoxModel(Vector v)
public CustomComboBoxModel(Vector v, boolean nullSelection)
public boolean isNullSelection()
public void setNullSelection(boolean nullSelection)
public void removeAllElements()
removeAllElements in class DefaultComboBoxModelpublic void removeElement(Object ob)
removeElement in interface MutableComboBoxModelremoveElement in class DefaultComboBoxModelpublic void removeElementAt(int index)
removeElementAt in interface MutableComboBoxModelremoveElementAt in class DefaultComboBoxModelpublic void setDataVector(Vector v)
protected void fireIntervalRemoved(Object source, int index0, int index1)
fireIntervalRemoved in class AbstractListModelprotected void fireIntervalAdded(Object source, int index0, int index1)
fireIntervalAdded in class AbstractListModelprotected void checkNullSelection()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.