com.vaadin.flow.component.formlayout.
Class FormLayout.ResponsiveStep
- java.lang.Object
-
- com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
-
All Implemented Interfaces:
Enclosing class:
public static class FormLayout.ResponsiveStep extends Object implements JsonSerializable
A class used in describing the responsive layouting behavior of a
FormLayout
.Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
FormLayout.ResponsiveStep.LabelsPosition
Enum for describing the position of label components in a
FormLayout.FormItem
.
-
Constructor Summary
Constructors Constructor and Description ResponsiveStep(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
All Methods Modifier and Type Method and Description FormLayout.ResponsiveStep
readJson(elemental.json.JsonObject value)
Sets the JSON object data into the Java object.
elemental.json.JsonObject
toJson()
Converts this object to its JSON format.
-
-
-
Constructor Detail
-
ResponsiveStep
public ResponsiveStep(String minWidth, int columns)
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.FormItem
sSee Also:
FormLayout.ResponsiveStep.LabelsPosition
,FormLayout.FormItem
-
-
Method Detail
-
toJson
public elemental.json.JsonObject toJson()
Description copied from interface:
JsonSerializable
Converts this object to its JSON format.
Specified by:
toJson
in interfaceJsonSerializable
Returns:
the JSON representation of the object
-
readJson
public FormLayout.ResponsiveStep readJson(elemental.json.JsonObject value)
Description copied from interface:
JsonSerializable
Sets the JSON object data into the Java object.
Specified by:
readJson
in interfaceJsonSerializable
Parameters:
value
- the JSON representation of the objectReturns:
this instance, for method chaining
-
-