Package io.mateu.dtos
Record Class CrudlDto
java.lang.Object
java.lang.Record
io.mateu.dtos.CrudlDto
- Record Components:
title- The titlesubtitle- The subtitlecanEdit- If records can be edited. This make the Edit button visiblesearchable- If list can be searchedcolumns- The columnschild- This crud is a child of another view. This makes the title smaller
- All Implemented Interfaces:
ComponentMetadataDto
public record CrudlDto(CrudlTypeDto crudlType, String title, String subtitle, boolean canEdit, boolean selectionListened, boolean hasActionOnSelectedRow, boolean multipleRowSelectionEnabled, boolean searchable, boolean showCards, List<FormFieldDto> filters, List<ComponentDto> columns, List<ButtonDto> toolbar, boolean child, String emptyStateMessage, boolean searchOnEnter, boolean autoFocusOnSearchText, boolean allRowsVisible, int size, boolean lazyLoading, boolean lazyColumnRendering, boolean infiniteScrolling, boolean useButtonForDetail, boolean columnReorderingAllowed, int pageSize, boolean rowsSelectionEnabled, List<ComponentDto> header, List<ComponentDto> footer, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding, String gridStyle, String detailPath, String onRowSelectionChangedActionId, String contentHeight)
extends Record
implements ComponentMetadataDto
A crud
-
Constructor Summary
ConstructorsConstructorDescriptionCrudlDto(CrudlTypeDto crudlType, String title, String subtitle, boolean canEdit, boolean selectionListened, boolean hasActionOnSelectedRow, boolean multipleRowSelectionEnabled, boolean searchable, boolean showCards, List<FormFieldDto> filters, List<ComponentDto> columns, List<ButtonDto> toolbar, boolean child, String emptyStateMessage, boolean searchOnEnter, boolean autoFocusOnSearchText, boolean allRowsVisible, int size, boolean lazyLoading, boolean lazyColumnRendering, boolean infiniteScrolling, boolean useButtonForDetail, boolean columnReorderingAllowed, int pageSize, boolean rowsSelectionEnabled, List<ComponentDto> header, List<ComponentDto> footer, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding, String gridStyle, String detailPath, String onRowSelectionChangedActionId, String contentHeight) Creates an instance of aCrudlDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallRowsVisiblerecord component.booleanReturns the value of theautoFocusOnSearchTextrecord component.booleancanEdit()Returns the value of thecanEditrecord component.booleanchild()Returns the value of thechildrecord component.booleanReturns the value of thecolumnBordersrecord component.booleanReturns the value of thecolumnReorderingAllowedrecord component.columns()Returns the value of thecolumnsrecord component.booleancompact()Returns the value of thecompactrecord component.Returns the value of thecontentHeightrecord component.Returns the value of thecrudlTyperecord component.Returns the value of thedetailPathrecord component.Returns the value of theemptyStateMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.footer()Returns the value of thefooterrecord component.Returns the value of thegridStylerecord component.booleanReturns the value of thehasActionOnSelectedRowrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.booleanReturns the value of theinfiniteScrollingrecord component.booleanReturns the value of thelazyColumnRenderingrecord component.booleanReturns the value of thelazyLoadingrecord component.booleanReturns the value of themultipleRowSelectionEnabledrecord component.booleannoBorder()Returns the value of thenoBorderrecord component.booleanReturns the value of thenoRowBorderrecord component.Returns the value of theonRowSelectionChangedActionIdrecord component.intpageSize()Returns the value of thepageSizerecord component.booleanReturns the value of therowsSelectionEnabledrecord component.booleanReturns the value of therowStripesrecord component.booleanReturns the value of thesearchablerecord component.booleanReturns the value of thesearchOnEnterrecord component.booleanReturns the value of theselectionListenedrecord component.booleanReturns the value of theshowCardsrecord component.intsize()Returns the value of thesizerecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.toolbar()Returns the value of thetoolbarrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseButtonForDetailrecord component.Returns the value of thevaadinGridCellBackgroundrecord component.Returns the value of thevaadinGridCellPaddingrecord component.booleanReturns the value of thewrapCellContentrecord component.
-
Constructor Details
-
CrudlDto
public CrudlDto(CrudlTypeDto crudlType, String title, String subtitle, boolean canEdit, boolean selectionListened, boolean hasActionOnSelectedRow, boolean multipleRowSelectionEnabled, boolean searchable, boolean showCards, List<FormFieldDto> filters, List<ComponentDto> columns, List<ButtonDto> toolbar, boolean child, String emptyStateMessage, boolean searchOnEnter, boolean autoFocusOnSearchText, boolean allRowsVisible, int size, boolean lazyLoading, boolean lazyColumnRendering, boolean infiniteScrolling, boolean useButtonForDetail, boolean columnReorderingAllowed, int pageSize, boolean rowsSelectionEnabled, List<ComponentDto> header, List<ComponentDto> footer, boolean wrapCellContent, boolean compact, boolean noBorder, boolean noRowBorder, boolean columnBorders, boolean rowStripes, String vaadinGridCellBackground, String vaadinGridCellPadding, String gridStyle, String detailPath, String onRowSelectionChangedActionId, String contentHeight) Creates an instance of aCrudlDtorecord class.- Parameters:
crudlType- the value for thecrudlTyperecord componenttitle- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentcanEdit- the value for thecanEditrecord componentselectionListened- the value for theselectionListenedrecord componenthasActionOnSelectedRow- the value for thehasActionOnSelectedRowrecord componentmultipleRowSelectionEnabled- the value for themultipleRowSelectionEnabledrecord componentsearchable- the value for thesearchablerecord componentshowCards- the value for theshowCardsrecord componentfilters- the value for thefiltersrecord componentcolumns- the value for thecolumnsrecord componenttoolbar- the value for thetoolbarrecord componentchild- the value for thechildrecord componentemptyStateMessage- the value for theemptyStateMessagerecord componentsearchOnEnter- the value for thesearchOnEnterrecord componentautoFocusOnSearchText- the value for theautoFocusOnSearchTextrecord componentallRowsVisible- the value for theallRowsVisiblerecord componentsize- the value for thesizerecord componentlazyLoading- the value for thelazyLoadingrecord componentlazyColumnRendering- the value for thelazyColumnRenderingrecord componentinfiniteScrolling- the value for theinfiniteScrollingrecord componentuseButtonForDetail- the value for theuseButtonForDetailrecord componentcolumnReorderingAllowed- the value for thecolumnReorderingAllowedrecord componentpageSize- the value for thepageSizerecord componentrowsSelectionEnabled- the value for therowsSelectionEnabledrecord componentheader- the value for theheaderrecord componentfooter- the value for thefooterrecord 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 componentgridStyle- the value for thegridStylerecord componentdetailPath- the value for thedetailPathrecord componentonRowSelectionChangedActionId- the value for theonRowSelectionChangedActionIdrecord componentcontentHeight- the value for thecontentHeightrecord component
-
-
Method Details
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
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 '=='. -
crudlType
Returns the value of thecrudlTyperecord component.- Returns:
- the value of the
crudlTyperecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
canEdit
public boolean canEdit()Returns the value of thecanEditrecord component.- Returns:
- the value of the
canEditrecord component
-
selectionListened
public boolean selectionListened()Returns the value of theselectionListenedrecord component.- Returns:
- the value of the
selectionListenedrecord component
-
hasActionOnSelectedRow
public boolean hasActionOnSelectedRow()Returns the value of thehasActionOnSelectedRowrecord component.- Returns:
- the value of the
hasActionOnSelectedRowrecord component
-
multipleRowSelectionEnabled
public boolean multipleRowSelectionEnabled()Returns the value of themultipleRowSelectionEnabledrecord component.- Returns:
- the value of the
multipleRowSelectionEnabledrecord component
-
searchable
public boolean searchable()Returns the value of thesearchablerecord component.- Returns:
- the value of the
searchablerecord component
-
showCards
public boolean showCards()Returns the value of theshowCardsrecord component.- Returns:
- the value of the
showCardsrecord component
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-
toolbar
Returns the value of thetoolbarrecord component.- Returns:
- the value of the
toolbarrecord component
-
child
public boolean child()Returns the value of thechildrecord component.- Returns:
- the value of the
childrecord component
-
emptyStateMessage
Returns the value of theemptyStateMessagerecord component.- Returns:
- the value of the
emptyStateMessagerecord component
-
searchOnEnter
public boolean searchOnEnter()Returns the value of thesearchOnEnterrecord component.- Returns:
- the value of the
searchOnEnterrecord component
-
autoFocusOnSearchText
public boolean autoFocusOnSearchText()Returns the value of theautoFocusOnSearchTextrecord component.- Returns:
- the value of the
autoFocusOnSearchTextrecord component
-
allRowsVisible
public boolean allRowsVisible()Returns the value of theallRowsVisiblerecord component.- Returns:
- the value of the
allRowsVisiblerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
lazyLoading
public boolean lazyLoading()Returns the value of thelazyLoadingrecord component.- Returns:
- the value of the
lazyLoadingrecord component
-
lazyColumnRendering
public boolean lazyColumnRendering()Returns the value of thelazyColumnRenderingrecord component.- Returns:
- the value of the
lazyColumnRenderingrecord component
-
infiniteScrolling
public boolean infiniteScrolling()Returns the value of theinfiniteScrollingrecord component.- Returns:
- the value of the
infiniteScrollingrecord component
-
useButtonForDetail
public boolean useButtonForDetail()Returns the value of theuseButtonForDetailrecord component.- Returns:
- the value of the
useButtonForDetailrecord component
-
columnReorderingAllowed
public boolean columnReorderingAllowed()Returns the value of thecolumnReorderingAllowedrecord component.- Returns:
- the value of the
columnReorderingAllowedrecord component
-
pageSize
public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
rowsSelectionEnabled
public boolean rowsSelectionEnabled()Returns the value of therowsSelectionEnabledrecord component.- Returns:
- the value of the
rowsSelectionEnabledrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord 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
-
gridStyle
Returns the value of thegridStylerecord component.- Returns:
- the value of the
gridStylerecord component
-
detailPath
Returns the value of thedetailPathrecord component.- Returns:
- the value of the
detailPathrecord component
-
onRowSelectionChangedActionId
Returns the value of theonRowSelectionChangedActionIdrecord component.- Returns:
- the value of the
onRowSelectionChangedActionIdrecord component
-
contentHeight
Returns the value of thecontentHeightrecord component.- Returns:
- the value of the
contentHeightrecord component
-