Package io.mateu.dtos

Record Class DialogDto

java.lang.Object
java.lang.Record
io.mateu.dtos.DialogDto
All Implemented Interfaces:
ComponentMetadataDto

public record DialogDto(String headerTitle, ComponentDto header, ComponentDto content, ComponentDto footer, boolean noPadding, boolean modeless, String top, String left, boolean draggable, String width, String height, boolean resizable, boolean closeButtonOnHeader) extends Record implements ComponentMetadataDto
Metadata for a html element
  • Constructor Summary

    Constructors
    Constructor
    Description
    DialogDto(String headerTitle, ComponentDto header, ComponentDto content, ComponentDto footer, boolean noPadding, boolean modeless, String top, String left, boolean draggable, String width, String height, boolean resizable, boolean closeButtonOnHeader)
    Creates an instance of a DialogDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the closeButtonOnHeader record component.
    Returns the value of the content record component.
    boolean
    Returns the value of the draggable record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the footer record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the header record component.
    Returns the value of the headerTitle record component.
    Returns the value of the height record component.
    Returns the value of the left record component.
    boolean
    Returns the value of the modeless record component.
    boolean
    Returns the value of the noPadding record component.
    boolean
    Returns the value of the resizable record component.
    top()
    Returns the value of the top record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the width record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DialogDto

      public DialogDto(String headerTitle, ComponentDto header, ComponentDto content, ComponentDto footer, boolean noPadding, boolean modeless, String top, String left, boolean draggable, String width, String height, boolean resizable, boolean closeButtonOnHeader)
      Creates an instance of a DialogDto record class.
      Parameters:
      headerTitle - the value for the headerTitle record component
      header - the value for the header record component
      content - the value for the content record component
      footer - the value for the footer record component
      noPadding - the value for the noPadding record component
      modeless - the value for the modeless record component
      top - the value for the top record component
      left - the value for the left record component
      draggable - the value for the draggable record component
      width - the value for the width record component
      height - the value for the height record component
      resizable - the value for the resizable record component
      closeButtonOnHeader - the value for the closeButtonOnHeader 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.
    • headerTitle

      public String headerTitle()
      Returns the value of the headerTitle record component.
      Returns:
      the value of the headerTitle record component
    • header

      public ComponentDto header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • content

      public ComponentDto content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • footer

      public ComponentDto footer()
      Returns the value of the footer record component.
      Returns:
      the value of the footer record component
    • noPadding

      public boolean noPadding()
      Returns the value of the noPadding record component.
      Returns:
      the value of the noPadding record component
    • modeless

      public boolean modeless()
      Returns the value of the modeless record component.
      Returns:
      the value of the modeless record component
    • top

      public String top()
      Returns the value of the top record component.
      Returns:
      the value of the top record component
    • left

      public String left()
      Returns the value of the left record component.
      Returns:
      the value of the left record component
    • draggable

      public boolean draggable()
      Returns the value of the draggable record component.
      Returns:
      the value of the draggable record component
    • width

      public String width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public String height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • resizable

      public boolean resizable()
      Returns the value of the resizable record component.
      Returns:
      the value of the resizable record component
    • closeButtonOnHeader

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