Package io.mateu.dtos

Record Class FormFieldDto

java.lang.Object
java.lang.Record
io.mateu.dtos.FormFieldDto
Record Components:
fieldId - Field targetId
dataType - Field data dataType
stereotype - Field stereotype (how it is painted)
observed - If a change must trigger a rules reevaluation
autofocus - Set to true if you want it to be focused when rendered
label - The label/label for this field
placeholder - A placeholder for this field
cssClasses - Css cssClasses to be applied to this field
description - A help text to be used as tooltip
badges - Badges which must appear close to this field
attributes - Some generic attributes
colspan - 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 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 a FormFieldDto record class.
      Parameters:
      fieldId - the value for the fieldId record component
      dataType - the value for the dataType record component
      stereotype - the value for the stereotype record component
      observed - the value for the observed record component
      autofocus - the value for the autofocus record component
      label - the value for the label record component
      placeholder - the value for the placeholder record component
      cssClasses - the value for the cssClasses record component
      description - the value for the description record component
      badges - the value for the badges record component
      attributes - the value for the attributes record component
      colspan - the value for the colspan record component
      rightAligned - the value for the rightAligned record component
      bold - the value for the bold record component
      options - the value for the options record component
      remoteCoordinates - the value for the remoteCoordinates record component
      initialValue - the value for the initialValue record component
      readOnly - the value for the readOnly record component
      required - the value for the required record component
      style - the value for the style record component
      columns - the value for the columns record component
      createForm - the value for the createForm record component
      editor - the value for the editor record component
      onItemSelectionActionId - the value for the onItemSelectionActionId record component
      formPosition - the value for the formPosition record component
      sliderMin - the value for the sliderMin record component
      sliderMax - the value for the sliderMax record component
      stepButtonsVisible - the value for the stepButtonsVisible record component
      step - the value for the step record component
  • Method Details

    • badges

      public List<BadgeDto> badges()
      Returns the value of the badges record component.
      Returns:
      the value of the badges record component
    • attributes

      public List<PairDto> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • options

      public List<OptionDto> options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • 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.
    • fieldId

      public String fieldId()
      Returns the value of the fieldId record component.
      Returns:
      the value of the fieldId record component
    • dataType

      public String dataType()
      Returns the value of the dataType record component.
      Returns:
      the value of the dataType record component
    • stereotype

      public String stereotype()
      Returns the value of the stereotype record component.
      Returns:
      the value of the stereotype record component
    • observed

      public boolean observed()
      Returns the value of the observed record component.
      Returns:
      the value of the observed record component
    • autofocus

      public boolean autofocus()
      Returns the value of the autofocus record component.
      Returns:
      the value of the autofocus record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • placeholder

      public String placeholder()
      Returns the value of the placeholder record component.
      Returns:
      the value of the placeholder record component
    • cssClasses

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

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

      public int colspan()
      Returns the value of the colspan record component.
      Returns:
      the value of the colspan record component
    • rightAligned

      public boolean rightAligned()
      Returns the value of the rightAligned record component.
      Returns:
      the value of the rightAligned record component
    • bold

      public boolean bold()
      Returns the value of the bold record component.
      Returns:
      the value of the bold record component
    • remoteCoordinates

      public RemoteCoordinatesDto remoteCoordinates()
      Returns the value of the remoteCoordinates record component.
      Returns:
      the value of the remoteCoordinates record component
    • initialValue

      public Object initialValue()
      Returns the value of the initialValue record component.
      Returns:
      the value of the initialValue record component
    • readOnly

      public boolean readOnly()
      Returns the value of the readOnly record component.
      Returns:
      the value of the readOnly record component
    • required

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • style

      public String style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component
    • columns

      public List<ComponentDto> columns()
      Returns the value of the columns record component.
      Returns:
      the value of the columns record component
    • createForm

      public ComponentDto createForm()
      Returns the value of the createForm record component.
      Returns:
      the value of the createForm record component
    • editor

      public ComponentDto editor()
      Returns the value of the editor record component.
      Returns:
      the value of the editor record component
    • onItemSelectionActionId

      public String onItemSelectionActionId()
      Returns the value of the onItemSelectionActionId record component.
      Returns:
      the value of the onItemSelectionActionId record component
    • formPosition

      public FormPositionDto formPosition()
      Returns the value of the formPosition record component.
      Returns:
      the value of the formPosition record component
    • sliderMin

      public int sliderMin()
      Returns the value of the sliderMin record component.
      Returns:
      the value of the sliderMin record component
    • sliderMax

      public int sliderMax()
      Returns the value of the sliderMax record component.
      Returns:
      the value of the sliderMax record component
    • stepButtonsVisible

      public boolean stepButtonsVisible()
      Returns the value of the stepButtonsVisible record component.
      Returns:
      the value of the stepButtonsVisible record component
    • step

      public double step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component