Package io.mateu.dtos
Record Class FormDto
java.lang.Object
java.lang.Record
io.mateu.dtos.FormDto
- Record Components:
icon- This form icontitle- This form titlereadOnly- If this form is read onlysubtitle- This form subtitlestatus- This form status. This has a special visual representation on top of the formbadges- Badges to be shown for this form- Banners to be shown in this formactions- Actions for this form. To be shown at the top- Actions for this form. To be shown at the bottom
- All Implemented Interfaces:
ComponentMetadataDto
public record FormDto(String icon, String title, boolean readOnly, String subtitle, StatusDto status, boolean noHeader, List<BadgeDto> badges, List<BannerDto> banners, List<ActionDto> actions, List<ButtonDto> toolbar, List<ButtonDto> buttons, ComponentDto avatar, List<ComponentDto> header, List<ComponentDto> footer)
extends Record
implements ComponentMetadataDto
Form metadata
-
Constructor Summary
ConstructorsConstructorDescriptionFormDto(String icon, String title, boolean readOnly, String subtitle, StatusDto status, boolean noHeader, List<BadgeDto> badges, List<BannerDto> banners, List<ActionDto> actions, List<ButtonDto> toolbar, List<ButtonDto> buttons, ComponentDto avatar, List<ComponentDto> header, List<ComponentDto> footer) Creates an instance of aFormDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.avatar()Returns the value of theavatarrecord component.badges()Returns the value of thebadgesrecord component.banners()Returns the value of thebannersrecord component.buttons()Returns the value of thebuttonsrecord 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.icon()Returns the value of theiconrecord component.booleannoHeader()Returns the value of thenoHeaderrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.status()Returns the value of thestatusrecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.toolbar()Returns the value of thetoolbarrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormDto
public FormDto(String icon, String title, boolean readOnly, String subtitle, StatusDto status, boolean noHeader, List<BadgeDto> badges, List<BannerDto> banners, List<ActionDto> actions, List<ButtonDto> toolbar, List<ButtonDto> buttons, ComponentDto avatar, List<ComponentDto> header, List<ComponentDto> footer) Creates an instance of aFormDtorecord class.- Parameters:
icon- the value for theiconrecord componenttitle- the value for thetitlerecord componentreadOnly- the value for thereadOnlyrecord componentsubtitle- the value for thesubtitlerecord componentstatus- the value for thestatusrecord componentnoHeader- the value for thenoHeaderrecord componentbadges- the value for thebadgesrecord componentbanners- the value for thebannersrecord componentactions- the value for theactionsrecord componenttoolbar- the value for thetoolbarrecord componentbuttons- the value for thebuttonsrecord componentavatar- the value for theavatarrecord componentheader- the value for theheaderrecord componentfooter- the value for thefooterrecord component
-
-
Method Details
-
badges
Returns the value of thebadgesrecord component.- Returns:
- the value of the
badgesrecord component
-
banners
Returns the value of thebannersrecord component.- Returns:
- the value of the
bannersrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
buttons
Returns the value of thebuttonsrecord component.- Returns:
- the value of the
buttonsrecord component
-
toolbar
Returns the value of thetoolbarrecord component.- Returns:
- the value of the
toolbarrecord component
-
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 '=='. -
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
noHeader
public boolean noHeader()Returns the value of thenoHeaderrecord component.- Returns:
- the value of the
noHeaderrecord component
-
avatar
Returns the value of theavatarrecord component.- Returns:
- the value of the
avatarrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-