Package com.oorian.css
Enum Class VerticalAlign
- All Implemented Interfaces:
Serializable,Comparable<VerticalAlign>,Constable
CSS vertical-align property values for vertical positioning.
The vertical-align property sets the vertical alignment of an inline, inline-block, or table-cell element relative to its line box or table cell.
Alignment Values:
- baseline: Aligns to parent baseline (default)
- top/bottom: Aligns to line or cell top/bottom
- middle: Centers vertically
- text-top/text-bottom: Aligns to parent font top/bottom
- sub/super: Subscript/superscript positioning
Usage:
image.setVerticalAlign(VerticalAlign.MIDDLE);
cell.setVerticalAlign(VerticalAlign.TOP);
- Since:
- 2012
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAligns to parent element baseline (default).Aligns to bottom of line box or cell.Inherits from parent element.Centers vertically in line box or cell.Subscript positioning.Superscript positioning.Aligns to bottom of parent font.Aligns to top of parent font.Aligns to top of line box or cell. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static VerticalAlignReturns the enum constant of this class with the specified name.static VerticalAlign[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
Aligns to top of line box or cell. -
MIDDLE
Centers vertically in line box or cell. -
BOTTOM
Aligns to bottom of line box or cell. -
BASELINE
Aligns to parent element baseline (default). -
SUB
Subscript positioning. -
SUPER
Superscript positioning. -
TEXT_TOP
Aligns to top of parent font. -
TEXT_BOTTOM
Aligns to bottom of parent font. -
INHERIT
Inherits from parent element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.- Overrides:
toStringin classEnum<VerticalAlign>- Returns:
- the CSS value
-