Class FormField

java.lang.Object
org.tailormap.api.persistence.json.FormField
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", comments="Generator version: 7.27.0") public class FormField extends Object implements Serializable
model for a single form field
See Also:
  • Constructor Details

    • FormField

      public FormField()
  • Method Details

    • name

      public FormField name(String name)
    • getName

      @NotNull public @NotNull String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(String name)
    • label

      public FormField label(String label)
    • getLabel

      @NotNull public @NotNull String getLabel()
      Get label
      Returns:
      label
    • setLabel

      public void setLabel(String label)
    • controlType

      public FormField controlType(FormField.ControlTypeEnum controlType)
    • getControlType

      @NotNull public @NotNull FormField.ControlTypeEnum getControlType()
      The edit control used for this field in the edit form. This is not the data type of the attribute, although the control must be suitable for it (for example a number control for a numeric attribute). Whether a number must be a whole number follows from the attribute type.
      Returns:
      controlType
    • setControlType

      public void setControlType(FormField.ControlTypeEnum controlType)
    • tab

      public FormField tab(@Nullable String tab)
    • getTab

      public String getTab()
      Get tab
      Returns:
      tab
    • setTab

      public void setTab(String tab)
    • choiceList

      public FormField choiceList(@Nullable ChoiceList choiceList)
    • getChoiceList

      @Valid public @Valid ChoiceList getChoiceList()
      Get choiceList
      Returns:
      choiceList
    • setChoiceList

      public void setChoiceList(ChoiceList choiceList)
    • readOnly

      public FormField readOnly(@Nullable Boolean readOnly)
    • getReadOnly

      public Boolean getReadOnly()
      When true the field is shown in the edit form but its value can't be changed. A field is also read-only when its attribute is not editable.
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • required

      public FormField required(@Nullable Boolean required)
    • getRequired

      public Boolean getRequired()
      When true the field must have a value. A form can only make a field stricter than its attribute: a field is also required when its attribute is not nullable.
      Returns:
      required
    • setRequired

      public void setRequired(Boolean required)
    • autoFillUser

      public FormField autoFillUser(@Nullable Boolean autoFillUser)
    • getAutoFillUser

      public Boolean getAutoFillUser()
      Get autoFillUser
      Returns:
      autoFillUser
    • setAutoFillUser

      public void setAutoFillUser(Boolean autoFillUser)
    • autoFillDate

      public FormField autoFillDate(@Nullable Boolean autoFillDate)
    • getAutoFillDate

      public Boolean getAutoFillDate()
      Get autoFillDate
      Returns:
      autoFillDate
    • setAutoFillDate

      public void setAutoFillDate(Boolean autoFillDate)
    • placeholder

      public FormField placeholder(@Nullable String placeholder)
    • getPlaceholder

      public String getPlaceholder()
      Get placeholder
      Returns:
      placeholder
    • setPlaceholder

      public void setPlaceholder(String placeholder)
    • hint

      public FormField hint(@Nullable String hint)
    • getHint

      public String getHint()
      Get hint
      Returns:
      hint
    • setHint

      public void setHint(String hint)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object