Class FormLayout.ResponsiveStep
java.lang.Object
com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
- All Implemented Interfaces:
JsonSerializable,Serializable
- Enclosing class:
FormLayout
A class used in describing the responsive layouting behavior of a
FormLayout.- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for describing the position of label components in aFormLayout.FormItem. -
Constructor Summary
ConstructorsConstructorDescriptionResponsiveStep(String minWidth, int columns) Constructs a ResponsiveStep with the given minimum width and number of columns.ResponsiveStep(String minWidth, int columns, FormLayout.ResponsiveStep.LabelsPosition labelsPosition) Constructs a ResponsiveStep with the given minimum width, number of columns and label position. -
Method Summary
-
Constructor Details
-
ResponsiveStep
Constructs a ResponsiveStep with the given minimum width and number of columns.- Parameters:
minWidth- the minimum width as a CSS string value after which this responsive step is to be appliedcolumns- the number of columns the layout should have
-
ResponsiveStep
public ResponsiveStep(String minWidth, int columns, FormLayout.ResponsiveStep.LabelsPosition labelsPosition) Constructs a ResponsiveStep with the given minimum width, number of columns and label position.- Parameters:
minWidth- the minimum width as a CSS string value after which this responsive step is to be appliedcolumns- the number of columns the layout should havelabelsPosition- the position where label components are to be displayed inFormLayout.FormItems- See Also:
-
-
Method Details
-
toJson
public tools.jackson.databind.node.ObjectNode toJson()Description copied from interface:JsonSerializableConverts this object to its JSON format.- Specified by:
toJsonin interfaceJsonSerializable- Returns:
- the JSON representation of the object
-
readJson
Description copied from interface:JsonSerializableSets the JSON object data into the Java object.- Specified by:
readJsonin interfaceJsonSerializable- Parameters:
value- the JSON representation of the object- Returns:
- this instance, for method chaining
-