com.osbcp.css.constants
Enum FontStyle

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

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

Values for the font-style property.

Author:
Christoffer Pettersson
See Also:
CSS font-style Property

Enum Constant Summary
INHERIT
          Specifies that the font style should be inherited from the parent element.
ITALIC
          The browser displays an italic font style.
NORMAL
          The browser displays a normal font style.
OBLIQUE
          The browser displays an oblique font style.
 
Method Summary
 java.lang.String toString()
           
static FontStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FontStyle[] 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

NORMAL

public static final FontStyle NORMAL
The browser displays a normal font style. This is default.


ITALIC

public static final FontStyle ITALIC
The browser displays an italic font style.


OBLIQUE

public static final FontStyle OBLIQUE
The browser displays an oblique font style.


INHERIT

public static final FontStyle INHERIT
Specifies that the font style should be inherited from the parent element.

Method Detail

values

public static FontStyle[] 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 (FontStyle c : FontStyle.values())
    System.out.println(c);

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

valueOf

public static FontStyle 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<FontStyle>