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 Details

    • ActionFormDialog

      public ActionFormDialog(String title, String description, String submitLabel, String cancelLabel, String icon, ActionSeverity tone, DialogSize size)
      Creates an instance of a ActionFormDialog record class.
      Parameters:
      title - the value for the title record component
      description - the value for the description record component
      submitLabel - the value for the submitLabel record component
      cancelLabel - the value for the cancelLabel record component
      icon - the value for the icon record component
      tone - the value for the tone record component
      size - the value for the size 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • title

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

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • submitLabel

      public String submitLabel()
      Returns the value of the submitLabel record component.
      Returns:
      the value of the submitLabel record component
    • cancelLabel

      public String cancelLabel()
      Returns the value of the cancelLabel record component.
      Returns:
      the value of the cancelLabel record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • tone

      public ActionSeverity tone()
      Returns the value of the tone record component.
      Returns:
      the value of the tone record component
    • size

      public DialogSize size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component