Enum Class LoadButtonAnimation

java.lang.Object
java.lang.Enum<LoadButtonAnimation>
com.jbstrap.ui.components.button.LoadButtonAnimation
All Implemented Interfaces:
StyleElement, Serializable, Comparable<LoadButtonAnimation>, Constable

public enum LoadButtonAnimation extends Enum<LoadButtonAnimation> implements StyleElement
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 Constants
    Enum Constant
    Description
    The button contracts into an oval shape, and the button text gets replaced by the loading animation
    The 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 Type
    Method
    Description
    void
    apply(Component<?> component)
     
     
     
    void
    remove(Component<?> component)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • EXPANDLEFT

      public static final LoadButtonAnimation 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

      public static final LoadButtonAnimation 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

      public static final LoadButtonAnimation EXPANDUP
      The loading animation appears above the button text, and the button expands vertically during the loading animation's duration.
    • EXPANDDOWN

      public static final LoadButtonAnimation EXPANDDOWN
      The loading animation appears below the button text, and the button expands vertically during the loading animation's duration.
    • ZOOMIN

      public static final LoadButtonAnimation ZOOMIN
      The loading animation appears behind the button text and moves towards the screen, replacing the text.
    • ZOOMOUT

      public static final LoadButtonAnimation ZOOMOUT
      The loading animation appears in front of the button text and moves towards the screen, replacing the text.
    • SLIDELEFT

      public static final LoadButtonAnimation SLIDELEFT
      The text slides to the left, and the loading animation replaces it.
    • SLIDERIGHT

      public static final LoadButtonAnimation SLIDERIGHT
      The text slides to the right, and the loading animation replaces it.
    • SLIDEUP

      public static final LoadButtonAnimation SLIDEUP
      The text slides upwards, and the loading animation replaces it.
    • SLIDEDOWN

      public static final LoadButtonAnimation SLIDEDOWN
      The text slides to the downwards, and the loading animation replaces it.
    • CONTRACT

      public static final LoadButtonAnimation CONTRACT
      The button contracts into an oval shape, and the button text gets replaced by the loading animation
  • Method Details

    • values

      public static LoadButtonAnimation[] 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 LoadButtonAnimation 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
    • apply

      public void apply(Component<?> component)
      Specified by:
      apply in interface StyleElement
      Parameters:
      component - The component
    • remove

      public void remove(Component<?> component)
      Specified by:
      remove in interface StyleElement
      Parameters:
      component - The component
    • fromName

      public static LoadButtonAnimation fromName(String name)
      Parameters:
      name - The name of the button type
      Returns:
      The button type corresponding to the name or null, if not found
    • getStyleClassName

      public String getStyleClassName()
      Specified by:
      getStyleClassName in interface StyleElement
      Returns:
      The style class name or null if is not style class for the style settings