Package com.jbstrap.ui.bootstrap
Enum Class ButtonType
- All Implemented Interfaces:
StyleElement
,Serializable
,Comparable<ButtonType>
,Constable
Button types
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe button will have the width of its parent component.The button will have the theme's danger color.3D button with the theme’s “danger” color.The button will have the theme's dark color.Default button type.Default three-dimensional buttonThe button will have the theme's info color.3D button with the theme’s “information” color.The button will have the theme's light color.The button will be displayed as a link, that is, it won't have a frame, or background color.The button will have outlined the theme's danger color.The button will have outlined the theme's info color.The button will have outlined the theme's primary color.The button will have outlined the theme's secundary color.The button will have outlined the theme's success color.The button will have outlined the theme's warning color.The button will have the theme's primary color.3D button with the theme’s primary colors.The button will have the theme's secundary color.3D button with the theme’s secondary colors.The button will have the theme's success color.3D button with the theme’s “success” color.The button will have the theme's warning color.3D button with the theme’s “warning” color. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ButtonType
void
static ButtonType
Returns the enum constant of this class with the specified name.static ButtonType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default button type. The button will be transparent. -
PRIMARY
The button will have the theme's primary color. -
SECONDARY
The button will have the theme's secundary color. -
SUCCESS
The button will have the theme's success color. -
INFO
The button will have the theme's info color. -
WARNING
The button will have the theme's warning color. -
DANGER
The button will have the theme's danger color. -
LINK
The button will be displayed as a link, that is, it won't have a frame, or background color. -
OUTLINE_PRIMARY
The button will have outlined the theme's primary color. -
OUTLINE_SECONDARY
The button will have outlined the theme's secundary color. -
OUTLINE_SUCCESS
The button will have outlined the theme's success color. -
OUTLINE_DANGER
The button will have outlined the theme's danger color. -
OUTLINE_WARNING
The button will have outlined the theme's warning color. -
OUTLINE_INFO
The button will have outlined the theme's info color. -
BLOCK
The button will have the width of its parent component. -
LIGHT
The button will have the theme's light color. -
DARK
The button will have the theme's dark color. -
DEFAULT_3D
Default three-dimensional button -
PRIMARY_3D
3D button with the theme’s primary colors. -
SECONDARY_3D
3D button with the theme’s secondary colors. -
SUCCESS_3D
3D button with the theme’s “success” color. -
INFO_3D
3D button with the theme’s “information” color. -
WARNING_3D
3D button with the theme’s “warning” color. -
DANGER_3D
3D button with the theme’s “danger” color.
-
-
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
-
apply
- Specified by:
apply
in interfaceStyleElement
- Parameters:
component
- The component
-
remove
- Specified by:
remove
in interfaceStyleElement
- Parameters:
component
- The component
-
fromName
- Parameters:
name
- The name of the button type- Returns:
- The button type corresponding to the name or
null
, if not found
-
getStyleClassName
- Specified by:
getStyleClassName
in interfaceStyleElement
- Returns:
- The style class name or
null
if is not style class for the style settings
-