Package generic.theme
Class AllValuesChangedThemeEvent
java.lang.Object
generic.theme.ThemeEvent
generic.theme.AllValuesChangedThemeEvent
ThemeEvent for when a new theme is set or the current theme is reset to its original
values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if any color value changed.booleanReturns true if any font value changed.booleanReturns true if any icon value changed.booleanReturns true if all colors, fonts, and icons may have changed.booleanisColorChanged(String id) Returns true if the color associated with the given id has changed.booleanisFontChanged(String id) Returns true if the font associated with the given id has changed.booleanisIconChanged(String id) Returns true if the icon associated with the given id has changed.booleanReturns true if theLookAndFeelhas changed (theme changed).
-
Constructor Details
-
AllValuesChangedThemeEvent
public AllValuesChangedThemeEvent(boolean lookAndFeelChanged) Constructor- Parameters:
lookAndFeelChanged- true if the overall theme was changed which may have caused theLookAndFeelto change
-
-
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
-
isFontChanged
Description copied from class:ThemeEventReturns true if the font associated with the given id has changed.- Overrides:
isFontChangedin classThemeEvent- Parameters:
id- the font id to test if changed- Returns:
- true if the font associated with the given id has changed
-
isIconChanged
Description copied from class:ThemeEventReturns true if the icon associated with the given id has changed.- Overrides:
isIconChangedin classThemeEvent- Parameters:
id- the icon id to test if changed- Returns:
- true if the icon associated with the given id has changed
-
isLookAndFeelChanged
public boolean isLookAndFeelChanged()Description copied from class:ThemeEventReturns true if theLookAndFeelhas changed (theme changed).- Overrides:
isLookAndFeelChangedin classThemeEvent- Returns:
- true if the
LookAndFeelhas changed (theme changed).
-
haveAllValuesChanged
public boolean haveAllValuesChanged()Description copied from class:ThemeEventReturns true if all colors, fonts, and icons may have changed. This doesn't guarantee that all the values have actually changed, just that they might have. In other words, a mass change occurred (theme change, theme reset, etc.) and any or all values may have changed.- Overrides:
haveAllValuesChangedin classThemeEvent- Returns:
- true if all colors, fonts, and icons may have 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.
-
hasAnyFontChanged
public boolean hasAnyFontChanged()Description copied from class:ThemeEventReturns true if any font value changed.- Overrides:
hasAnyFontChangedin classThemeEvent- Returns:
- true if any font value changed.
-
hasAnyIconChanged
public boolean hasAnyIconChanged()Description copied from class:ThemeEventReturns true if any icon value changed.- Overrides:
hasAnyIconChangedin classThemeEvent- Returns:
- true if any icon value changed.
-