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 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 a VerticalLayoutDto record class.
      Parameters:
      spacing - the value for the spacing record component
      padding - the value for the padding record component
      margin - the value for the margin record component
      spacingVariant - the value for the spacingVariant record component
      horizontalAlignment - the value for the horizontalAlignment record component
      justification - the value for the justification record component
      wrap - the value for the wrap record component
      flexGrows - the value for the flexGrows record component
      fullWidth - the value for the fullWidth record component
      style - the value for the style record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • spacing

      public boolean spacing()
      Returns the value of the spacing record component.
      Returns:
      the value of the spacing record component
    • padding

      public boolean padding()
      Returns the value of the padding record component.
      Returns:
      the value of the padding record component
    • margin

      public boolean margin()
      Returns the value of the margin record component.
      Returns:
      the value of the margin record component
    • spacingVariant

      public SpacingVariantDto spacingVariant()
      Returns the value of the spacingVariant record component.
      Returns:
      the value of the spacingVariant record component
    • horizontalAlignment

      public HorizontalAlignmentDto horizontalAlignment()
      Returns the value of the horizontalAlignment record component.
      Returns:
      the value of the horizontalAlignment record component
    • justification

      public JustificationDto justification()
      Returns the value of the justification record component.
      Returns:
      the value of the justification record component
    • wrap

      public boolean wrap()
      Returns the value of the wrap record component.
      Returns:
      the value of the wrap record component
    • flexGrows

      public List<Integer> flexGrows()
      Returns the value of the flexGrows record component.
      Returns:
      the value of the flexGrows record component
    • fullWidth

      public boolean fullWidth()
      Returns the value of the fullWidth record component.
      Returns:
      the value of the fullWidth record component
    • style

      public String style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component