Enum Class OutlineWidth

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

public enum OutlineWidth extends Enum<OutlineWidth>
CSS outline-width property values for outline thickness.

The outline-width property specifies the width of an outline. Outlines differ from borders in that they do not take up space and may overlap other content.

Width Values:

  • thin: Thin outline
  • medium: Medium outline (default)
  • thick: Thick outline

Usage:


 element.setOutlineWidth(OutlineWidth.THICK);
 button.setOutlineWidth(OutlineWidth.THIN);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • INHERIT

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

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

      public static final OutlineWidth NONE
      No outline.
    • THICK

      public static final OutlineWidth THICK
      Thick outline.
    • MEDIUM

      public static final OutlineWidth MEDIUM
      Medium outline (default).
    • THIN

      public static final OutlineWidth THIN
      Thin outline.
  • Method Details

    • values

      public static OutlineWidth[] 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 OutlineWidth 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<OutlineWidth>
      Returns:
      the CSS value