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