Enum Class FlexComponent.Alignment
java.lang.Object
java.lang.Enum<FlexComponent.Alignment>
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment
- All Implemented Interfaces:
Serializable
,Comparable<FlexComponent.Alignment>
,Constable
- Enclosing interface:
- FlexComponent
Enum with the possible values for the component alignment inside the
layout. It correlates to the
align-items
CSS property.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe element inherits its parent container's align-items property, or "stretch" if it has no parent container.Items are positioned at the baseline of the container.Items are positioned at the center of the container.Items are positioned at the end of the container.Items are positioned at the beginning of the container.Items are stretched to fit the container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlexComponent.Alignment
Returns the enum constant of this class with the specified name.static FlexComponent.Alignment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Items are positioned at the beginning of the container. -
END
Items are positioned at the end of the container. -
CENTER
Items are positioned at the center of the container. -
STRETCH
Items are stretched to fit the container. -
BASELINE
Items are positioned at the baseline of the container. -
AUTO
The element inherits its parent container's align-items property, or "stretch" if it has no parent container.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-