Package io.mateu.dtos

Record Class ActionDto

java.lang.Object
java.lang.Record
io.mateu.dtos.ActionDto
Record Components:
id - This action targetId
validationRequired - If validation of the form is required for firing this action
confirmationRequired - If confirmation of the form is required for firing this action
rowsSelectedRequired - If rows selected from the crud is required for firing this action
confirmationTexts - Confirmation dialog text
modalStyle - The initialValue for the dialog style attribute
modalTitle - The initialValue for the dialog header
customEvent - In case a browser custom event is to be thrown
href - The location to go to, in case we want this to act as a link

public record ActionDto(String id, boolean validationRequired, boolean confirmationRequired, boolean rowsSelectedRequired, ConfirmationTextsDto confirmationTexts, String modalStyle, String modalTitle, CustomEventDto customEvent, String href, String js, boolean background, boolean sse) extends Record
A button
  • Constructor Details

    • ActionDto

      public ActionDto(String id, boolean validationRequired, boolean confirmationRequired, boolean rowsSelectedRequired, ConfirmationTextsDto confirmationTexts, String modalStyle, String modalTitle, CustomEventDto customEvent, String href, String js, boolean background, boolean sse)
      Creates an instance of a ActionDto record class.
      Parameters:
      id - the value for the id record component
      validationRequired - the value for the validationRequired record component
      confirmationRequired - the value for the confirmationRequired record component
      rowsSelectedRequired - the value for the rowsSelectedRequired record component
      confirmationTexts - the value for the confirmationTexts record component
      modalStyle - the value for the modalStyle record component
      modalTitle - the value for the modalTitle record component
      customEvent - the value for the customEvent record component
      href - the value for the href record component
      js - the value for the js record component
      background - the value for the background record component
      sse - the value for the sse 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • validationRequired

      public boolean validationRequired()
      Returns the value of the validationRequired record component.
      Returns:
      the value of the validationRequired record component
    • confirmationRequired

      public boolean confirmationRequired()
      Returns the value of the confirmationRequired record component.
      Returns:
      the value of the confirmationRequired record component
    • rowsSelectedRequired

      public boolean rowsSelectedRequired()
      Returns the value of the rowsSelectedRequired record component.
      Returns:
      the value of the rowsSelectedRequired record component
    • confirmationTexts

      public ConfirmationTextsDto confirmationTexts()
      Returns the value of the confirmationTexts record component.
      Returns:
      the value of the confirmationTexts record component
    • modalStyle

      public String modalStyle()
      Returns the value of the modalStyle record component.
      Returns:
      the value of the modalStyle record component
    • modalTitle

      public String modalTitle()
      Returns the value of the modalTitle record component.
      Returns:
      the value of the modalTitle record component
    • customEvent

      public CustomEventDto customEvent()
      Returns the value of the customEvent record component.
      Returns:
      the value of the customEvent record component
    • href

      public String href()
      Returns the value of the href record component.
      Returns:
      the value of the href record component
    • js

      public String js()
      Returns the value of the js record component.
      Returns:
      the value of the js record component
    • background

      public boolean background()
      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • sse

      public boolean sse()
      Returns the value of the sse record component.
      Returns:
      the value of the sse record component