Package generic.theme
Class ThemeEvent
java.lang.Object
generic.theme.ThemeEvent
- Direct Known Subclasses:
AllValuesChangedThemeEvent,ColorChangedThemeEvent,FontChangedThemeEvent,IconChangedThemeEvent
Event for when a theme value changes;
-
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
-
ThemeEvent
public ThemeEvent()
-
-
Method Details
-
isColorChanged
Returns true if the color associated with the given id has changed.- Parameters:
id- the color id to test if changed- Returns:
- true if the color associated with the given id has changed
-
isFontChanged
Returns true if the font associated with the given id has changed.- Parameters:
id- the font id to test if changed- Returns:
- true if the font associated with the given id has changed
-
isIconChanged
Returns true if the icon associated with the given id has changed.- 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()Returns true if theLookAndFeelhas changed (theme changed).- Returns:
- true if the
LookAndFeelhas changed (theme changed).
-
hasAnyColorChanged
public boolean hasAnyColorChanged()Returns true if any color value changed.- Returns:
- true if any color value changed.
-
hasAnyFontChanged
public boolean hasAnyFontChanged()Returns true if any font value changed.- Returns:
- true if any font value changed.
-
hasAnyIconChanged
public boolean hasAnyIconChanged()Returns true if any icon value changed.- Returns:
- true if any icon value changed.
-
haveAllValuesChanged
public boolean haveAllValuesChanged()Returns 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.- Returns:
- true if all colors, fonts, and icons may have changed.
-