Package io.mateu.dtos
Record Class HorizontalLayoutDto
java.lang.Object
java.lang.Record
io.mateu.dtos.HorizontalLayoutDto
- All Implemented Interfaces:
ComponentMetadataDto
public record HorizontalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, VerticalAlignmentDto verticalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style)
extends Record
implements ComponentMetadataDto
Metadata for a horizontal layout. Child componentIds are in the HorizontalLayout component itself
-
Constructor Summary
ConstructorsConstructorDescriptionHorizontalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, VerticalAlignmentDto verticalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style) Creates an instance of aHorizontalLayoutDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theflexGrowsrecord component.booleanReturns the value of thefullWidthrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejustificationrecord component.booleanmargin()Returns the value of themarginrecord component.booleanpadding()Returns the value of thepaddingrecord component.booleanspacing()Returns the value of thespacingrecord component.Returns the value of thespacingVariantrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalAlignmentrecord component.booleanwrap()Returns the value of thewraprecord component.
-
Constructor Details
-
HorizontalLayoutDto
public HorizontalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, VerticalAlignmentDto verticalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style) Creates an instance of aHorizontalLayoutDtorecord class.- Parameters:
spacing- the value for thespacingrecord componentpadding- the value for thepaddingrecord componentmargin- the value for themarginrecord componentspacingVariant- the value for thespacingVariantrecord componentverticalAlignment- the value for theverticalAlignmentrecord componentjustification- the value for thejustificationrecord componentwrap- the value for thewraprecord componentflexGrows- the value for theflexGrowsrecord componentfullWidth- the value for thefullWidthrecord componentstyle- the value for thestylerecord 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 '=='. -
spacing
public boolean spacing()Returns the value of thespacingrecord component.- Returns:
- the value of the
spacingrecord component
-
padding
public boolean padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
margin
public boolean margin()Returns the value of themarginrecord component.- Returns:
- the value of the
marginrecord component
-
spacingVariant
Returns the value of thespacingVariantrecord component.- Returns:
- the value of the
spacingVariantrecord component
-
verticalAlignment
Returns the value of theverticalAlignmentrecord component.- Returns:
- the value of the
verticalAlignmentrecord component
-
justification
Returns the value of thejustificationrecord component.- Returns:
- the value of the
justificationrecord component
-
wrap
public boolean wrap()Returns the value of thewraprecord component.- Returns:
- the value of the
wraprecord component
-
flexGrows
Returns the value of theflexGrowsrecord component.- Returns:
- the value of the
flexGrowsrecord component
-
fullWidth
public boolean fullWidth()Returns the value of thefullWidthrecord component.- Returns:
- the value of the
fullWidthrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-