public class CheckBoxListComboBoxCellEditor extends ExComboBoxCellEditor
_comboBox
DEFAULT_CELL_EDITOR_BORDER
_clickCountToStart
changeEvent, listenerList
Constructor and Description |
---|
CheckBoxListComboBoxCellEditor() |
CheckBoxListComboBoxCellEditor(ComboBoxModel model)
Creates a
CheckBoxListComboBoxCellEditor that takes it's items from an existing
ComboBoxModel . |
CheckBoxListComboBoxCellEditor(ComboBoxModel model,
Class<?> type)
Creates a
CheckBoxListComboBoxCellEditor that takes it's items from an existing
ComboBoxModel . |
CheckBoxListComboBoxCellEditor(Object[] data)
Creates a
CheckBoxListComboBoxCellEditor that contains the elements in the specified array. |
CheckBoxListComboBoxCellEditor(Object[] data,
Class<?> type)
Creates a
CheckBoxListComboBoxCellEditor that contains the elements in the specified array. |
CheckBoxListComboBoxCellEditor(Vector<?> data)
Creates a
CheckBoxListComboBoxCellEditor that contains the elements in the specified Vector. |
CheckBoxListComboBoxCellEditor(Vector<?> data,
Class<?> type)
Creates a
CheckBoxListComboBoxCellEditor that contains the elements in the specified Vector. |
Modifier and Type | Method and Description |
---|---|
protected CheckBoxListExComboBox |
createCheckBoxListComboBox(ComboBoxModel model,
Class<?> type)
Creates the checkbox list combobox.
|
ExComboBox |
createExComboBox()
Creates an ExComboBox or its subclass used by this cell editor.
|
void |
setComboBoxModel(ComboBoxModel model)
Updates the model for the combobox.
|
void |
setComboBoxType(Class<?> type)
Updates the data type for the combobox.
|
void |
setConverterContext(ConverterContext context)
Set the converter context for the cell editor.
|
void |
setPossibleValues(Object[] data)
Sets possible value set for the cell editor.
|
actionPerformed, createExComboBox, customizeExComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, isEditorStyleSupported, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, setType, stopCellEditing
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setEditorContext, setEditorStyle, setUseConverterContext
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell
public CheckBoxListComboBoxCellEditor()
public CheckBoxListComboBoxCellEditor(Object[] data)
CheckBoxListComboBoxCellEditor
that contains the elements in the specified array. By
default the first item in the array (and therefore the data model) becomes selected.data
- an array of objects to insert into the combo boxpublic CheckBoxListComboBoxCellEditor(Vector<?> data)
CheckBoxListComboBoxCellEditor
that contains the elements in the specified Vector. By
default the first item in the Vector (and therefore the data model) becomes selected.data
- an array of objects to insert into the combo boxpublic CheckBoxListComboBoxCellEditor(ComboBoxModel model)
CheckBoxListComboBoxCellEditor
that takes it's items from an existing
ComboBoxModel
. Since the ComboBoxModel
is provided, a combo box created using this
constructor does not create a default combo box model and may impact how the insert, remove and add methods
behave.model
- the ComboBoxModel
that provides the displayed list of itemspublic CheckBoxListComboBoxCellEditor(Object[] data, Class<?> type)
CheckBoxListComboBoxCellEditor
that contains the elements in the specified array. By
default the first item in the array (and therefore the data model) becomes selected.data
- an array of objects to insert into the combo boxtype
- the array type of element in the data array as the CheckBoxListComboBoxCellEditor is used to select
multiple items.public CheckBoxListComboBoxCellEditor(Vector<?> data, Class<?> type)
CheckBoxListComboBoxCellEditor
that contains the elements in the specified Vector. By
default the first item in the Vector (and therefore the data model) becomes selected.data
- an array of objects to insert into the combo boxtype
- the array type of element in the data array as the CheckBoxListComboBoxCellEditor is used to select
multiple items.public CheckBoxListComboBoxCellEditor(ComboBoxModel model, Class<?> type)
CheckBoxListComboBoxCellEditor
that takes it's items from an existing
ComboBoxModel
. Since the ComboBoxModel
is provided, a combo box created using this
constructor does not create a default combo box model and may impact how the insert, remove and add methods
behave.model
- the ComboBoxModel
that provides the displayed list of itemstype
- the array type of element in the data array as the CheckBoxListComboBoxCellEditor is used to select
multiple items.public ExComboBox createExComboBox()
ExComboBoxCellEditor
createExComboBox
in class ExComboBoxCellEditor
public void setComboBoxModel(ComboBoxModel model)
model
- the model for the combobox.public void setComboBoxType(Class<?> type)
type
- the type for the combobox.protected CheckBoxListExComboBox createCheckBoxListComboBox(ComboBoxModel model, Class<?> type)
model
- the combobox modeltype
- the element typepublic void setPossibleValues(Object[] data)
data
- the possible value setpublic void setConverterContext(ConverterContext context)
ContextSensitiveCellEditor
ContextSensitiveCellEditor.isUseConverterContext()
to decide
if the editor should use the cell's converter context or use null always.setConverterContext
in interface ConverterContextSupport
setConverterContext
in class ContextSensitiveCellEditor
context
- the converter contextContextSensitiveCellEditor.getConverterContext()