Package org.eclipse.gef.fx.jface
Class FXPaintCellEditor
java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.eclipse.jface.viewers.DialogCellEditor
org.eclipse.gef.fx.jface.FXPaintCellEditor
The
FXPaintCellEditor
is a DialogCellEditor
that is capable
of displaying a currently selected Color
and of changing that color
via a dialog.-
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.DialogCellEditor
CELL_EDITOR_IMG_DOTS_BUTTON
Fields inherited from class org.eclipse.jface.viewers.CellEditor
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
-
Constructor Summary
ConstructorDescriptionFXPaintCellEditor
(Composite parent) Constructs a newFXPaintCellEditor
.FXPaintCellEditor
(Composite parent, int style) Constructs a newFXPaintCellEditor
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageData
createPaintImage
(Control w, javafx.scene.paint.Paint paint) Creates anImageData
filled with the givenPaint
.void
dispose()
protected void
doSetValue
(Object value) protected Object
openDialogBox
(Control cellEditorWindow) protected void
updateContents
(Object value) Methods inherited from class org.eclipse.jface.viewers.DialogCellEditor
createButton, createContents, createControl, deactivate, doGetValue, doSetFocus, getDefaultLabel
Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, activate, addListener, addPropertyChangeListener, create, deactivate, dependsOnExternalFocusListener, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, 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, valueChanged
-
Constructor Details
-
FXPaintCellEditor
Constructs a newFXPaintCellEditor
.- Parameters:
parent
- The parentComposite
.
-
FXPaintCellEditor
Constructs a newFXPaintCellEditor
.- Parameters:
parent
- The parentComposite
.style
- The SWT style for this control.
-
-
Method Details
-
createPaintImage
-
dispose
public void dispose()- Overrides:
dispose
in classCellEditor
-
doSetValue
- Overrides:
doSetValue
in classDialogCellEditor
-
openDialogBox
- Specified by:
openDialogBox
in classDialogCellEditor
-
updateContents
- Overrides:
updateContents
in classDialogCellEditor
-