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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if any font value changed.boolean
isFontChanged
(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 newFontValue
for the font id that changed
-
-
Method Details
-
isFontChanged
Description copied from class:ThemeEvent
Returns true if the font associated with the given id has changed.- Overrides:
isFontChanged
in 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:ThemeEvent
Returns true if any font value changed.- Overrides:
hasAnyFontChanged
in classThemeEvent
- Returns:
- true if any font value changed.
-