Package io.mateu.dtos

Record Class CrudlDto

java.lang.Object
java.lang.Record
io.mateu.dtos.CrudlDto
Record Components:
title - The title
subtitle - The subtitle
canEdit - If records can be edited. This make the Edit button visible
searchable - If list can be searched
columns - The columns
child - 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

    Constructors
    Constructor
    Description
    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 a CrudlDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the allRowsVisible record component.
    boolean
    Returns the value of the autoFocusOnSearchText record component.
    boolean
    Returns the value of the canEdit record component.
    boolean
    Returns the value of the child record component.
    boolean
    Returns the value of the columnBorders record component.
    boolean
    Returns the value of the columnReorderingAllowed record component.
    Returns the value of the columns record component.
    boolean
    Returns the value of the compact record component.
    Returns the value of the contentHeight record component.
    Returns the value of the crudlType record component.
    Returns the value of the detailPath record component.
    Returns the value of the emptyStateMessage record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the filters record component.
    Returns the value of the footer record component.
    Returns the value of the gridStyle record component.
    boolean
    Returns the value of the hasActionOnSelectedRow record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the header record component.
    boolean
    Returns the value of the infiniteScrolling record component.
    boolean
    Returns the value of the lazyColumnRendering record component.
    boolean
    Returns the value of the lazyLoading record component.
    boolean
    Returns the value of the multipleRowSelectionEnabled record component.
    boolean
    Returns the value of the noBorder record component.
    boolean
    Returns the value of the noRowBorder record component.
    Returns the value of the onRowSelectionChangedActionId record component.
    int
    Returns the value of the pageSize record component.
    boolean
    Returns the value of the rowsSelectionEnabled record component.
    boolean
    Returns the value of the rowStripes record component.
    boolean
    Returns the value of the searchable record component.
    boolean
    Returns the value of the searchOnEnter record component.
    boolean
    Returns the value of the selectionListened record component.
    boolean
    Returns the value of the showCards record component.
    int
    Returns the value of the size record component.
    Returns the value of the subtitle record component.
    Returns the value of the title record component.
    Returns the value of the toolbar record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the useButtonForDetail 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

    • 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 a CrudlDto record class.
      Parameters:
      crudlType - the value for the crudlType record component
      title - the value for the title record component
      subtitle - the value for the subtitle record component
      canEdit - the value for the canEdit record component
      selectionListened - the value for the selectionListened record component
      hasActionOnSelectedRow - the value for the hasActionOnSelectedRow record component
      multipleRowSelectionEnabled - the value for the multipleRowSelectionEnabled record component
      searchable - the value for the searchable record component
      showCards - the value for the showCards record component
      filters - the value for the filters record component
      columns - the value for the columns record component
      toolbar - the value for the toolbar record component
      child - the value for the child record component
      emptyStateMessage - the value for the emptyStateMessage record component
      searchOnEnter - the value for the searchOnEnter record component
      autoFocusOnSearchText - the value for the autoFocusOnSearchText record component
      allRowsVisible - the value for the allRowsVisible record component
      size - the value for the size record component
      lazyLoading - the value for the lazyLoading record component
      lazyColumnRendering - the value for the lazyColumnRendering record component
      infiniteScrolling - the value for the infiniteScrolling record component
      useButtonForDetail - the value for the useButtonForDetail record component
      columnReorderingAllowed - the value for the columnReorderingAllowed record component
      pageSize - the value for the pageSize record component
      rowsSelectionEnabled - the value for the rowsSelectionEnabled record component
      header - the value for the header record component
      footer - the value for the footer 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
      gridStyle - the value for the gridStyle record component
      detailPath - the value for the detailPath record component
      onRowSelectionChangedActionId - the value for the onRowSelectionChangedActionId record component
      contentHeight - the value for the contentHeight record component
  • Method Details

    • columns

      public List<ComponentDto> columns()
      Returns the value of the columns record component.
      Returns:
      the value of the columns record component
    • 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.
    • crudlType

      public CrudlTypeDto crudlType()
      Returns the value of the crudlType record component.
      Returns:
      the value of the crudlType record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • subtitle

      public String subtitle()
      Returns the value of the subtitle record component.
      Returns:
      the value of the subtitle record component
    • canEdit

      public boolean canEdit()
      Returns the value of the canEdit record component.
      Returns:
      the value of the canEdit record component
    • selectionListened

      public boolean selectionListened()
      Returns the value of the selectionListened record component.
      Returns:
      the value of the selectionListened record component
    • hasActionOnSelectedRow

      public boolean hasActionOnSelectedRow()
      Returns the value of the hasActionOnSelectedRow record component.
      Returns:
      the value of the hasActionOnSelectedRow record component
    • multipleRowSelectionEnabled

      public boolean multipleRowSelectionEnabled()
      Returns the value of the multipleRowSelectionEnabled record component.
      Returns:
      the value of the multipleRowSelectionEnabled record component
    • searchable

      public boolean searchable()
      Returns the value of the searchable record component.
      Returns:
      the value of the searchable record component
    • showCards

      public boolean showCards()
      Returns the value of the showCards record component.
      Returns:
      the value of the showCards record component
    • filters

      public List<FormFieldDto> filters()
      Returns the value of the filters record component.
      Returns:
      the value of the filters record component
    • toolbar

      public List<ButtonDto> toolbar()
      Returns the value of the toolbar record component.
      Returns:
      the value of the toolbar record component
    • child

      public boolean child()
      Returns the value of the child record component.
      Returns:
      the value of the child record component
    • emptyStateMessage

      public String emptyStateMessage()
      Returns the value of the emptyStateMessage record component.
      Returns:
      the value of the emptyStateMessage record component
    • searchOnEnter

      public boolean searchOnEnter()
      Returns the value of the searchOnEnter record component.
      Returns:
      the value of the searchOnEnter record component
    • autoFocusOnSearchText

      public boolean autoFocusOnSearchText()
      Returns the value of the autoFocusOnSearchText record component.
      Returns:
      the value of the autoFocusOnSearchText record component
    • allRowsVisible

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

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

      public boolean lazyLoading()
      Returns the value of the lazyLoading record component.
      Returns:
      the value of the lazyLoading record component
    • lazyColumnRendering

      public boolean lazyColumnRendering()
      Returns the value of the lazyColumnRendering record component.
      Returns:
      the value of the lazyColumnRendering record component
    • infiniteScrolling

      public boolean infiniteScrolling()
      Returns the value of the infiniteScrolling record component.
      Returns:
      the value of the infiniteScrolling record component
    • useButtonForDetail

      public boolean useButtonForDetail()
      Returns the value of the useButtonForDetail record component.
      Returns:
      the value of the useButtonForDetail record component
    • columnReorderingAllowed

      public boolean columnReorderingAllowed()
      Returns the value of the columnReorderingAllowed record component.
      Returns:
      the value of the columnReorderingAllowed record component
    • pageSize

      public int pageSize()
      Returns the value of the pageSize record component.
      Returns:
      the value of the pageSize record component
    • rowsSelectionEnabled

      public boolean rowsSelectionEnabled()
      Returns the value of the rowsSelectionEnabled record component.
      Returns:
      the value of the rowsSelectionEnabled record component
    • header

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

      public List<ComponentDto> footer()
      Returns the value of the footer record component.
      Returns:
      the value of the footer 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
    • gridStyle

      public String gridStyle()
      Returns the value of the gridStyle record component.
      Returns:
      the value of the gridStyle record component
    • detailPath

      public String detailPath()
      Returns the value of the detailPath record component.
      Returns:
      the value of the detailPath record component
    • onRowSelectionChangedActionId

      public String onRowSelectionChangedActionId()
      Returns the value of the onRowSelectionChangedActionId record component.
      Returns:
      the value of the onRowSelectionChangedActionId record component
    • contentHeight

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