Method Summary |
|
public void | activate() Activates this cell editor.
The default implementation of this framework method
does nothing. |
public void | activate(ColumnViewerEditorActivationEvent activationEvent) Activate the editor but also inform the editor which event triggered its activation. |
public void | addListener(ICellEditorListener listener) Adds a listener to this cell editor. |
public void | addPropertyChangeListener(IPropertyChangeListener listener) Adds a property change listener to this cell editor. |
public void | create(Composite parent) Creates the control for this cell editor under the given parent control. |
abstract protected Control | createControl(Composite parent) Creates the control for this cell editor under the given parent control. |
public void | deactivate() Hides this cell editor's control. |
boolean | dependsOnExternalFocusListener() |
public void | dispose() Disposes of this cell editor and frees any associated SWT resources. |
abstract protected Object | doGetValue() Returns this cell editor's value. |
abstract protected void | doSetFocus() Sets the focus to the cell editor's control. |
abstract protected void | doSetValue(Object value) Sets this cell editor's value. |
protected void | fireApplyEditorValue() Notifies all registered cell editor listeners of an apply event. |
protected void | fireCancelEditor() Notifies all registered cell editor listeners that editing has been
canceled. |
protected void | fireEditorValueChanged(boolean oldValidState, boolean newValidState) Notifies all registered cell editor listeners of a value change. |
protected void | fireEnablementChanged(String actionId) Notifies all registered property listeners
of an enablement change. |
protected void | focusLost() Processes a focus lost event that occurred in this cell editor.
The default implementation of this framework method applies the current
value and deactivates the cell editor.
Subclasses should call this method at appropriate times. |
public Control | getControl() Returns the control used to implement this cell editor. |
public String | getErrorMessage() Returns the current error message for this cell editor. |
public LayoutData | getLayoutData() Returns a layout data object for this cell editor. |
public int | getStyle() Returns the style bits for this cell editor. |
public ICellEditorValidator | getValidator() Returns the input validator for this cell editor. |
final public Object | getValue() Returns this cell editor's value provided that it has a valid one. |
public boolean | isActivated() Returns whether this cell editor is activated. |
public boolean | isCopyEnabled() Returns true if this cell editor is
able to perform the copy action. |
protected boolean | isCorrect(Object value) Returns whether the given value is valid for this cell editor. |
public boolean | isCutEnabled() Returns true if this cell editor is
able to perform the cut action. |
public boolean | isDeleteEnabled() Returns true if this cell editor is
able to perform the delete action. |
public boolean | isDirty() Returns whether the value of this cell editor has changed since the
last call to setValue . |
public boolean | isFindEnabled() Returns true if this cell editor is
able to perform the find action. |
public boolean | isPasteEnabled() Returns true if this cell editor is
able to perform the paste action. |
public boolean | isRedoEnabled() Returns true if this cell editor is
able to perform the redo action. |
public boolean | isSelectAllEnabled() Returns true if this cell editor is
able to perform the select all action. |
public boolean | isUndoEnabled() Returns true if this cell editor is
able to perform the undo action. |
public boolean | isValueValid() Returns whether this cell editor has a valid value. |
protected void | keyReleaseOccured(KeyEvent keyEvent) Processes a key release event that occurred in this cell editor.
The default implementation of this framework method cancels editing
when the ESC key is pressed. |
protected void | markDirty() Marks this cell editor as dirty. |
public void | performCopy() Performs the copy action. |
public void | performCut() Performs the cut action. |
public void | performDelete() Performs the delete action. |
public void | performFind() Performs the find action. |
public void | performPaste() Performs the paste action. |
public void | performRedo() Performs the redo action. |
public void | performSelectAll() Performs the select all action. |
public void | performUndo() Performs the undo action. |
public void | removeListener(ICellEditorListener listener) Removes the given listener from this cell editor. |
public void | removePropertyChangeListener(IPropertyChangeListener listener) Removes the given property change listener from this cell editor. |
protected void | setErrorMessage(String message) Sets or clears the current error message for this cell editor. |
public void | setFocus() Sets the focus to the cell editor's control. |
public void | setStyle(int style) Sets the style bits for this cell editor. |
public void | setValidator(ICellEditorValidator validator) Sets the input validator for this cell editor. |
final public void | setValue(Object value) Sets this cell editor's value. |
protected void | setValueValid(boolean valid) Sets the valid state of this cell editor. |
protected void | valueChanged(boolean oldValidState, boolean newValidState) The value has changed. |