Enum Class ThemeType

java.lang.Object
java.lang.Enum<ThemeType>
com.bonitasoft.processbuilder.enums.ThemeType
All Implemented Interfaces:
Serializable, Comparable<ThemeType>, Constable

public enum ThemeType extends Enum<ThemeType>
Defines the valid theme configuration attributes for application visual customization. This enumeration is typically used as the source for the 'Theme' master data, containing all necessary parameters to customize the application's look and feel.
Since:
1.0
Author:
Bonitasoft
  • Enum Constant Details

    • PRIMARY_COLOR

      public static final ThemeType PRIMARY_COLOR
      The primary brand color used throughout the application.
    • SAVE_COLOR

      public static final ThemeType SAVE_COLOR
      The color used for save actions.
    • LOGO_URL

      public static final ThemeType LOGO_URL
      The URL or base64-encoded data of the application logo.
    • FAVICON_URL

      public static final ThemeType FAVICON_URL
      The URL or base64-encoded data of the favicon.
    • APP_NAME

      public static final ThemeType APP_NAME
      The application name displayed in the header and title.
    • FONT_FAMILY

      public static final ThemeType FONT_FAMILY
      The primary font family used for general text.
    • HEADING_FONT_FAMILY

      public static final ThemeType HEADING_FONT_FAMILY
      The font family used for headings.
    • BASE_FONT_SIZE

      public static final ThemeType BASE_FONT_SIZE
      The base font size for the application.
    • BACKGROUND_COLOR

      public static final ThemeType BACKGROUND_COLOR
      The main background color of the application.
    • CONTAINER_BACKGROUND

      public static final ThemeType CONTAINER_BACKGROUND
      The background color for containers and cards.
    • SECTION_BACKGROUND

      public static final ThemeType SECTION_BACKGROUND
      The background color for highlighted sections.
    • BORDER_COLOR

      public static final ThemeType BORDER_COLOR
      The color used for borders.
    • DIVIDER_COLOR

      public static final ThemeType DIVIDER_COLOR
      The color used for dividers.
    • TEXT_COLOR

      public static final ThemeType TEXT_COLOR
      The primary text color used for general content.
    • SUCCESS_COLOR

      public static final ThemeType SUCCESS_COLOR
      The color indicating success states and positive feedback.
    • WARNING_COLOR

      public static final ThemeType WARNING_COLOR
      The color indicating warning states and cautionary feedback.
    • ERROR_COLOR

      public static final ThemeType ERROR_COLOR
      The color indicating error states and negative feedback.
    • NEUTRAL_COLOR

      public static final ThemeType NEUTRAL_COLOR
      The color indicating neutral or inactive states.
    • BORDER_RADIUS

      public static final ThemeType BORDER_RADIUS
      The border radius used for buttons, cards, and input fields.
  • Method Details

    • values

      public static ThemeType[] 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 ThemeType 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
    • getKey

      public String getKey()
      Returns the unique string key associated with this theme attribute.
      Returns:
      The theme attribute key (e.g., "PrimaryColor").
    • getDescription

      public String getDescription()
      Returns the description of this theme configuration attribute.
      Returns:
      The description.
    • isValid

      public static boolean isValid(String input)
      Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.
      Parameters:
      input - The string to validate.
      Returns:
      true if the string is a valid enum constant, false otherwise.
    • getAllData

      public static Map<String,String> getAllData()
      Retrieves all theme configuration attributes as a read-only Map where the key is the technical key and the value is the description.
      Returns:
      A map containing all theme attribute data (Key -> Description).
    • getAllKeysList

      public static List<String> getAllKeysList()
      Retrieves all technical keys as a read-only List of Strings.
      Returns:
      A list containing all theme attribute keys.