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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if any color value changed.booleanisColorChanged(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 newColorValuefor the color id that changed
-
-
Method Details
-
isColorChanged
Description copied from class:ThemeEventReturns true if the color associated with the given id has changed.- Overrides:
isColorChangedin 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:ThemeEventReturns true if any color value changed.- Overrides:
hasAnyColorChangedin classThemeEvent- Returns:
- true if any color value changed.
-