Package io.mateu.dtos
Record Class FormFieldDto
java.lang.Object
java.lang.Record
io.mateu.dtos.FormFieldDto
- Record Components:
fieldId- Field targetIddataType- Field data dataTypestereotype- Field stereotype (how it is painted)observed- If a change must trigger a rules reevaluationautofocus- Set to true if you want it to be focused when renderedlabel- The label/label for this fieldplaceholder- A placeholder for this fieldcssClasses- Css cssClasses to be applied to this fielddescription- A help text to be used as tooltipbadges- Badges which must appear close to this fieldattributes- Some generic attributescolspan- Colspan for this field
- All Implemented Interfaces:
ComponentMetadataDto
public record FormFieldDto(String fieldId, String dataType, String stereotype, boolean observed, boolean autofocus, String label, String placeholder, String cssClasses, String description, List<BadgeDto> badges, List<PairDto> attributes, int colspan, boolean rightAligned, boolean bold, List<OptionDto> options, RemoteCoordinatesDto remoteCoordinates, Object initialValue, boolean readOnly, boolean required, String style, List<ComponentDto> columns, ComponentDto createForm, ComponentDto editor, String onItemSelectionActionId, FormPositionDto formPosition, int sliderMin, int sliderMax, boolean stepButtonsVisible, double step)
extends Record
implements ComponentMetadataDto
A field in a form
-
Constructor Summary
ConstructorsConstructorDescriptionFormFieldDto(String fieldId, String dataType, String stereotype, boolean observed, boolean autofocus, String label, String placeholder, String cssClasses, String description, List<BadgeDto> badges, List<PairDto> attributes, int colspan, boolean rightAligned, boolean bold, List<OptionDto> options, RemoteCoordinatesDto remoteCoordinates, Object initialValue, boolean readOnly, boolean required, String style, List<ComponentDto> columns, ComponentDto createForm, ComponentDto editor, String onItemSelectionActionId, FormPositionDto formPosition, int sliderMin, int sliderMax, boolean stepButtonsVisible, double step) Creates an instance of aFormFieldDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.booleanReturns the value of theautofocusrecord component.badges()Returns the value of thebadgesrecord component.booleanbold()Returns the value of theboldrecord component.intcolspan()Returns the value of thecolspanrecord component.columns()Returns the value of thecolumnsrecord component.Returns the value of thecreateFormrecord component.Returns the value of thecssClassesrecord component.dataType()Returns the value of thedataTyperecord component.Returns the value of thedescriptionrecord component.editor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.fieldId()Returns the value of thefieldIdrecord component.Returns the value of theformPositionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialValuerecord component.label()Returns the value of thelabelrecord component.booleanobserved()Returns the value of theobservedrecord component.Returns the value of theonItemSelectionActionIdrecord component.options()Returns the value of theoptionsrecord component.Returns the value of theplaceholderrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.Returns the value of theremoteCoordinatesrecord component.booleanrequired()Returns the value of therequiredrecord component.booleanReturns the value of therightAlignedrecord component.intReturns the value of thesliderMaxrecord component.intReturns the value of thesliderMinrecord component.doublestep()Returns the value of thesteprecord component.booleanReturns the value of thestepButtonsVisiblerecord component.Returns the value of thestereotyperecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormFieldDto
public FormFieldDto(String fieldId, String dataType, String stereotype, boolean observed, boolean autofocus, String label, String placeholder, String cssClasses, String description, List<BadgeDto> badges, List<PairDto> attributes, int colspan, boolean rightAligned, boolean bold, List<OptionDto> options, RemoteCoordinatesDto remoteCoordinates, Object initialValue, boolean readOnly, boolean required, String style, List<ComponentDto> columns, ComponentDto createForm, ComponentDto editor, String onItemSelectionActionId, FormPositionDto formPosition, int sliderMin, int sliderMax, boolean stepButtonsVisible, double step) Creates an instance of aFormFieldDtorecord class.- Parameters:
fieldId- the value for thefieldIdrecord componentdataType- the value for thedataTyperecord componentstereotype- the value for thestereotyperecord componentobserved- the value for theobservedrecord componentautofocus- the value for theautofocusrecord componentlabel- the value for thelabelrecord componentplaceholder- the value for theplaceholderrecord componentcssClasses- the value for thecssClassesrecord componentdescription- the value for thedescriptionrecord componentbadges- the value for thebadgesrecord componentattributes- the value for theattributesrecord componentcolspan- the value for thecolspanrecord componentrightAligned- the value for therightAlignedrecord componentbold- the value for theboldrecord componentoptions- the value for theoptionsrecord componentremoteCoordinates- the value for theremoteCoordinatesrecord componentinitialValue- the value for theinitialValuerecord componentreadOnly- the value for thereadOnlyrecord componentrequired- the value for therequiredrecord componentstyle- the value for thestylerecord componentcolumns- the value for thecolumnsrecord componentcreateForm- the value for thecreateFormrecord componenteditor- the value for theeditorrecord componentonItemSelectionActionId- the value for theonItemSelectionActionIdrecord componentformPosition- the value for theformPositionrecord componentsliderMin- the value for thesliderMinrecord componentsliderMax- the value for thesliderMaxrecord componentstepButtonsVisible- the value for thestepButtonsVisiblerecord componentstep- the value for thesteprecord component
-
-
Method Details
-
badges
Returns the value of thebadgesrecord component.- Returns:
- the value of the
badgesrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord 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 '=='. -
fieldId
Returns the value of thefieldIdrecord component.- Returns:
- the value of the
fieldIdrecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
stereotype
Returns the value of thestereotyperecord component.- Returns:
- the value of the
stereotyperecord component
-
observed
public boolean observed()Returns the value of theobservedrecord component.- Returns:
- the value of the
observedrecord component
-
autofocus
public boolean autofocus()Returns the value of theautofocusrecord component.- Returns:
- the value of the
autofocusrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
placeholder
Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-
cssClasses
Returns the value of thecssClassesrecord component.- Returns:
- the value of the
cssClassesrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
colspan
public int colspan()Returns the value of thecolspanrecord component.- Returns:
- the value of the
colspanrecord component
-
rightAligned
public boolean rightAligned()Returns the value of therightAlignedrecord component.- Returns:
- the value of the
rightAlignedrecord component
-
bold
public boolean bold()Returns the value of theboldrecord component.- Returns:
- the value of the
boldrecord component
-
remoteCoordinates
Returns the value of theremoteCoordinatesrecord component.- Returns:
- the value of the
remoteCoordinatesrecord component
-
initialValue
Returns the value of theinitialValuerecord component.- Returns:
- the value of the
initialValuerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
createForm
Returns the value of thecreateFormrecord component.- Returns:
- the value of the
createFormrecord component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-
onItemSelectionActionId
Returns the value of theonItemSelectionActionIdrecord component.- Returns:
- the value of the
onItemSelectionActionIdrecord component
-
formPosition
Returns the value of theformPositionrecord component.- Returns:
- the value of the
formPositionrecord component
-
sliderMin
public int sliderMin()Returns the value of thesliderMinrecord component.- Returns:
- the value of the
sliderMinrecord component
-
sliderMax
public int sliderMax()Returns the value of thesliderMaxrecord component.- Returns:
- the value of the
sliderMaxrecord component
-
stepButtonsVisible
public boolean stepButtonsVisible()Returns the value of thestepButtonsVisiblerecord component.- Returns:
- the value of the
stepButtonsVisiblerecord component
-
step
public double step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-