Package io.mateu.dtos
Record Class FormLayoutDto
java.lang.Object
java.lang.Record
io.mateu.dtos.FormLayoutDto
- All Implemented Interfaces:
ComponentMetadataDto
public record FormLayoutDto(boolean autoResponsive, boolean labelsAside, int maxColumns, String columnWidth, boolean expandColumns, boolean expandFields, Object responsiveSteps, String itemLabelWidth, String columnSpacing, String itemRowSpacing, String itemLabelSpacing)
extends Record
implements ComponentMetadataDto
Metadata for a horizontal layout. Child componentIds are in the HorizontalLayout component itself
-
Constructor Summary
ConstructorsConstructorDescriptionFormLayoutDto(boolean autoResponsive, boolean labelsAside, int maxColumns, String columnWidth, boolean expandColumns, boolean expandFields, Object responsiveSteps, String itemLabelWidth, String columnSpacing, String itemRowSpacing, String itemLabelSpacing) Creates an instance of aFormLayoutDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoResponsiverecord component.Returns the value of thecolumnSpacingrecord component.Returns the value of thecolumnWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexpandColumnsrecord component.booleanReturns the value of theexpandFieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theitemLabelSpacingrecord component.Returns the value of theitemLabelWidthrecord component.Returns the value of theitemRowSpacingrecord component.booleanReturns the value of thelabelsAsiderecord component.intReturns the value of themaxColumnsrecord component.Returns the value of theresponsiveStepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormLayoutDto
public FormLayoutDto(boolean autoResponsive, boolean labelsAside, int maxColumns, String columnWidth, boolean expandColumns, boolean expandFields, Object responsiveSteps, String itemLabelWidth, String columnSpacing, String itemRowSpacing, String itemLabelSpacing) Creates an instance of aFormLayoutDtorecord class.- Parameters:
autoResponsive- the value for theautoResponsiverecord componentlabelsAside- the value for thelabelsAsiderecord componentmaxColumns- the value for themaxColumnsrecord componentcolumnWidth- the value for thecolumnWidthrecord componentexpandColumns- the value for theexpandColumnsrecord componentexpandFields- the value for theexpandFieldsrecord componentresponsiveSteps- the value for theresponsiveStepsrecord componentitemLabelWidth- the value for theitemLabelWidthrecord componentcolumnSpacing- the value for thecolumnSpacingrecord componentitemRowSpacing- the value for theitemRowSpacingrecord componentitemLabelSpacing- the value for theitemLabelSpacingrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
autoResponsive
public boolean autoResponsive()Returns the value of theautoResponsiverecord component.- Returns:
- the value of the
autoResponsiverecord component
-
labelsAside
public boolean labelsAside()Returns the value of thelabelsAsiderecord component.- Returns:
- the value of the
labelsAsiderecord component
-
maxColumns
public int maxColumns()Returns the value of themaxColumnsrecord component.- Returns:
- the value of the
maxColumnsrecord component
-
columnWidth
Returns the value of thecolumnWidthrecord component.- Returns:
- the value of the
columnWidthrecord component
-
expandColumns
public boolean expandColumns()Returns the value of theexpandColumnsrecord component.- Returns:
- the value of the
expandColumnsrecord component
-
expandFields
public boolean expandFields()Returns the value of theexpandFieldsrecord component.- Returns:
- the value of the
expandFieldsrecord component
-
responsiveSteps
Returns the value of theresponsiveStepsrecord component.- Returns:
- the value of the
responsiveStepsrecord component
-
itemLabelWidth
Returns the value of theitemLabelWidthrecord component.- Returns:
- the value of the
itemLabelWidthrecord component
-
columnSpacing
Returns the value of thecolumnSpacingrecord component.- Returns:
- the value of the
columnSpacingrecord component
-
itemRowSpacing
Returns the value of theitemRowSpacingrecord component.- Returns:
- the value of the
itemRowSpacingrecord component
-
itemLabelSpacing
Returns the value of theitemLabelSpacingrecord component.- Returns:
- the value of the
itemLabelSpacingrecord component
-