com.vaadin.flow.component.orderedlayout.
Enum FlexLayout.FlexDirection
- java.lang.Object
-
- java.lang.Enum<FlexLayout.FlexDirection>
-
- com.vaadin.flow.component.orderedlayout.FlexLayout.FlexDirection
-
All Implemented Interfaces:
Enclosing class:
public static enum FlexLayout.FlexDirection extends Enum<FlexLayout.FlexDirection>
Possible values for the
flex-direction
CSS property, which determines how the elements are placed inside the layout.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN
The items are displayed vertically, as a column.
COLUMN_REVERSE
The items are displayed vertically, as a column in reverse order.
ROW
The items are displayed horizontally, as a row.
ROW_REVERSE
The items are displayed horizontally, as a row in reverse order.
-
Method Summary
All Methods Modifier and Type Method Description static FlexLayout.FlexDirection
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static FlexLayout.FlexDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROW
public static final FlexLayout.FlexDirection ROW
The items are displayed horizontally, as a row.
-
ROW_REVERSE
public static final FlexLayout.FlexDirection ROW_REVERSE
The items are displayed horizontally, as a row in reverse order.
-
COLUMN
public static final FlexLayout.FlexDirection COLUMN
The items are displayed vertically, as a column.
-
COLUMN_REVERSE
public static final FlexLayout.FlexDirection COLUMN_REVERSE
The items are displayed vertically, as a column in reverse order.
-
-
Method Detail
-
values
public static FlexLayout.FlexDirection[] 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 (FlexLayout.FlexDirection c : FlexLayout.FlexDirection.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlexLayout.FlexDirection 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
-
-