com.osbcp.css.constants
Enum TextAlign

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

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

Values for the text-align property.

Author:
Christoffer Pettersson
See Also:
CSS text-align Property

Enum Constant Summary
CENTER
          Centers the text.
INHERIT
          Specifies that the value of the text-align property should be inherited from the parent element.
JUSTIFY
          Stretches the lines so that each line has equal width (like in newspapers and magazines).
LEFT
          Aligns the text to the left.
RIGHT
          Aligns the text to the right.
 
Method Summary
 java.lang.String toString()
           
static TextAlign valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextAlign[] 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

LEFT

public static final TextAlign LEFT
Aligns the text to the left.


RIGHT

public static final TextAlign RIGHT
Aligns the text to the right.


CENTER

public static final TextAlign CENTER
Centers the text.


JUSTIFY

public static final TextAlign JUSTIFY
Stretches the lines so that each line has equal width (like in newspapers and magazines).


INHERIT

public static final TextAlign INHERIT
Specifies that the value of the text-align property should be inherited from the parent element.

Method Detail

values

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

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

valueOf

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