Package io.mateu.dtos
Record Class VerticalLayoutDto
java.lang.Object
java.lang.Record
io.mateu.dtos.VerticalLayoutDto
- All Implemented Interfaces:
ComponentMetadataDto
public record VerticalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, HorizontalAlignmentDto horizontalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style)
extends Record
implements ComponentMetadataDto
Metadata for a vertical layout. Child componentIds are in the VerticalLayout component itself
-
Constructor Summary
ConstructorsConstructorDescriptionVerticalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, HorizontalAlignmentDto horizontalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style) Creates an instance of aVerticalLayoutDtorecord 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 thehorizontalAlignmentrecord component.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.booleanwrap()Returns the value of thewraprecord component.
-
Constructor Details
-
VerticalLayoutDto
public VerticalLayoutDto(boolean spacing, boolean padding, boolean margin, SpacingVariantDto spacingVariant, HorizontalAlignmentDto horizontalAlignment, JustificationDto justification, boolean wrap, List<Integer> flexGrows, boolean fullWidth, String style) Creates an instance of aVerticalLayoutDtorecord class.- Parameters:
spacing- the value for thespacingrecord componentpadding- the value for thepaddingrecord componentmargin- the value for themarginrecord componentspacingVariant- the value for thespacingVariantrecord componenthorizontalAlignment- the value for thehorizontalAlignmentrecord 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
-
horizontalAlignment
Returns the value of thehorizontalAlignmentrecord component.- Returns:
- the value of the
horizontalAlignmentrecord 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
-