com.vaadin.flow.component.orderedlayout.
Enum FlexComponent.JustifyContentMode
- java.lang.Object
-
- java.lang.Enum<FlexComponent.JustifyContentMode>
-
- com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode
-
All Implemented Interfaces:
Enclosing interface:
public static enum FlexComponent.JustifyContentMode extends Enum<FlexComponent.JustifyContentMode>
Enum with the possible values for the way the extra space inside the layout is distributed among the components. It correlates to the
justify-content
CSS property.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AROUND
Items are positioned with space before, between, and after the lines.
BETWEEN
Items are positioned with space between the lines.
CENTER
Items are positioned at the center of the container.
END
Items are positioned at the end of the container.
EVENLY
Items have equal space around them.
START
Items are positioned at the beginning of the container.
-
Method Summary
All Methods Modifier and Type Method Description static FlexComponent.JustifyContentMode
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static FlexComponent.JustifyContentMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START
public static final FlexComponent.JustifyContentMode START
Items are positioned at the beginning of the container.
-
END
public static final FlexComponent.JustifyContentMode END
Items are positioned at the end of the container.
-
CENTER
public static final FlexComponent.JustifyContentMode CENTER
Items are positioned at the center of the container.
-
BETWEEN
public static final FlexComponent.JustifyContentMode BETWEEN
Items are positioned with space between the lines.
-
AROUND
public static final FlexComponent.JustifyContentMode AROUND
Items are positioned with space before, between, and after the lines.
-
EVENLY
public static final FlexComponent.JustifyContentMode EVENLY
Items have equal space around them.
-
-
Method Detail
-
values
public static FlexComponent.JustifyContentMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FlexComponent.JustifyContentMode c : FlexComponent.JustifyContentMode.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlexComponent.JustifyContentMode valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-