public class CheckboxCellEditor extends CellEditor
This class may be instantiated; it is not intended to be subclassed.
Note that this implementation simply fakes it and does does not create
any new controls. The mere activation of this editor means that the value
of the check box is being toggled by the end users; the listener method
applyEditorValue
is immediately called to signal the change.
CellEditor.LayoutData
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
Constructor and Description |
---|
CheckboxCellEditor()
Creates a new checkbox cell editor with no control
|
CheckboxCellEditor(Composite parent)
Creates a new checkbox cell editor parented under the given control.
|
CheckboxCellEditor(Composite parent,
int style)
Creates a new checkbox cell editor parented under the given control.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
The
CheckboxCellEditor implementation of
this CellEditor framework method simulates
the toggling of the checkbox control and notifies
listeners with ICellEditorListener.applyEditorValue . |
void |
activate(ColumnViewerEditorActivationEvent activationEvent)
Activate the editor but also inform the editor which event triggered its
activation.
|
protected Control |
createControl(Composite parent)
The
CheckboxCellEditor implementation of
this CellEditor framework method does
nothing and returns null . |
protected Object |
doGetValue()
The
CheckboxCellEditor implementation of
this CellEditor framework method returns
the checkbox setting wrapped as a Boolean . |
protected void |
doSetFocus()
Sets the focus to the cell editor's control.
|
protected void |
doSetValue(Object value)
The
CheckboxCellEditor implementation of
this CellEditor framework method accepts
a value wrapped as a Boolean . |
addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
public CheckboxCellEditor()
public CheckboxCellEditor(Composite parent)
false
.
Initially, the cell editor has no cell validator.parent
- the parent controlpublic CheckboxCellEditor(Composite parent, int style)
false
.
Initially, the cell editor has no cell validator.parent
- the parent controlstyle
- the style bitspublic void activate()
CheckboxCellEditor
implementation of
this CellEditor
framework method simulates
the toggling of the checkbox control and notifies
listeners with ICellEditorListener.applyEditorValue
.activate
in class CellEditor
protected Control createControl(Composite parent)
CheckboxCellEditor
implementation of
this CellEditor
framework method does
nothing and returns null
.createControl
in class CellEditor
parent
- the parent controlnull
if this cell editor has
no controlprotected Object doGetValue()
CheckboxCellEditor
implementation of
this CellEditor
framework method returns
the checkbox setting wrapped as a Boolean
.doGetValue
in class CellEditor
CellEditor.getValue()
protected void doSetFocus()
CellEditor
This framework method must be implemented by concrete subclasses.
doSetFocus
in class CellEditor
CellEditor.setFocus()
protected void doSetValue(Object value)
CheckboxCellEditor
implementation of
this CellEditor
framework method accepts
a value wrapped as a Boolean
.doSetValue
in class CellEditor
value
- a Boolean valueCellEditor.setValue(java.lang.Object)
public void activate(ColumnViewerEditorActivationEvent activationEvent)
CellEditor
CellEditor.activate()
activate
in class CellEditor
activationEvent
- the editor activation event
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.