Enum Class OutlineStyle

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

public enum OutlineStyle extends Enum<OutlineStyle>
CSS outline-style property values for outline appearance.

The outline-style property specifies the style of an outline. An outline is a line drawn around elements, outside the borders, to make the element stand out. Unlike borders, outlines do not take up space and may overlap other content.

Style Values:

  • none: No outline (default)
  • hidden: Same as none
  • dotted: Dotted outline
  • dashed: Dashed outline
  • solid: Solid outline
  • double: Double outline
  • groove: 3D grooved outline
  • ridge: 3D ridged outline
  • inset: 3D inset outline
  • outset: 3D outset outline

Usage:


 element.setOutlineStyle(OutlineStyle.SOLID);
 focusedInput.setOutlineStyle(OutlineStyle.DOTTED);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • INHERIT

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

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

      public static final OutlineStyle NONE
      No outline is displayed.
    • HIDDEN

      public static final OutlineStyle HIDDEN
      Same as none.
    • DOTTED

      public static final OutlineStyle DOTTED
      Dotted outline.
    • DASHED

      public static final OutlineStyle DASHED
      Dashed outline.
    • SOLID

      public static final OutlineStyle SOLID
      Solid outline.
    • DOUBLE

      public static final OutlineStyle DOUBLE
      Double outline.
    • GROOVE

      public static final OutlineStyle GROOVE
      3D grooved outline.
    • RIDGE

      public static final OutlineStyle RIDGE
      3D ridged outline.
    • INSET

      public static final OutlineStyle INSET
      3D inset outline.
    • OUTSET

      public static final OutlineStyle OUTSET
      3D outset outline.
  • Method Details

    • values

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