Package generic.theme

Class ThemeEvent

java.lang.Object
generic.theme.ThemeEvent
Direct Known Subclasses:
AllValuesChangedThemeEvent, ColorChangedThemeEvent, FontChangedThemeEvent, IconChangedThemeEvent

public class ThemeEvent extends Object
Event for when a theme value changes;
  • Constructor Details Link icon

    • ThemeEvent Link icon

      public ThemeEvent()
  • Method Details Link icon

    • isColorChanged Link icon

      public boolean isColorChanged(String id)
      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 Link icon

      public boolean isFontChanged(String id)
      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 Link icon

      public boolean isIconChanged(String id)
      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 Link icon

      public boolean isLookAndFeelChanged()
      Returns true if the LookAndFeel has changed (theme changed).
      Returns:
      true if the LookAndFeel has changed (theme changed).
    • hasAnyColorChanged Link icon

      public boolean hasAnyColorChanged()
      Returns true if any color value changed.
      Returns:
      true if any color value changed.
    • hasAnyFontChanged Link icon

      public boolean hasAnyFontChanged()
      Returns true if any font value changed.
      Returns:
      true if any font value changed.
    • hasAnyIconChanged Link icon

      public boolean hasAnyIconChanged()
      Returns true if any icon value changed.
      Returns:
      true if any icon value changed.
    • haveAllValuesChanged Link icon

      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.