Package com.oorian.css
Enum Class TextAlignLast
- All Implemented Interfaces:
Serializable,Comparable<TextAlignLast>,Constable
CSS text-align-last property values for last line alignment.
The text-align-last property specifies how the last line of a block element or the line before a forced break is aligned. This is useful for justified text blocks.
Alignment Values:
- auto: Inherits from text-align (default)
- left/right: Aligns to left/right edge
- center: Centers the last line
- justify: Justifies the last line
- start/end: Direction-aware alignment
Usage:
paragraph.setTextAlignLast(TextAlignLast.CENTER);
element.setTextAlignLast(TextAlignLast.START);
- 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 ConstantDescriptionUses text-align value except for justified text (default).Centers the last line.Aligns to end based on text direction.Inherits from parent element.Sets to default value.Justifies the last line.Aligns last line to the left.Aligns last line to the right.Aligns to start based on text direction. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static TextAlignLastReturns the enum constant of this class with the specified name.static TextAlignLast[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element. -
AUTO
Uses text-align value except for justified text (default). -
LEFT
Aligns last line to the left. -
CENTER
Centers the last line. -
RIGHT
Aligns last line to the right. -
JUSTIFY
Justifies the last line. -
START
Aligns to start based on text direction. -
END
Aligns to end based on text direction.
-
-
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<TextAlignLast>- Returns:
- the CSS value
-