Package io.mateu.dtos
Record Class ActionDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ActionDto
- Record Components:
id- This action targetIdvalidationRequired- If validation of the form is required for firing this actionconfirmationRequired- If confirmation of the form is required for firing this actionrowsSelectedRequired- If rows selected from the crud is required for firing this actionconfirmationTexts- Confirmation dialog textmodalStyle- The initialValue for the dialog style attributemodalTitle- The initialValue for the dialog headercustomEvent- In case a browser custom event is to be thrownhref- 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 Summary
ConstructorsConstructorDescriptionActionDto(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 aActionDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebackgroundrecord component.booleanReturns the value of theconfirmationRequiredrecord component.Returns the value of theconfirmationTextsrecord component.Returns the value of thecustomEventrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.id()Returns the value of theidrecord component.js()Returns the value of thejsrecord component.Returns the value of themodalStylerecord component.Returns the value of themodalTitlerecord component.booleanReturns the value of therowsSelectedRequiredrecord component.booleansse()Returns the value of thesserecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevalidationRequiredrecord component.
-
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 aActionDtorecord class.- Parameters:
id- the value for theidrecord componentvalidationRequired- the value for thevalidationRequiredrecord componentconfirmationRequired- the value for theconfirmationRequiredrecord componentrowsSelectedRequired- the value for therowsSelectedRequiredrecord componentconfirmationTexts- the value for theconfirmationTextsrecord componentmodalStyle- the value for themodalStylerecord componentmodalTitle- the value for themodalTitlerecord componentcustomEvent- the value for thecustomEventrecord componenthref- the value for thehrefrecord componentjs- the value for thejsrecord componentbackground- the value for thebackgroundrecord componentsse- the value for thesserecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
validationRequired
public boolean validationRequired()Returns the value of thevalidationRequiredrecord component.- Returns:
- the value of the
validationRequiredrecord component
-
confirmationRequired
public boolean confirmationRequired()Returns the value of theconfirmationRequiredrecord component.- Returns:
- the value of the
confirmationRequiredrecord component
-
rowsSelectedRequired
public boolean rowsSelectedRequired()Returns the value of therowsSelectedRequiredrecord component.- Returns:
- the value of the
rowsSelectedRequiredrecord component
-
confirmationTexts
Returns the value of theconfirmationTextsrecord component.- Returns:
- the value of the
confirmationTextsrecord component
-
modalStyle
Returns the value of themodalStylerecord component.- Returns:
- the value of the
modalStylerecord component
-
modalTitle
Returns the value of themodalTitlerecord component.- Returns:
- the value of the
modalTitlerecord component
-
customEvent
Returns the value of thecustomEventrecord component.- Returns:
- the value of the
customEventrecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
js
Returns the value of thejsrecord component.- Returns:
- the value of the
jsrecord component
-
background
public boolean background()Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
sse
public boolean sse()Returns the value of thesserecord component.- Returns:
- the value of the
sserecord component
-