public static enum ResponsiveGridLayout.JustifyContent extends java.lang.Enum<ResponsiveGridLayout.JustifyContent>
Corresponds to the justify-content
CSS attribute.
Enum Constant and Description |
---|
AROUND
Items are evenly distributed in the line with equal space around them.
|
BETWEEN
Items are evenly distributed in the line.
|
CENTER
Items are centered along the line.
|
END
Items are packed toward the end of the flex-direction.
|
START
Items are packed toward the start of the flex-direction.
|
Modifier and Type | Method and Description |
---|---|
static ResponsiveGridLayout.JustifyContent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponsiveGridLayout.JustifyContent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponsiveGridLayout.JustifyContent START
Corresponds to the .justify-content-start
style.
public static final ResponsiveGridLayout.JustifyContent CENTER
Corresponds to the .justify-content-center
style.
public static final ResponsiveGridLayout.JustifyContent END
Corresponds to the .justify-content-end
style.
public static final ResponsiveGridLayout.JustifyContent AROUND
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.
public static final ResponsiveGridLayout.JustifyContent BETWEEN
Corresponds to the .justify-content-between
style.
public static ResponsiveGridLayout.JustifyContent[] values()
for (ResponsiveGridLayout.JustifyContent c : ResponsiveGridLayout.JustifyContent.values()) System.out.println(c);
public static ResponsiveGridLayout.JustifyContent valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null