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
-
public class FXPaintCellEditor extends DialogCellEditor
TheFXPaintCellEditor
is aDialogCellEditor
that is capable of displaying a currently selectedColor
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
Constructors Constructor Description FXPaintCellEditor(Composite parent)
Constructs a newFXPaintCellEditor
.FXPaintCellEditor(Composite parent, int style)
Constructs a newFXPaintCellEditor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ImageData
createPaintImage(Control w, javafx.scene.paint.Paint paint)
Creates anImageData
filled with the givenPaint
.void
dispose()
protected void
doSetValue(java.lang.Object value)
protected java.lang.Object
openDialogBox(Control cellEditorWindow)
protected void
updateContents(java.lang.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 Detail
-
FXPaintCellEditor
public FXPaintCellEditor(Composite parent)
Constructs a newFXPaintCellEditor
.- Parameters:
parent
- The parentComposite
.
-
FXPaintCellEditor
public FXPaintCellEditor(Composite parent, int style)
Constructs a newFXPaintCellEditor
.- Parameters:
parent
- The parentComposite
.style
- The SWT style for this control.
-
-
Method Detail
-
dispose
public void dispose()
- Overrides:
dispose
in classCellEditor
-
doSetValue
protected void doSetValue(java.lang.Object value)
- Overrides:
doSetValue
in classDialogCellEditor
-
openDialogBox
protected java.lang.Object openDialogBox(Control cellEditorWindow)
- Specified by:
openDialogBox
in classDialogCellEditor
-
updateContents
protected void updateContents(java.lang.Object value)
- Overrides:
updateContents
in classDialogCellEditor
-
-