Package docking.theme.gui
Class ColorValueEditor
Editor for Theme colors
-
Field Summary
Fields inherited from class docking.theme.gui.ThemeValueEditor
currentThemeValue, editor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ThemeValue
<Color> createNewThemeValue
(String id, Color color) Factory method for creating the ThemeValue of the correct type.protected Color
getRawValue
(String id) Returns the actual value (Color, Font, or Icon)protected void
Called when the user has pressed ok.Methods inherited from class docking.theme.gui.ThemeValueEditor
editValue
-
Constructor Details
-
ColorValueEditor
Constructor- Parameters:
listener
- thePropertyChangeListener
to be notified when changes are made
-
-
Method Details
-
getRawValue
Description copied from class:ThemeValueEditor
Returns the actual value (Color, Font, or Icon)- Specified by:
getRawValue
in classThemeValueEditor<Color>
- Parameters:
id
- the theme property id for the value- Returns:
- the current stored value for the id
-
createNewThemeValue
Description copied from class:ThemeValueEditor
Factory method for creating the ThemeValue of the correct type.- Specified by:
createNewThemeValue
in classThemeValueEditor<Color>
- Parameters:
id
- the id for theme propertycolor
- the new value for the underlying type (Color, Font, or Icon)- Returns:
- the new ThemeValue for the type
-
storeState
protected void storeState()Description copied from class:ThemeValueEditor
Called when the user has pressed ok. This allows sub-classes to store any state for future dialog invocations.- Overrides:
storeState
in classThemeValueEditor<Color>
-