Package io.jmix.ui.component
Enum Class ResponsiveGridLayout.JustifyContent
java.lang.Object
java.lang.Enum<ResponsiveGridLayout.JustifyContent>
io.jmix.ui.component.ResponsiveGridLayout.JustifyContent
- All Implemented Interfaces:
Serializable
,Comparable<ResponsiveGridLayout.JustifyContent>
,Constable
- Enclosing interface:
- ResponsiveGridLayout
public static enum ResponsiveGridLayout.JustifyContent
extends Enum<ResponsiveGridLayout.JustifyContent>
Represents the default behavior for how flex items are laid out along the main axis on the current row.
Corresponds to the justify-content
CSS attribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionItems are evenly distributed in the line with equal space around them.Items are evenly distributed in the line.Items are centered along the line.Items are packed toward the end of the flex-direction.Items are packed toward the start of the flex-direction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ResponsiveGridLayout.JustifyContent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Items are packed toward the start of the flex-direction.Corresponds to the
.justify-content-start
style. -
CENTER
Items are centered along the line.Corresponds to the
.justify-content-center
style. -
END
Items are packed toward the end of the flex-direction.Corresponds to the
.justify-content-end
style. -
AROUND
Items are evenly distributed in the line with equal space around them.Note that visually the spaces aren't equal, since all the items have equal space on both sides. The first item will have one unit of space against the container edge, but two units of space between the next item because that next item has its own spacing that applies.
Corresponds to the
.justify-content-around
style. -
BETWEEN
Items are evenly distributed in the line. First item is on the start line, last item on the end line.Corresponds to the
.justify-content-between
style.
-
-
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
-