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
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
boolean
void
paintValue
(Graphics gfx, Rectangle box) void
boolean
Methods 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:
getCustomEditor
in interfacePropertyEditor
- Overrides:
getCustomEditor
in classPropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()- Specified by:
supportsCustomEditor
in interfacePropertyEditor
- Overrides:
supportsCustomEditor
in classPropertyEditorSupport
-
setValue
- Specified by:
setValue
in interfacePropertyEditor
- Overrides:
setValue
in classPropertyEditorSupport
-
getValue
- Specified by:
getValue
in interfacePropertyEditor
- Overrides:
getValue
in classPropertyEditorSupport
-
isPaintable
public boolean isPaintable()- Specified by:
isPaintable
in interfacePropertyEditor
- Overrides:
isPaintable
in classPropertyEditorSupport
-
paintValue
- Specified by:
paintValue
in interfacePropertyEditor
- Overrides:
paintValue
in classPropertyEditorSupport
-