Package su.onno.ui
Record Class InputSpec.ActionFormDialog
java.lang.Object
java.lang.Record
su.onno.ui.InputSpec.ActionFormDialog
- Enclosing class:
InputSpec
public static record InputSpec.ActionFormDialog(String title, String description, String submitLabel, String cancelLabel, String icon, ActionSeverity tone, DialogSize size)
extends Record
Presentation metadata for an action-form dialog.
-
Constructor Summary
ConstructorsConstructorDescriptionActionFormDialog(String title, String description, String submitLabel, String cancelLabel, String icon, ActionSeverity tone, DialogSize size) Creates an instance of aActionFormDialogrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelLabelrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.size()Returns the value of thesizerecord component.Returns the value of thesubmitLabelrecord component.title()Returns the value of thetitlerecord component.tone()Returns the value of thetonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionFormDialog
public ActionFormDialog(String title, String description, String submitLabel, String cancelLabel, String icon, ActionSeverity tone, DialogSize size) Creates an instance of aActionFormDialogrecord class.- Parameters:
title- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentsubmitLabel- the value for thesubmitLabelrecord componentcancelLabel- the value for thecancelLabelrecord componenticon- the value for theiconrecord componenttone- the value for thetonerecord componentsize- the value for thesizerecord 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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
submitLabel
Returns the value of thesubmitLabelrecord component.- Returns:
- the value of the
submitLabelrecord component
-
cancelLabel
Returns the value of thecancelLabelrecord component.- Returns:
- the value of the
cancelLabelrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
tone
Returns the value of thetonerecord component.- Returns:
- the value of the
tonerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-