Enum Class BorderStyle

java.lang.Object
java.lang.Enum<BorderStyle>
com.oorian.css.BorderStyle
All Implemented Interfaces:
Serializable, Comparable<BorderStyle>, Constable

public enum BorderStyle extends Enum<BorderStyle>
CSS border-style property values for border line appearance.

The border-style property sets the style of an element's four borders. Different styles create different visual effects from simple solid lines to 3D embossed effects.

Usage:


 element.setBorderStyle(BorderStyle.SOLID);
 element.setBorderStyle(BorderStyle.DASHED);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • INHERIT

      public static final BorderStyle INHERIT
      Inherits from parent element.
    • INITIAL

      public static final BorderStyle INITIAL
      Sets to default value.
    • NONE

      public static final BorderStyle NONE
      No border (default).
    • HIDDEN

      public static final BorderStyle HIDDEN
      Same as none, but affects table border conflict resolution.
    • DOTTED

      public static final BorderStyle DOTTED
      A series of round dots.
    • DASHED

      public static final BorderStyle DASHED
      A series of square-ended dashes.
    • SOLID

      public static final BorderStyle SOLID
      A single solid line.
    • DOUBLE

      public static final BorderStyle DOUBLE
      Two parallel solid lines.
    • GROOVE

      public static final BorderStyle GROOVE
      3D grooved effect (appears carved into the page).
    • RIDGE

      public static final BorderStyle RIDGE
      3D ridged effect (opposite of groove).
    • INSET

      public static final BorderStyle INSET
      3D inset effect (appears embedded).
    • OUTSET

      public static final BorderStyle OUTSET
      3D outset effect (appears raised).
  • Method Details

    • values

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

      public String getValue()
      Returns the CSS value string.
      Returns:
      the CSS value
    • toString

      public String toString()
      Returns the CSS value string.
      Overrides:
      toString in class Enum<BorderStyle>
      Returns:
      the CSS value