Package com.axelor.meta.headless
Record Class ActionAlert
java.lang.Object
java.lang.Record
com.axelor.meta.headless.ActionAlert
- Record Components:
kind- what raised itsource- the action that raised the alert, or the button for a prompt; null when it cannot be toldmessage- the untranslated message from the action's definition, for matching; null when the alert was raised by codedisplayed- the message as the user would read it: translated, templates filledtitle- the dialog title, or null for the defaultconfirmTitle- the Yes button's title, or null for the defaultcancelTitle- the No button's title, or null for the default
public record ActionAlert(ActionAlert.Kind kind, String source, String message, String displayed, String title, String confirmTitle, String cancelTitle)
extends Record
A question the browser would put to the user: an
alert from an action, a button's
prompt, or a request to re-authenticate.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionActionAlert(ActionAlert.Kind kind, String source, String message, String displayed, String title, String confirmTitle, String cancelTitle) Creates an instance of aActionAlertrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelTitlerecord component.Returns the value of theconfirmTitlerecord component.Returns the value of thedisplayedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.source()Returns the value of thesourcerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionAlert
public ActionAlert(ActionAlert.Kind kind, String source, String message, String displayed, String title, String confirmTitle, String cancelTitle) Creates an instance of aActionAlertrecord class.- Parameters:
kind- the value for thekindrecord componentsource- the value for thesourcerecord componentmessage- the value for themessagerecord componentdisplayed- the value for thedisplayedrecord componenttitle- the value for thetitlerecord componentconfirmTitle- the value for theconfirmTitlerecord componentcancelTitle- the value for thecancelTitlerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
displayed
Returns the value of thedisplayedrecord component.- Returns:
- the value of the
displayedrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
confirmTitle
Returns the value of theconfirmTitlerecord component.- Returns:
- the value of the
confirmTitlerecord component
-
cancelTitle
Returns the value of thecancelTitlerecord component.- Returns:
- the value of the
cancelTitlerecord component
-