com.vaadin.flow.component.formlayout.
Enum FormLayout.ResponsiveStep.LabelsPosition
- java.lang.Object
-
- java.lang.Enum<FormLayout.ResponsiveStep.LabelsPosition>
-
- com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition
-
All Implemented Interfaces:
Serializable
,Comparable<FormLayout.ResponsiveStep.LabelsPosition>
Enclosing class:
public static enum FormLayout.ResponsiveStep.LabelsPosition extends Enum<FormLayout.ResponsiveStep.LabelsPosition>
Enum for describing the position of label components in a
FormLayout.FormItem
.
-
-
Method Summary
All Methods Modifier and Type Method Description String
toString()
static FormLayout.ResponsiveStep.LabelsPosition
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static FormLayout.ResponsiveStep.LabelsPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASIDE
public static final FormLayout.ResponsiveStep.LabelsPosition ASIDE
Labels are displayed on the left hand side of the wrapped component.
-
TOP
public static final FormLayout.ResponsiveStep.LabelsPosition TOP
Labels are displayed atop the wrapped component.
-
-
Method Detail
-
values
public static FormLayout.ResponsiveStep.LabelsPosition[] 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 (FormLayout.ResponsiveStep.LabelsPosition c : FormLayout.ResponsiveStep.LabelsPosition.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormLayout.ResponsiveStep.LabelsPosition 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
-
toString
public String toString()
Overrides:
toString
in classEnum<FormLayout.ResponsiveStep.LabelsPosition>
-
-