Package com.spinyowl.legui.style.flex
Enum Class FlexStyle.JustifyContent
- All Implemented Interfaces:
Serializable,Comparable<FlexStyle.JustifyContent>,Constable
- Enclosing class:
- FlexStyle
Specifies the alignment between the items inside a flexible container when the items do not use
all available space.
-
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 positioned at the center of the container.Items are positioned at the end of the container.Default value.Inherits this property from its parent element..Sets this property to its default value.Items are positioned with space before, between, and after the lines.Items are positioned with space between the lines.Distribute items evenly. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlexStyle.JustifyContentReturns the enum constant of this class with the specified name.static FlexStyle.JustifyContent[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLEX_START
Default value. Items are positioned at the beginning of the container. -
FLEX_END
Items are positioned at the end of the container. -
CENTER
Items are positioned at the center of the container. -
SPACE_BETWEEN
Items are positioned with space between the lines. -
SPACE_AROUND
Items are positioned with space before, between, and after the lines. -
SPACE_EVENLY
Distribute items evenly. Items have equal space around them. -
INITIAL
Sets this property to its default value. -
INHERIT
Inherits this property from its 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
-