to.etc.domui.dom.css
Enum VerticalAlignType

java.lang.Object
  extended by java.lang.Enum<VerticalAlignType>
      extended by to.etc.domui.dom.css.VerticalAlignType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VerticalAlignType>

public enum VerticalAlignType
extends java.lang.Enum<VerticalAlignType>

Mapping for vertical-align CSS Style attribute.

Author:
Vladimir Mijic Created on Apr 7, 2010

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 VerticalAlignType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VerticalAlignType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, 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 VerticalAlignType BASELINE
Align the baseline of the element with the baseline of the parent element. This is default.


SUB

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


SUPER

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


TOP

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


TEXT_TOP

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


MIDDLE

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


BOTTOM

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


TEXT_BOTTOM

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


INHERIT

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

Method Detail

values

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

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

valueOf

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