com.osbcp.css.constants
Enum BorderWidth

java.lang.Object
  extended by java.lang.Enum<BorderWidth>
      extended by com.osbcp.css.constants.BorderWidth
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BorderWidth>

public enum BorderWidth
extends java.lang.Enum<BorderWidth>
implements java.io.Serializable

Values for the border-width property.

Author:
Christoffer Pettersson
See Also:
CSS border-width Property

Enum Constant Summary
INHERIT
          Specifies that the border width should be inherited from the parent element.
MEDIUM
          Specifies a medium border.
THICK
          Specifies a thick border.
THIN
          Specifies a thin border.
 
Method Summary
 java.lang.String toString()
           
static BorderWidth valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BorderWidth[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

THIN

public static final BorderWidth THIN
Specifies a thin border.


MEDIUM

public static final BorderWidth MEDIUM
Specifies a medium border. This is default.


THICK

public static final BorderWidth THICK
Specifies a thick border.


INHERIT

public static final BorderWidth INHERIT
Specifies that the border width should be inherited from the parent element.

Method Detail

values

public static BorderWidth[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BorderWidth c : BorderWidth.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BorderWidth valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<BorderWidth>