Package com.oorian.css
Enum Class AlignContent
- All Implemented Interfaces:
Serializable,Comparable<AlignContent>,Constable
CSS align-content property values for flexbox container cross-axis alignment.
The align-content property aligns a flex container's lines within the flex container when there is extra space on the cross-axis. This property has no effect on single-line flex containers.
Usage:
element.setAlignContent(AlignContent.CENTER);
element.setAlignContent(AlignContent.SPACE_BETWEEN);
- 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 ConstantDescriptionLines are aligned at their baselines.Lines are packed toward the center.Lines packed to the end (writing-mode aware).Lines are aligned at the first baseline.Lines are packed toward the end.Lines are packed toward the start.Inherits from parent element.Sets to default value.Lines are aligned at the last baseline.Normal alignment behavior (context-dependent).Lines are evenly distributed with equal space around each.Lines are evenly distributed with no space at edges.Lines are evenly distributed with equal space between them.Lines packed to the start (writing-mode aware).Lines stretch to fill the remaining space (default). -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static AlignContentReturns the enum constant of this class with the specified name.static AlignContent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRETCH
Lines stretch to fill the remaining space (default). -
CENTER
Lines are packed toward the center. -
FLEX_START
Lines are packed toward the start. -
FLEX_END
Lines are packed toward the end. -
SPACE_BETWEEN
Lines are evenly distributed with no space at edges. -
SPACE_AROUND
Lines are evenly distributed with equal space around each. -
SPACE_EVENLY
Lines are evenly distributed with equal space between them. -
START
Lines packed to the start (writing-mode aware). -
END
Lines packed to the end (writing-mode aware). -
NORMAL
Normal alignment behavior (context-dependent). -
BASELINE
Lines are aligned at their baselines. -
FIRST_BASELINE
Lines are aligned at the first baseline. -
LAST_BASELINE
Lines are aligned at the last baseline. -
INITIAL
Sets to default value. -
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<AlignContent>- Returns:
- the CSS value
-