Class AbstractFieldImpl

    • Constructor Detail

      • AbstractFieldImpl

        public AbstractFieldImpl()
    • Method Detail

      • isReadOnly

        @Nullable
        public @Nullable java.lang.Boolean isReadOnly()
        Description copied from interface: Field
        Checks if the field should be rendered read only.
        Specified by:
        isReadOnly in interface Field
        Returns:
        true if the field should be read-only, false otherwise
      • getReadOnlyIfPresent

        public java.lang.Boolean getReadOnlyIfPresent()
      • isRequired

        @Nullable
        public @Nullable java.lang.Boolean isRequired()
        Description copied from interface: BaseConstraint
        Returns true if field is required, otherwise false.
        Specified by:
        isRequired in interface BaseConstraint
        Returns:
        true if field is required, otherwise false
      • getRequiredIfPresent

        public java.lang.Boolean getRequiredIfPresent()
      • getDefault

        public java.lang.Object[] getDefault()
        Description copied from interface: Field
        The value of the field when no value is provided by the end user or data model. The type of this property should match the value of the type property defined in the Field. If not, then a type coercion will be tried and if that fails, the value will be set to null.
        Specified by:
        getDefault in interface Field
        Returns:
        default value of the field
      • getPlaceHolder

        @Nullable
        public @Nullable java.lang.String getPlaceHolder()
        Description copied from interface: Field
        The placeholder to show on the field.
        Specified by:
        getPlaceHolder in interface Field
        Returns:
        placeholder to show on the field
      • getDisplayFormat

        @Nullable
        public @Nullable java.lang.String getDisplayFormat()
        Description copied from interface: Field
        The format in which the value will be displayed to the user on screen in the field. For example when using a currency field, the currency sign should be shown to the user.
        Specified by:
        getDisplayFormat in interface Field
        Returns:
        display format of the field
      • getEditFormat

        @Nullable
        public @Nullable java.lang.String getEditFormat()
        Description copied from interface: Field
        The format in which the value will be edited by the user. For instance users in Germany would want to interchange decimal (.) and comma (,) when entering numerical values.
        Specified by:
        getEditFormat in interface Field
        Returns:
        edit format of the field
      • getDisplayValueExpression

        @Nullable
        public @Nullable java.lang.String getDisplayValueExpression()
        Description copied from interface: Field
        The expression that when evaluated would determine what the displayValue of a field would be
        Specified by:
        getDisplayValueExpression in interface Field
        Returns:
        display value expression of the field
      • getDataFormat

        @Nullable
        public @Nullable java.lang.String getDataFormat()
        Description copied from interface: Field
        The format in which the value will be exported or submitted.
        Specified by:
        getDataFormat in interface Field
        Returns:
        data format of the field