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 Details

    • onThemeChange

      @Deprecated(forRemoval=true, since="5.3.0") default void onThemeChange(String themeName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Called when a theme change occurs.
      Parameters:
      themeName - the name of the new theme
    • onThemeChange

      default void onThemeChange(ThemeChangeEvent event)
      Called when a theme change occurs.
      Parameters:
      event - the theme change event