Package docking.options.editor
Class ColorEditor
java.lang.Object
java.beans.PropertyEditorSupport
docking.options.editor.ColorEditor
- All Implemented Interfaces:
PropertyEditor
Color editor that is a bit unusual in that its custom component is a button that when pushed,
pops up a dialog for editing the color. Use
ColorPropertyEditor for a more traditional
property editor that returns a direct color editing component.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()booleanvoidpaintValue(Graphics gfx, Rectangle box) voidbooleanMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, removePropertyChangeListener, setAsText, setSource
-
Constructor Details
-
ColorEditor
public ColorEditor()
-
-
Method Details
-
getCustomEditor
- Specified by:
getCustomEditorin interfacePropertyEditor- Overrides:
getCustomEditorin classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditorin interfacePropertyEditor- Overrides:
supportsCustomEditorin classPropertyEditorSupport
-
setValue
- Specified by:
setValuein interfacePropertyEditor- Overrides:
setValuein classPropertyEditorSupport
-
getValue
- Specified by:
getValuein interfacePropertyEditor- Overrides:
getValuein classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintablein interfacePropertyEditor- Overrides:
isPaintablein classPropertyEditorSupport
-
paintValue
- Specified by:
paintValuein interfacePropertyEditor- Overrides:
paintValuein classPropertyEditorSupport
-