Interface ThemeChangeObserver
public interface ThemeChangeObserver
Any attached component implementing this interface will receive an event when a new theme is
applied.
Observers are notified twice to support backward compatibility:
first via the deprecated
onThemeChange(String theme) and then via the
onThemeChange(ThemeChangeEvent).
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonThemeChange(ThemeChangeEvent event) Called when a theme change occurs.default voidonThemeChange(String themeName) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
onThemeChange
Deprecated, for removal: This API element is subject to removal in a future version.UseonThemeChange(ThemeChangeEvent)instead.Called when a theme change occurs.- Parameters:
themeName- the name of the new theme
-
onThemeChange
Called when a theme change occurs.- Parameters:
event- the theme change event
-
onThemeChange(ThemeChangeEvent)instead.