Method Summary |
|
protected Control | createControl(Composite parent) |
boolean | dependsOnExternalFocusListener() |
protected Object | doGetValue() The TextCellEditor implementation of
this CellEditor framework method returns
the text string. |
protected void | doSetFocus() |
protected void | doSetValue(Object value) The TextCellEditor implementation of
this CellEditor framework method accepts
a text string (type String ). |
protected void | editOccured(ModifyEvent e) Processes a modify event that occurred in this text cell editor.
This framework method performs validation and sets the error message
accordingly, and then reports a change via fireEditorValueChanged .
Subclasses should call this method at appropriate times. |
public LayoutData | getLayoutData() Since a text editor field is scrollable we don't
set a minimumSize. |
protected void | handleDefaultSelection(SelectionEvent event) Handles a default selection event from the text control by applying the editor
value and deactivating this cell editor. |
public boolean | isCopyEnabled() The TextCellEditor implementation of this
CellEditor method returns true if
the current selection is not empty. |
public boolean | isCutEnabled() The TextCellEditor implementation of this
CellEditor method returns true if
the current selection is not empty. |
public boolean | isDeleteEnabled() The TextCellEditor implementation of this
CellEditor method returns true
if there is a selection or if the caret is not positioned
at the end of the text. |
public boolean | isPasteEnabled() The TextCellEditor implementation of this
CellEditor method always returns true . |
public boolean | isSaveAllEnabled() |
public boolean | isSelectAllEnabled() Returns true if this cell editor is
able to perform the select all action. |
protected void | keyReleaseOccured(KeyEvent keyEvent) Processes a key release event that occurred in this cell editor.
The TextCellEditor implementation of this framework method
ignores when the RETURN key is pressed since this is handled in
handleDefaultSelection .
An exception is made for Ctrl+Enter for multi-line texts, since
a default selection event is not sent in this case. |
public void | performCopy() The TextCellEditor implementation of this
CellEditor method copies the
current selection to the clipboard. |
public void | performCut() The TextCellEditor implementation of this
CellEditor method cuts the
current selection to the clipboard. |
public void | performDelete() The TextCellEditor implementation of this
CellEditor method deletes the
current selection or, if there is no selection,
the character next character from the current position. |
public void | performPaste() The TextCellEditor implementation of this
CellEditor method pastes the
the clipboard contents over the current selection. |
public void | performSelectAll() The TextCellEditor implementation of this
CellEditor method selects all of the
current text. |