Package de.xima.fc.css.builder
Enum ECssTextAlign
- java.lang.Object
-
- java.lang.Enum<ECssTextAlign>
-
- de.xima.fc.css.builder.ECssTextAlign
-
- All Implemented Interfaces:
CssDefaultValue
,Serializable
,Comparable<ECssTextAlign>
public enum ECssTextAlign extends Enum<ECssTextAlign> implements CssDefaultValue
Constants with the pre-defined values for the CSS propertytext-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 Constants Enum Constant Description 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.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.
-
Field Summary
-
Fields inherited from interface de.xima.fc.css.builder.CssDefaultValue
INHERIT, INITIAL, REVERT, REVERT_LAYER, UNSET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
String
value()
static ECssTextAlign
valueOf(String name)
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 Detail
-
CENTER
public static final ECssTextAlign CENTER
The inline contents are centered within the line box.
-
END
public static final ECssTextAlign END
The same asright
if direction is left-to-right and left if direction is right-to-left.
-
JUSTIFY
public static final ECssTextAlign 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
public static final ECssTextAlign JUSTIFY_ALL
Same as justify, but also forces the last line to be justified.
-
LEFT
public static final ECssTextAlign LEFT
The inline contents are aligned to the left edge of the line box.
-
MATCH_PARENT
public static final ECssTextAlign 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
public static final ECssTextAlign RIGHT
The inline contents are aligned to the right edge of the line box.
-
START
public static final ECssTextAlign START
The same asleft
if direction is left-to-right and right if direction is right-to-left.
-
-
Method Detail
-
values
public static ECssTextAlign[] 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 (ECssTextAlign c : ECssTextAlign.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECssTextAlign valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<ECssTextAlign>
-
value
public String value()
- Returns:
- The string value of this property that can be used when creating CSS strings.
-
-