Package io.jmix.flowui.component
Class SupportsResponsiveSteps.ResponsiveStep
java.lang.Object
io.jmix.flowui.component.SupportsResponsiveSteps.ResponsiveStep
- Enclosing interface:
- SupportsResponsiveSteps
A class used in describing the responsive layouting behavior of a component.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the position of labels relative to their associated components in a responsive layout. -
Constructor Summary
ConstructorsConstructorDescriptionResponsiveStep(String minWidth, int columns) Constructs a ResponsiveStep with the given minimum width and number of columns.ResponsiveStep(String minWidth, int columns, SupportsResponsiveSteps.ResponsiveStep.LabelsPosition labelsPosition) Constructs a ResponsiveStep with the given minimum width, number of columns and label position. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns the layout should haveReturns the position where label components are displayed in the layout.Returns the minimum width as a CSS string value after which the current responsive step is to be applied.
-
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, @Nullable SupportsResponsiveSteps.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- See Also:
-
-
Method Details
-
getMinWidth
Returns the minimum width as a CSS string value after which the current responsive step is to be applied.- Returns:
- the minimum width
-
getColumns
public int getColumns()Returns the number of columns the layout should have- Returns:
- the number of columns the layout should have
-
getLabelsPosition
Returns the position where label components are displayed in the layout.- Returns:
- the
SupportsResponsiveSteps.ResponsiveStep.LabelsPositionvalue indicating the position of the labels, ornullif the label position is not specified
-