Package generic.theme
Class ColorChangedThemeEvent
java.lang.Object
generic.theme.ThemeEvent
generic.theme.ColorChangedThemeEvent
ThemeEvent
for when a color changes for exactly one color id.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if any color value changed.boolean
isColorChanged
(String id) Returns true if the color associated with the given id has changed.Methods inherited from class generic.theme.ThemeEvent
hasAnyFontChanged, hasAnyIconChanged, haveAllValuesChanged, isFontChanged, isIconChanged, isLookAndFeelChanged
-
Constructor Details
-
ColorChangedThemeEvent
Constructor- Parameters:
values
- the set of theme values used to resolve indirect referencescolor
- the newColorValue
for the color id that changed
-
-
Method Details
-
isColorChanged
Description copied from class:ThemeEvent
Returns true if the color associated with the given id has changed.- Overrides:
isColorChanged
in classThemeEvent
- Parameters:
id
- the color id to test if changed- Returns:
- true if the color associated with the given id has changed
-
hasAnyColorChanged
public boolean hasAnyColorChanged()Description copied from class:ThemeEvent
Returns true if any color value changed.- Overrides:
hasAnyColorChanged
in classThemeEvent
- Returns:
- true if any color value changed.
-