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
ConstructorsConstructorDescriptionDialogDto(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 aDialogDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecloseButtonOnHeaderrecord component.content()Returns the value of thecontentrecord component.booleanReturns the value of thedraggablerecord component.final booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theheaderTitlerecord component.height()Returns the value of theheightrecord component.left()Returns the value of theleftrecord component.booleanmodeless()Returns the value of themodelessrecord component.booleanReturns the value of thenoPaddingrecord component.booleanReturns the value of theresizablerecord component.top()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
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 aDialogDtorecord class.- Parameters:
headerTitle- the value for theheaderTitlerecord componentheader- the value for theheaderrecord componentcontent- the value for thecontentrecord componentfooter- the value for thefooterrecord componentnoPadding- the value for thenoPaddingrecord componentmodeless- the value for themodelessrecord componenttop- the value for thetoprecord componentleft- the value for theleftrecord componentdraggable- the value for thedraggablerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentresizable- the value for theresizablerecord componentcloseButtonOnHeader- the value for thecloseButtonOnHeaderrecord 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 '=='. -
headerTitle
Returns the value of theheaderTitlerecord component.- Returns:
- the value of the
headerTitlerecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
noPadding
public boolean noPadding()Returns the value of thenoPaddingrecord component.- Returns:
- the value of the
noPaddingrecord component
-
modeless
public boolean modeless()Returns the value of themodelessrecord component.- Returns:
- the value of the
modelessrecord component
-
top
Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
draggable
public boolean draggable()Returns the value of thedraggablerecord component.- Returns:
- the value of the
draggablerecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
resizable
public boolean resizable()Returns the value of theresizablerecord component.- Returns:
- the value of the
resizablerecord component
-
closeButtonOnHeader
public boolean closeButtonOnHeader()Returns the value of thecloseButtonOnHeaderrecord component.- Returns:
- the value of the
closeButtonOnHeaderrecord component
-