|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.CellEditor
org.eclipse.jface.viewers.CheckboxCellEditor
public class CheckboxCellEditor
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
CellEditor.LayoutData |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckboxCellEditor()
public CheckboxCellEditor(Composite parent)
false.
Initially, the cell editor has no cell validator.
parent - the parent control
public CheckboxCellEditor(Composite parent,
int style)
false.
Initially, the cell editor has no cell validator.
parent - the parent controlstyle - the style bits| Method Detail |
|---|
public 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 CellEditorprotected Control createControl(Composite parent)
CheckboxCellEditor implementation of
this CellEditor framework method does
nothing and returns null.
createControl in class CellEditorparent - the parent control
null 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 CellEditorCellEditor.getValue()protected void doSetFocus()
CellEditorThis framework method must be implemented by concrete subclasses.
doSetFocus in class CellEditorCellEditor.setFocus()protected void doSetValue(Object value)
CheckboxCellEditor implementation of
this CellEditor framework method accepts
a value wrapped as a Boolean.
doSetValue in class CellEditorvalue - a Boolean valueCellEditor.setValue(java.lang.Object)
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.