Package io.mateu.dtos

Record Class GridDto

java.lang.Object
java.lang.Record
io.mateu.dtos.GridDto
All Implemented Interfaces:
ComponentMetadataDto

public record GridDto(List<ComponentDto> content, DataPageDto page, boolean tree, int size, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding) extends Record implements ComponentMetadataDto
Metadata for a html element
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridDto(List<ComponentDto> content, DataPageDto page, boolean tree, int size, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding)
    Creates an instance of a GridDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the columnBorders record component.
    boolean
    Returns the value of the compact record component.
    Returns the value of the content record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the noBorder record component.
    boolean
    Returns the value of the noRowBorder record component.
    Returns the value of the page record component.
    boolean
    Returns the value of the rowStripes record component.
    int
    Returns the value of the size record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the tree record component.
    Returns the value of the vaadinGridCellBackground record component.
    Returns the value of the vaadinGridCellPadding record component.
    boolean
    Returns the value of the wrapCellContent record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GridDto

      public GridDto(List<ComponentDto> content, DataPageDto page, boolean tree, int size, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding)
      Creates an instance of a GridDto record class.
      Parameters:
      content - the value for the content record component
      page - the value for the page record component
      tree - the value for the tree record component
      size - the value for the size record component
      wrapCellContent - the value for the wrapCellContent record component
      compact - the value for the compact record component
      noBorder - the value for the noBorder record component
      noRowBorder - the value for the noRowBorder record component
      columnBorders - the value for the columnBorders record component
      rowStripes - the value for the rowStripes record component
      vaadinGridCellBackground - the value for the vaadinGridCellBackground record component
      vaadinGridCellPadding - the value for the vaadinGridCellPadding 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.
    • content

      public List<ComponentDto> content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • page

      public DataPageDto page()
      Returns the value of the page record component.
      Returns:
      the value of the page record component
    • tree

      public boolean tree()
      Returns the value of the tree record component.
      Returns:
      the value of the tree record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • wrapCellContent

      public boolean wrapCellContent()
      Returns the value of the wrapCellContent record component.
      Returns:
      the value of the wrapCellContent record component
    • compact

      public boolean compact()
      Returns the value of the compact record component.
      Returns:
      the value of the compact record component
    • noBorder

      public boolean noBorder()
      Returns the value of the noBorder record component.
      Returns:
      the value of the noBorder record component
    • noRowBorder

      public boolean noRowBorder()
      Returns the value of the noRowBorder record component.
      Returns:
      the value of the noRowBorder record component
    • columnBorders

      public boolean columnBorders()
      Returns the value of the columnBorders record component.
      Returns:
      the value of the columnBorders record component
    • rowStripes

      public boolean rowStripes()
      Returns the value of the rowStripes record component.
      Returns:
      the value of the rowStripes record component
    • vaadinGridCellBackground

      public String vaadinGridCellBackground()
      Returns the value of the vaadinGridCellBackground record component.
      Returns:
      the value of the vaadinGridCellBackground record component
    • vaadinGridCellPadding

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