Class AutoFormContext

java.lang.Object
org.vaadin.firitin.rad.AutoFormContext

public class AutoFormContext extends Object
Experimental feature, API/naming might change.
  • Constructor Details

    • AutoFormContext

      public AutoFormContext()
    • AutoFormContext

      public AutoFormContext(List<PropertyPrinter> propertyPrinters)
  • Method Details

    • getDefaultPropertyPrinters

      public static List<PropertyPrinter> getDefaultPropertyPrinters()
    • isAnnotateTypes

      public boolean isAnnotateTypes()
    • setAnnotateTypes

      public void setAnnotateTypes(boolean annotateTypes)
    • getPropertyPrinters

      public List<PropertyPrinter> getPropertyPrinters()
    • createForm

      public <T> AutoForm<T> createForm(T value)
    • createForm

      public <T> AutoForm<T> createForm(Class<T> type)
    • withPropertyEditor

      public AutoFormContext withPropertyEditor(PropertyPrinter propertyEditor)
      Registers a custom property editor that can be used to edit a property of a bean. The editors are tried in order, first one that returns a non-null value is used. The given editor is added to the beginning of the list, so it is tried first.
      Parameters:
      propertyEditor - the editor to add
      Returns:
      this for chaining
    • withPropertyHeaderPrinter

      public AutoFormContext withPropertyHeaderPrinter(PropertyHeaderPrinter printer)
    • disableBeanValidation

      public AutoFormContext disableBeanValidation()
      Disables the default bean validation. By default, the bean validation is enabled if found from the classpath.
      Returns:
      this for chaining
    • isDefaultBeanValidation

      public boolean isDefaultBeanValidation()
    • getLocale

      public Locale getLocale()
    • setLocale

      public void setLocale(Locale locale)
    • getHiddenProperties

      public Set<String> getHiddenProperties()