Enum Class ThemePart

java.lang.Object
java.lang.Enum<ThemePart>
io.meeds.layout.constant.ThemePart
All Implemented Interfaces:
Serializable, Comparable<ThemePart>, Constable

public enum ThemePart extends Enum<ThemePart>
A part of the Branding and Theme administration, one per drawer of the Branding page: each part accepts exactly the options its drawer writes, the theme variables as named in the platform's branding configuration and, for the page part, the page fields of the branding itself.
  • Enum Constant Details

    • COLORS

      public static final ThemePart COLORS
    • FONT

      public static final ThemePart FONT
    • TOPBAR

      public static final ThemePart TOPBAR
    • DRAWERS

      public static final ThemePart DRAWERS
    • PAGE_AND_APPS

      public static final ThemePart PAGE_AND_APPS
  • Field Details

  • Method Details

    • values

      public static ThemePart[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ThemePart valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static ThemePart parse(String value)
      Parameters:
      value - the value an agent sent
      Returns:
      the matching part
      Throws:
      IllegalArgumentException - with the tool's fixed message when the value is omitted or outside the vocabulary
    • getValue

      public String getValue()
    • getThemeOptions

      public Set<String> getThemeOptions()
      Returns:
      the theme variables the part's drawer writes
    • getBrandingFields

      public Set<String> getBrandingFields()
      Returns:
      the fields of the branding itself the part's drawer writes
    • isBrandingField

      public boolean isBrandingField(String option)