public class RichTextCellEditor
extends org.eclipse.jface.viewers.CellEditor
RichTextEditor as editing
control.
It creates the RichTextEditor instance always using the style bit SWT.EMBEDDED to
ensure the editor is opened with a minimum size. Otherwise the editing framework will set the
bounds to the size of the current cell, which makes the editor unusable.
Additionally it supports the style bit SWT.RESIZE which is set by default if no
specialized style is set. This enables resizing support of the embedded inline
RichTextEditor. By additionally specifying the SWT.MIN style bit, it is not
possible for a user to resize the editor below the specified minimum size via
As the RichTextEditor uses a Browser internally, it is also possible to specify
the browser type via style bit.
| Modifier and Type | Field and Description |
|---|---|
protected RichTextEditor |
editor
The rich text editor control, initially
null. |
protected RichTextEditorConfiguration |
editorConfiguration
The
RichTextEditorConfiguration that should be used for creating the inline rich text editor
control. |
| Constructor and Description |
|---|
RichTextCellEditor(org.eclipse.swt.widgets.Composite parent)
Create a resizable
RichTextCellEditor with the default RichTextEditorConfiguration. |
RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
int style)
Create a resizable
RichTextCellEditor with the default RichTextEditorConfiguration
and the given style bits. |
RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
RichTextEditorConfiguration editorConfiguration,
int style)
Create a resizable
RichTextCellEditor with the given RichTextEditorConfiguration and
the given style bits. |
RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
ToolbarConfiguration toolbarConfiguration)
Deprecated.
Use a constructor with
RichTextEditorConfiguration parameter |
RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
ToolbarConfiguration toolbarConfiguration,
int style)
Deprecated.
Use a constructor with
RichTextEditorConfiguration parameter |
| Modifier and Type | Method and Description |
|---|---|
void |
create(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent) |
protected java.lang.Object |
doGetValue() |
protected void |
doSetFocus() |
protected void |
doSetValue(java.lang.Object value) |
protected void |
editOccured(org.eclipse.swt.events.ModifyEvent e)
Processes a modify event that occurred in this rich text cell editor.
|
protected void |
focusLost() |
protected org.eclipse.swt.graphics.Point |
getMinimumDimension() |
RichTextEditor |
getRichTextEditor()
Return the created
RichTextEditor control. |
activate, activate, addListener, addPropertyChangeListener, deactivate, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, 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, valueChangedprotected RichTextEditor editor
null.protected RichTextEditorConfiguration editorConfiguration
RichTextEditorConfiguration that should be used for creating the inline rich text editor
control. If null the default RichTextEditorConfiguration will be used.public RichTextCellEditor(org.eclipse.swt.widgets.Composite parent)
RichTextCellEditor with the default RichTextEditorConfiguration.parent - The parent composite.@Deprecated
public RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
ToolbarConfiguration toolbarConfiguration)
RichTextEditorConfiguration parameterRichTextCellEditor with the given
ToolbarConfiguration.parent - The parent composite.toolbarConfiguration - The ToolbarConfiguration that
should be used for creating the RichTextEditor.public RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
int style)
RichTextCellEditor with the default RichTextEditorConfiguration
and the given style bits.parent - The parent composite.style - The style bits to use.@Deprecated
public RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
ToolbarConfiguration toolbarConfiguration,
int style)
RichTextEditorConfiguration parameterRichTextCellEditor with the given
ToolbarConfiguration and the given style
bits.parent - The parent composite.toolbarConfiguration - The ToolbarConfiguration that
should be used for creating the RichTextEditor.style - The style bits to use.public RichTextCellEditor(org.eclipse.swt.widgets.Composite parent,
RichTextEditorConfiguration editorConfiguration,
int style)
RichTextCellEditor with the given RichTextEditorConfiguration and
the given style bits.parent - The parent composite.editorConfiguration - The RichTextEditorConfiguration that should be used for creating the
RichTextEditor.style - The style bits to use.public void create(org.eclipse.swt.widgets.Composite parent)
create in class org.eclipse.jface.viewers.CellEditorprotected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
createControl in class org.eclipse.jface.viewers.CellEditorprotected org.eclipse.swt.graphics.Point getMinimumDimension()
protected java.lang.Object doGetValue()
doGetValue in class org.eclipse.jface.viewers.CellEditorprotected void doSetFocus()
doSetFocus in class org.eclipse.jface.viewers.CellEditorprotected void doSetValue(java.lang.Object value)
doSetValue in class org.eclipse.jface.viewers.CellEditorprotected void editOccured(org.eclipse.swt.events.ModifyEvent e)
fireEditorValueChanged. Subclasses should call this method at appropriate times.
Subclasses may extend or reimplement.e - the SWT modify eventTextCellEditorprotected void focusLost()
focusLost in class org.eclipse.jface.viewers.CellEditorpublic RichTextEditor getRichTextEditor()
RichTextEditor control.RichTextEditor control, or null if this cell editor has no
control.