| |
|
| java.lang.Object org.eclipse.jface.viewers.CellEditor org.eclipse.jface.viewers.CheckboxCellEditor
CheckboxCellEditor | public class CheckboxCellEditor extends CellEditor (Code) | | A cell editor that manages a checkbox.
The cell editor's value is a boolean.
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.
|
Field Summary | |
boolean | value The checkbox value. |
Constructor Summary | |
public | CheckboxCellEditor() | public | CheckboxCellEditor(Composite parent) Creates a new checkbox cell editor parented under the given control.
The cell editor value is a boolean value, which is initially false . | public | CheckboxCellEditor(Composite parent, int style) Creates a new checkbox cell editor parented under the given control.
The cell editor value is a boolean value, which is initially false . |
Method Summary | |
public void | activate() The CheckboxCellEditor implementation of
this CellEditor framework method simulates
the toggling of the checkbox control and notifies
listeners with ICellEditorListener.applyEditorValue . | 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() | protected void | doSetValue(Object value) The CheckboxCellEditor implementation of
this CellEditor framework method accepts
a value wrapped as a Boolean . |
value | boolean value(Code) | | The checkbox value.
|
CheckboxCellEditor | public CheckboxCellEditor()(Code) | | Creates a new checkbox cell editor with no control
since: 2.1 |
CheckboxCellEditor | public CheckboxCellEditor(Composite parent)(Code) | | Creates a new checkbox cell editor parented under the given control.
The cell editor value is a boolean value, which is initially false .
Initially, the cell editor has no cell validator.
Parameters: parent - the parent control |
CheckboxCellEditor | public CheckboxCellEditor(Composite parent, int style)(Code) | | Creates a new checkbox cell editor parented under the given control.
The cell editor value is a boolean value, which is initially false .
Initially, the cell editor has no cell validator.
Parameters: parent - the parent control Parameters: style - the style bits since: 2.1 |
activate | public void activate()(Code) | | The CheckboxCellEditor implementation of
this CellEditor framework method simulates
the toggling of the checkbox control and notifies
listeners with ICellEditorListener.applyEditorValue .
|
createControl | protected Control createControl(Composite parent)(Code) | | The CheckboxCellEditor implementation of
this CellEditor framework method does
nothing and returns null .
|
doGetValue | protected Object doGetValue()(Code) | | The CheckboxCellEditor implementation of
this CellEditor framework method returns
the checkbox setting wrapped as a Boolean .
the Boolean checkbox value |
doSetFocus | protected void doSetFocus()(Code) | | |
doSetValue | protected void doSetValue(Object value)(Code) | | The CheckboxCellEditor implementation of
this CellEditor framework method accepts
a value wrapped as a Boolean .
Parameters: value - a Boolean value |
|
|
|