All Superinterfaces:
Cloneable, Component, DataComponent
All Known Subinterfaces:
AddressField, CodeField, DocumentField, FulltextSearch, GeosearchField, HtmlField, LocationField, RangeField, RelationField, RemoteField, SelectBox
All Known Implementing Classes:
AddressFieldImpl, CodeFieldImpl, DocumentFieldImpl, FieldImpl, FulltextSearchImpl, GeosearchFieldImpl, HtmlFieldImpl, LocationFieldImpl, RangeFieldImpl, RelationFieldImpl, RemoteFieldImpl, SelectBoxImpl

public interface Field extends DataComponent
A form field which represents a field of an entity model.
  • Method Details Link icon

    • getPath Link icon

      String getPath()
      The path from the base entity to the field or relation. The base entity is defined in the containing Form component.
    • getDataType Link icon

      String getDataType()
      The data type of the field (e.g. date, datetime, string, ...).
    • getDefaultValue Link icon

      @Nullable @Nullable DefaultValueDescriptor getDefaultValue()
      Returns:
      the default value for this form component as specified in the form xml.
    • getValidator Link icon

      AndGroupValidator getValidator()
    • getAutoCompleteEndpoint Link icon

      String getAutoCompleteEndpoint()
    • getSimpleSearch Link icon

      boolean getSimpleSearch()
    • accept Link icon

      default void accept(ComponentVisitor visitor)
      Description copied from interface: Component
      Implement method (and add new method to ComponentVisitor), if during traversing the form something should happen with this specific component type
      Specified by:
      accept in interface Component
    • isParentContainerReadonly Link icon

      boolean isParentContainerReadonly()