Package com.jbstrap.ui.components.button
Enum Class LoadButtonAnimation
- All Implemented Interfaces:
StyleElement
,Serializable
,Comparable<LoadButtonAnimation>
,Constable
Animations that the Load button component can use. See the JBStrap showcase to see them in motion
- 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 contracts into an oval shape, and the button text gets replaced by the loading animationThe loading animation appears below the button text, and the button expands vertically during the loading animation's duration.The loading animation appears on the button's left side.The loading animation appears on the button's right side.The loading animation appears above the button text, and the button expands vertically during the loading animation's duration.The text slides to the downwards, and the loading animation replaces it.The text slides to the left, and the loading animation replaces it.The text slides to the right, and the loading animation replaces it.The text slides upwards, and the loading animation replaces it.The loading animation appears behind the button text and moves towards the screen, replacing the text.The loading animation appears in front of the button text and moves towards the screen, replacing the text. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static LoadButtonAnimation
void
static LoadButtonAnimation
Returns the enum constant of this class with the specified name.static LoadButtonAnimation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPANDLEFT
The loading animation appears on the button's left side. The button will widen towards the right during the loading animation's duration. -
EXPANDRIGHT
The loading animation appears on the button's right side. The button will widen towards the right during the loading animation's duration. -
EXPANDUP
The loading animation appears above the button text, and the button expands vertically during the loading animation's duration. -
EXPANDDOWN
The loading animation appears below the button text, and the button expands vertically during the loading animation's duration. -
ZOOMIN
The loading animation appears behind the button text and moves towards the screen, replacing the text. -
ZOOMOUT
The loading animation appears in front of the button text and moves towards the screen, replacing the text. -
SLIDELEFT
The text slides to the left, and the loading animation replaces it. -
SLIDERIGHT
The text slides to the right, and the loading animation replaces it. -
SLIDEUP
The text slides upwards, and the loading animation replaces it. -
SLIDEDOWN
The text slides to the downwards, and the loading animation replaces it. -
CONTRACT
The button contracts into an oval shape, and the button text gets replaced by the loading animation
-
-
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
-