com.vaadin.flow.component.orderedlayout.
Enum FlexComponent.Alignment
- java.lang.Object
-
- java.lang.Enum<FlexComponent.Alignment>
-
- com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment
-
All Implemented Interfaces:
Enclosing interface:
public static enum FlexComponent.Alignment extends Enum<FlexComponent.Alignment>
Enum with the possible values for the component alignment inside the layout. It correlates to the
align-items
CSS property.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
The element inherits its parent container's align-items property, or "stretch" if it has no parent container.
BASELINE
Items are positioned at the baseline of the container.
CENTER
Items are positioned at the center of the container.
END
Items are positioned at the end of the container.
START
Items are positioned at the beginning of the container.
STRETCH
Items are stretched to fit the container.
-
Method Summary
All Methods Modifier and Type Method Description static FlexComponent.Alignment
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static FlexComponent.Alignment[]
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.Alignment START
Items are positioned at the beginning of the container.
-
END
public static final FlexComponent.Alignment END
Items are positioned at the end of the container.
-
CENTER
public static final FlexComponent.Alignment CENTER
Items are positioned at the center of the container.
-
STRETCH
public static final FlexComponent.Alignment STRETCH
Items are stretched to fit the container.
-
BASELINE
public static final FlexComponent.Alignment BASELINE
Items are positioned at the baseline of the container.
-
AUTO
public static final FlexComponent.Alignment AUTO
The element inherits its parent container's align-items property, or "stretch" if it has no parent container.
-
-
Method Detail
-
values
public static FlexComponent.Alignment[] 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.Alignment c : FlexComponent.Alignment.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.Alignment 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
-
-