com.osbcp.css.constants
Enum VerticalAlign

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

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

Values for the vertical-align property.

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

Enum Constant Summary
BASELINE
          Align the baseline of the element with the baseline of the parent element.
BOTTOM
          The bottom of the element is aligned with the lowest element on the line.
INHERIT
          Specifies that the value of the vertical-align property should be inherited from the parent element.
MIDDLE
          The element is placed in the middle of the parent element.
SUB
          Aligns the element as it was subscript.
SUPER
          Aligns the element as it was superscript.
TEXT_BOTTOM
          The bottom of the element is aligned with the bottom of the parent element's font.
TEXT_TOP
          The top of the element is aligned with the top of the parent element's font.
TOP
          The top of the element is aligned with the top of the tallest element on the line.
 
Method Summary
 java.lang.String toString()
           
static VerticalAlign valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VerticalAlign[] 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

BASELINE

public static final VerticalAlign BASELINE
Align the baseline of the element with the baseline of the parent element. This is default.


SUB

public static final VerticalAlign SUB
Aligns the element as it was subscript.


SUPER

public static final VerticalAlign SUPER
Aligns the element as it was superscript.


TOP

public static final VerticalAlign TOP
The top of the element is aligned with the top of the tallest element on the line.


TEXT_TOP

public static final VerticalAlign TEXT_TOP
The top of the element is aligned with the top of the parent element's font.


MIDDLE

public static final VerticalAlign MIDDLE
The element is placed in the middle of the parent element.


BOTTOM

public static final VerticalAlign BOTTOM
The bottom of the element is aligned with the lowest element on the line.


TEXT_BOTTOM

public static final VerticalAlign TEXT_BOTTOM
The bottom of the element is aligned with the bottom of the parent element's font.


INHERIT

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

Method Detail

values

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

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

valueOf

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