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
TheFXPaintCellEditoris aDialogCellEditorthat is capable of displaying a currently selectedColorand 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 ImageDatacreatePaintImage(Control w, javafx.scene.paint.Paint paint)Creates anImageDatafilled with the givenPaint.voiddispose()protected voiddoSetValue(java.lang.Object value)protected java.lang.ObjectopenDialogBox(Control cellEditorWindow)protected voidupdateContents(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:
disposein classCellEditor
-
doSetValue
protected void doSetValue(java.lang.Object value)
- Overrides:
doSetValuein classDialogCellEditor
-
openDialogBox
protected java.lang.Object openDialogBox(Control cellEditorWindow)
- Specified by:
openDialogBoxin classDialogCellEditor
-
updateContents
protected void updateContents(java.lang.Object value)
- Overrides:
updateContentsin classDialogCellEditor
-
-