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
ConstructorsConstructorDescriptionGridDto(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 aGridDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecolumnBordersrecord component.booleancompact()Returns the value of thecompactrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleannoBorder()Returns the value of thenoBorderrecord component.booleanReturns the value of thenoRowBorderrecord component.page()Returns the value of thepagerecord component.booleanReturns the value of therowStripesrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.booleantree()Returns the value of thetreerecord component.Returns the value of thevaadinGridCellBackgroundrecord component.Returns the value of thevaadinGridCellPaddingrecord component.booleanReturns the value of thewrapCellContentrecord component.
-
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 aGridDtorecord class.- Parameters:
content- the value for thecontentrecord componentpage- the value for thepagerecord componenttree- the value for thetreerecord componentsize- the value for thesizerecord componentwrapCellContent- the value for thewrapCellContentrecord componentcompact- the value for thecompactrecord componentnoBorder- the value for thenoBorderrecord componentnoRowBorder- the value for thenoRowBorderrecord componentcolumnBorders- the value for thecolumnBordersrecord componentrowStripes- the value for therowStripesrecord componentvaadinGridCellBackground- the value for thevaadinGridCellBackgroundrecord componentvaadinGridCellPadding- the value for thevaadinGridCellPaddingrecord 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 '=='. -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
tree
public boolean tree()Returns the value of thetreerecord component.- Returns:
- the value of the
treerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
wrapCellContent
public boolean wrapCellContent()Returns the value of thewrapCellContentrecord component.- Returns:
- the value of the
wrapCellContentrecord component
-
compact
public boolean compact()Returns the value of thecompactrecord component.- Returns:
- the value of the
compactrecord component
-
noBorder
public boolean noBorder()Returns the value of thenoBorderrecord component.- Returns:
- the value of the
noBorderrecord component
-
noRowBorder
public boolean noRowBorder()Returns the value of thenoRowBorderrecord component.- Returns:
- the value of the
noRowBorderrecord component
-
columnBorders
public boolean columnBorders()Returns the value of thecolumnBordersrecord component.- Returns:
- the value of the
columnBordersrecord component
-
rowStripes
public boolean rowStripes()Returns the value of therowStripesrecord component.- Returns:
- the value of the
rowStripesrecord component
-
vaadinGridCellBackground
Returns the value of thevaadinGridCellBackgroundrecord component.- Returns:
- the value of the
vaadinGridCellBackgroundrecord component
-
vaadinGridCellPadding
Returns the value of thevaadinGridCellPaddingrecord component.- Returns:
- the value of the
vaadinGridCellPaddingrecord component
-