Enum Class Border

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

public enum Border extends Enum<Border> implements StyleElement
  • 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
    Displays the border on all sides of the component.
    Displays the border on the lower side of the component.
    Displays the border on the left side of the component.
    Displays the border on the right side of the component.
    Displays the border on the upper side of the component.
    Sets the component’s border color to the theme’s “danger” color.
    Sets the component’s border color to the theme’s dark color.
    Makes the border disappear from the component.
    Makes the border disappear from the lower side of the component.
    Makes the border disappear from the left side of the component.
    Makes the border disappear from the right side of the component.
    Makes the border disappear from the upper side of the component.
    Sets the component’s border color to the theme’s “info” color.
    Sets the component’s border color to the theme’s light color.
    Straightens out the component border.
    Sets the component’s border color to the theme’s primary color.
    Rounds the component’s borders.
    Rounds the component’s bottom border.
    Rounds the component’s border by 50%.
    Increases the component border’s rounding radius.
    Rounds the component’s left border.
    Changes the component border to pill-shaped.
    Rounds the component’s right border.
    Decreases the component border’s rounding radius.
    Rounds the component’s top border.
    Sets the component’s border color to the theme’s secondary color.
    Sets the component’s border color to the theme’s “successful” color.
    Sets the component’s border color to the theme’s “warning” color.
    Sets the component’s border color to white.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(Component<?> component)
     
     
    void
    remove(Component<?> component)
     
    static Border
    Returns the enum constant of this class with the specified name.
    static Border[]
    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

    • BORDER

      public static final Border BORDER
      Displays the border on all sides of the component.
    • BORDER_TOP

      public static final Border BORDER_TOP
      Displays the border on the upper side of the component.
    • BORDER_RIGHT

      public static final Border BORDER_RIGHT
      Displays the border on the right side of the component.
    • BORDER_BOTTOM

      public static final Border BORDER_BOTTOM
      Displays the border on the lower side of the component.
    • BORDER_LEFT

      public static final Border BORDER_LEFT
      Displays the border on the left side of the component.
    • HIDE_BORDER

      public static final Border HIDE_BORDER
      Makes the border disappear from the component.
    • HIDE_BORDER_TOP

      public static final Border HIDE_BORDER_TOP
      Makes the border disappear from the upper side of the component.
    • HIDE_BORDER_RIGHT

      public static final Border HIDE_BORDER_RIGHT
      Makes the border disappear from the right side of the component.
    • HIDE_BORDER_BOTTOM

      public static final Border HIDE_BORDER_BOTTOM
      Makes the border disappear from the lower side of the component.
    • HIDE_BORDER_LEFT

      public static final Border HIDE_BORDER_LEFT
      Makes the border disappear from the left side of the component.
    • PRIMARY

      public static final Border PRIMARY
      Sets the component’s border color to the theme’s primary color.
    • SECONDARY

      public static final Border SECONDARY
      Sets the component’s border color to the theme’s secondary color.
    • SUCCESS

      public static final Border SUCCESS
      Sets the component’s border color to the theme’s “successful” color.
    • DANGER

      public static final Border DANGER
      Sets the component’s border color to the theme’s “danger” color.
    • WARNING

      public static final Border WARNING
      Sets the component’s border color to the theme’s “warning” color.
    • INFO

      public static final Border INFO
      Sets the component’s border color to the theme’s “info” color.
    • LIGHT

      public static final Border LIGHT
      Sets the component’s border color to the theme’s light color.
    • DARK

      public static final Border DARK
      Sets the component’s border color to the theme’s dark color.
    • WHITE

      public static final Border WHITE
      Sets the component’s border color to white.
    • ROUNDED

      public static final Border ROUNDED
      Rounds the component’s borders.
    • ROUNDED_TOP

      public static final Border ROUNDED_TOP
      Rounds the component’s top border.
    • ROUNDED_RIGHT

      public static final Border ROUNDED_RIGHT
      Rounds the component’s right border.
    • ROUNDED_BOTTOM

      public static final Border ROUNDED_BOTTOM
      Rounds the component’s bottom border.
    • ROUNDED_LEFT

      public static final Border ROUNDED_LEFT
      Rounds the component’s left border.
    • ROUNDED_CIRCLE

      public static final Border ROUNDED_CIRCLE
      Rounds the component’s border by 50%. If the component width and height are equal, the component is displayed as equally round.
    • ROUNDED_PILL

      public static final Border ROUNDED_PILL
      Changes the component border to pill-shaped.
    • NOT_ROUNDED

      public static final Border NOT_ROUNDED
      Straightens out the component border.
    • ROUNDED_SMALL

      public static final Border ROUNDED_SMALL
      Decreases the component border’s rounding radius.
    • ROUNDED_LARGE

      public static final Border ROUNDED_LARGE
      Increases the component border’s rounding radius.
  • Method Details

    • values

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