Package com.oorian.css
Enum Class AlignItems
- All Implemented Interfaces:
Serializable,Comparable<AlignItems>,Constable
CSS align-items property values for flexbox item cross-axis alignment.
The align-items property specifies the default alignment for items inside a flex container. It aligns items on the cross-axis (perpendicular to the main axis).
Usage:
container.setAlignItems(AlignItems.CENTER);
container.setAlignItems(AlignItems.FLEX_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 ConstantDescriptionItems are aligned at their baselines.Items are centered on the cross-axis.Items packed to the end (writing-mode aware).Items are aligned at the first baseline.Items are aligned at the end of the cross-axis.Items are aligned at the start of the cross-axis.Inherits from parent element.Sets to default value.Items are aligned at the last baseline.Normal alignment behavior (context-dependent).Items aligned to their end edge.Items aligned to their start edge.Items packed to the start (writing-mode aware).Items stretch to fill the container (default). -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static AlignItemsReturns the enum constant of this class with the specified name.static AlignItems[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRETCH
Items stretch to fill the container (default). -
CENTER
Items are centered on the cross-axis. -
FLEX_START
Items are aligned at the start of the cross-axis. -
FLEX_END
Items are aligned at the end of the cross-axis. -
BASELINE
Items are aligned at their baselines. -
START
Items packed to the start (writing-mode aware). -
END
Items packed to the end (writing-mode aware). -
SELF_START
Items aligned to their start edge. -
SELF_END
Items aligned to their end edge. -
NORMAL
Normal alignment behavior (context-dependent). -
FIRST_BASELINE
Items are aligned at the first baseline. -
LAST_BASELINE
Items 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<AlignItems>- Returns:
- the CSS value
-