com.vaadin.flow.component.orderedlayout.
Enum FlexLayout.FlexWrap
- java.lang.Object
-
- java.lang.Enum<FlexLayout.FlexWrap>
-
- com.vaadin.flow.component.orderedlayout.FlexLayout.FlexWrap
-
All Implemented Interfaces:
Enclosing class:
public static enum FlexLayout.FlexWrap extends Enum<FlexLayout.FlexWrap>
Possible values for the
flex-wrap
CSS property, which determines how the elements inside the layout should behave when they don't fit inside the layout.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOWRAP
If the items use up too much space they will overflow.
WRAP
If items are not able to fit into a single row they are allowed to wrap into a follow up line.
WRAP_REVERSE
If items are not able to fit into a single row they are allowed to wrap into a follow up line.
-
Method Summary
All Methods Modifier and Type Method Description static FlexLayout.FlexWrap
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static FlexLayout.FlexWrap[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOWRAP
public static final FlexLayout.FlexWrap NOWRAP
If the items use up too much space they will overflow.
-
WRAP
public static final FlexLayout.FlexWrap WRAP
If items are not able to fit into a single row they are allowed to wrap into a follow up line.
-
WRAP_REVERSE
public static final FlexLayout.FlexWrap WRAP_REVERSE
If items are not able to fit into a single row they are allowed to wrap into a follow up line. Additionally the order of the items will be reversed.
-
-
Method Detail
-
values
public static FlexLayout.FlexWrap[] 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.FlexWrap c : FlexLayout.FlexWrap.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.FlexWrap 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
-
-