Package de.xima.fc.css.builder
Enum ECssTextAlign
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssTextAlign>
Constants with the pre-defined values for the CSS property
text-align
.
The text-align CSS property sets the horizontal alignment of the inline-level content inside a block element or
table-cell box. This means it works like vertical-align
but in the horizontal direction. @author XIMA MEDIA
GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe inline contents are centered within the line box.The same asright
if direction is left-to-right and left if direction is right-to-left.The inline contents are justified.Same as justify, but also forces the last line to be justified.The inline contents are aligned to the left edge of the line box.Similar toinherit
, but the valuesstart
andend
are calculated according to the parent's direction and are replaced by the appropriate left or right value.The inline contents are aligned to the right edge of the line box.The same asleft
if direction is left-to-right and right if direction is right-to-left. -
Field Summary
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
value()
static ECssTextAlign
Returns the enum constant of this type with the specified name.static ECssTextAlign[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CENTER
The inline contents are centered within the line box. -
END
The same asright
if direction is left-to-right and left if direction is right-to-left. -
JUSTIFY
The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line. -
JUSTIFY_ALL
Same as justify, but also forces the last line to be justified. -
LEFT
The inline contents are aligned to the left edge of the line box. -
MATCH_PARENT
Similar toinherit
, but the valuesstart
andend
are calculated according to the parent's direction and are replaced by the appropriate left or right value. -
RIGHT
The inline contents are aligned to the right edge of the line box. -
START
The same asleft
if direction is left-to-right and right if direction is right-to-left.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ECssTextAlign>
-
value
- Returns:
- The string value of this property that can be used when creating CSS strings.
-