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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe edit control used for this field in the edit form. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoFillDate(@Nullable Boolean autoFillDate) autoFillUser(@Nullable Boolean autoFillUser) choiceList(@Nullable ChoiceList choiceList) controlType(FormField.ControlTypeEnum controlType) booleanGet autoFillDateGet autoFillUser@Valid ChoiceListGet choiceList@NotNull FormField.ControlTypeEnumThe edit control used for this field in the edit form.getHint()Get hint@NotNull StringgetLabel()Get label@NotNull StringgetName()Get nameGet placeholderWhen true the field is shown in the edit form but its value can't be changed.When true the field must have a value.getTab()Get tabinthashCode()placeholder(@Nullable String placeholder) voidsetAutoFillDate(Boolean autoFillDate) voidsetAutoFillUser(Boolean autoFillUser) voidsetChoiceList(ChoiceList choiceList) voidsetControlType(FormField.ControlTypeEnum controlType) voidvoidvoidvoidsetPlaceholder(String placeholder) voidsetReadOnly(Boolean readOnly) voidsetRequired(Boolean required) voidtoString()
-
Constructor Details
-
FormField
public FormField()
-
-
Method Details
-
name
-
getName
-
setName
-
label
-
getLabel
-
setLabel
-
controlType
-
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
-
tab
-
getTab
-
setTab
-
choiceList
-
getChoiceList
-
setChoiceList
-
readOnly
-
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
-
required
-
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
-
autoFillUser
-
getAutoFillUser
-
setAutoFillUser
-
autoFillDate
-
getAutoFillDate
-
setAutoFillDate
-
placeholder
-
getPlaceholder
-
setPlaceholder
-
hint
-
getHint
-
setHint
-
equals
-
hashCode
-
toString
-