public class ColorEditor extends AbstractBasicEditorProvider implements java.beans.PropertyChangeListener
| Constructor and Description |
|---|
ColorEditor(SwingColorProperty prop,
java.util.Locale l)
Constructor.
|
ColorEditor(SwingColorProperty prop,
java.util.Locale l,
boolean autoSave)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static javax.swing.Icon |
createColoredIcon(java.awt.Color iconColor) |
javax.swing.JComponent |
getEditor()
Get an component for editing .
|
void |
goodBye()
Called when the editor provider is no longer used.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed.
|
void |
reset()
Reset the value in the editor to the basic value.
|
void |
save()
Set the basic value from the editor.
|
getDescription, getLabel, getLabelText, getLabelTextWithPunctuation, getTitleText, getToolTipText, isValidValuepublic ColorEditor(@NotNull SwingColorProperty prop, java.util.Locale l)
prop - property to editl - locale to usepublic ColorEditor(@NotNull SwingColorProperty prop, java.util.Locale l, boolean autoSave)
prop - property to editl - locale to useautoSave - save the changed color immediately?static javax.swing.Icon createColoredIcon(java.awt.Color iconColor)
@NotNull public javax.swing.JComponent getEditor()
getEditor in interface EditorProviderpublic void reset()
reset in interface EditorProviderpublic void save()
save in interface EditorProviderpublic void goodBye()
goodBye in interface EditorProviderpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source
and the property that has changed.