Package generic.theme
Class FontChangedThemeEvent
java.lang.Object
generic.theme.ThemeEvent
generic.theme.FontChangedThemeEvent
ThemeEvent for when a font changes for exactly one font id.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if any font value changed.booleanisFontChanged(String id) Returns true if the font associated with the given id has changed.Methods inherited from class generic.theme.ThemeEvent
hasAnyColorChanged, hasAnyIconChanged, haveAllValuesChanged, isColorChanged, isIconChanged, isLookAndFeelChanged
-
Constructor Details
-
FontChangedThemeEvent
Constructor- Parameters:
values- the set of theme values used to resolve indirect referencesfont- the newFontValuefor the font id that changed
-
-
Method Details
-
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
-
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.
-