Enum Class ThemeType
- All Implemented Interfaces:
Serializable,Comparable<ThemeType>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe application name displayed in the header and title.The main background color of the application.The base font size for the application.The color used for borders.The border radius used for buttons, cards, and input fields.The background color for containers and cards.The color used for dividers.The color indicating error states and negative feedback.The URL or base64-encoded data of the favicon.The primary font family used for general text.The font family used for headings.The URL or base64-encoded data of the application logo.The color indicating neutral or inactive states.The primary brand color used throughout the application.The color used for save actions.The background color for highlighted sections.The color indicating success states and positive feedback.The primary text color used for general content.The color indicating warning states and cautionary feedback. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all theme configuration attributes as a read-only Map where the key is the technical key and the value is the description.Retrieves all technical keys as a read-only List of Strings.Returns the description of this theme configuration attribute.getKey()Returns the unique string key associated with this theme attribute.static booleanChecks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.static ThemeTypeReturns the enum constant of this class with the specified name.static ThemeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIMARY_COLOR
The primary brand color used throughout the application. -
SAVE_COLOR
The color used for save actions. -
LOGO_URL
The URL or base64-encoded data of the application logo. -
FAVICON_URL
The URL or base64-encoded data of the favicon. -
APP_NAME
The application name displayed in the header and title. -
FONT_FAMILY
The primary font family used for general text. -
HEADING_FONT_FAMILY
The font family used for headings. -
BASE_FONT_SIZE
The base font size for the application. -
BACKGROUND_COLOR
The main background color of the application. -
CONTAINER_BACKGROUND
The background color for containers and cards. -
SECTION_BACKGROUND
The background color for highlighted sections. -
BORDER_COLOR
The color used for borders. -
DIVIDER_COLOR
The color used for dividers. -
TEXT_COLOR
The primary text color used for general content. -
SUCCESS_COLOR
The color indicating success states and positive feedback. -
WARNING_COLOR
The color indicating warning states and cautionary feedback. -
ERROR_COLOR
The color indicating error states and negative feedback. -
NEUTRAL_COLOR
The color indicating neutral or inactive states. -
BORDER_RADIUS
The border radius used for buttons, cards, and input fields.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getKey
Returns the unique string key associated with this theme attribute.- Returns:
- The theme attribute key (e.g., "PrimaryColor").
-
getDescription
Returns the description of this theme configuration attribute.- Returns:
- The description.
-
isValid
Checks if a given string corresponds to a valid enum constant, ignoring case and leading/trailing spaces.- Parameters:
input- The string to validate.- Returns:
trueif the string is a valid enum constant,falseotherwise.
-
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
Retrieves all technical keys as a read-only List of Strings.- Returns:
- A list containing all theme attribute keys.
-