Enum Class ButtonType

java.lang.Object
java.lang.Enum<ButtonType>
com.jbstrap.ui.bootstrap.ButtonType
All Implemented Interfaces:
StyleElement, Serializable, Comparable<ButtonType>, Constable

public enum ButtonType extends Enum<ButtonType> implements StyleElement
Button types
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • DEFAULT

      public static final ButtonType DEFAULT
      Default button type. The button will be transparent.
    • PRIMARY

      public static final ButtonType PRIMARY
      The button will have the theme's primary color.
    • SECONDARY

      public static final ButtonType SECONDARY
      The button will have the theme's secundary color.
    • SUCCESS

      public static final ButtonType SUCCESS
      The button will have the theme's success color.
    • INFO

      public static final ButtonType INFO
      The button will have the theme's info color.
    • WARNING

      public static final ButtonType WARNING
      The button will have the theme's warning color.
    • DANGER

      public static final ButtonType DANGER
      The button will have the theme's danger color.
    • OUTLINE_PRIMARY

      public static final ButtonType OUTLINE_PRIMARY
      The button will have outlined the theme's primary color.
    • OUTLINE_SECONDARY

      public static final ButtonType OUTLINE_SECONDARY
      The button will have outlined the theme's secundary color.
    • OUTLINE_SUCCESS

      public static final ButtonType OUTLINE_SUCCESS
      The button will have outlined the theme's success color.
    • OUTLINE_DANGER

      public static final ButtonType OUTLINE_DANGER
      The button will have outlined the theme's danger color.
    • OUTLINE_WARNING

      public static final ButtonType OUTLINE_WARNING
      The button will have outlined the theme's warning color.
    • OUTLINE_INFO

      public static final ButtonType OUTLINE_INFO
      The button will have outlined the theme's info color.
    • BLOCK

      public static final ButtonType BLOCK
      The button will have the width of its parent component.
    • LIGHT

      public static final ButtonType LIGHT
      The button will have the theme's light color.
    • DARK

      public static final ButtonType DARK
      The button will have the theme's dark color.
    • DEFAULT_3D

      public static final ButtonType DEFAULT_3D
      Default three-dimensional button
    • PRIMARY_3D

      public static final ButtonType PRIMARY_3D
      3D button with the theme’s primary colors.
    • SECONDARY_3D

      public static final ButtonType SECONDARY_3D
      3D button with the theme’s secondary colors.
    • SUCCESS_3D

      public static final ButtonType SUCCESS_3D
      3D button with the theme’s “success” color.
    • INFO_3D

      public static final ButtonType INFO_3D
      3D button with the theme’s “information” color.
    • WARNING_3D

      public static final ButtonType WARNING_3D
      3D button with the theme’s “warning” color.
    • DANGER_3D

      public static final ButtonType DANGER_3D
      3D button with the theme’s “danger” color.
  • Method Details

    • values

      public static ButtonType[] 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 ButtonType 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 ButtonType 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