Class AutoForm<T>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
org.vaadin.firitin.rad.AutoForm<T>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable, ValueContext

public class AutoForm<T> extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div> implements ValueContext
A form that automatically creates fields for all properties of a bean. Not meant to created directly, but through AutoFormContext.
See Also:
  • Field Details

    • SHORT_STRING_THRESHOLD

      public static final int SHORT_STRING_THRESHOLD
      See Also:
  • Method Details

    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component
    • withPropertyHeaderPrinter

      public AutoForm withPropertyHeaderPrinter(PropertyHeaderPrinter printer)
    • getFormBody

      public com.vaadin.flow.component.Component getFormBody()
    • getValue

      public T getValue()
    • getBinder

      public FormBinder<T> getBinder()
    • value

      public Object value()
      Specified by:
      value in interface ValueContext
    • parent

      public ValueContext parent()
      Specified by:
      parent in interface ValueContext
    • beanDescription

      public com.fasterxml.jackson.databind.introspect.BasicBeanDescription beanDescription()
      Specified by:
      beanDescription in interface ValueContext
    • getLocale

      public Locale getLocale()
      Specified by:
      getLocale in interface ValueContext
      Overrides:
      getLocale in class com.vaadin.flow.component.Component
    • getPrettyPrinter

      public PrettyPrinter getPrettyPrinter()
      Specified by:
      getPrettyPrinter in interface ValueContext
    • getPropertyContext

      public PropertyContext getPropertyContext(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition property)
      Specified by:
      getPropertyContext in interface ValueContext
    • getLevel

      public int getLevel()
      Specified by:
      getLevel in interface ValueContext
    • setSaveHandler

      public void setSaveHandler(com.vaadin.flow.function.SerializableConsumer<T> saveHandler)
    • setDeleteHandler

      public void setDeleteHandler(com.vaadin.flow.function.SerializableConsumer<T> deleteHandler)
    • setResetHandler

      public void setResetHandler(com.vaadin.flow.function.SerializableConsumer<T> resetHandler)
    • getActions

      public com.vaadin.flow.component.Component getActions()
    • withBeanValidation

      @Deprecated(forRemoval=true) public AutoForm<T> withBeanValidation()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • adjustSaveButtonState

      protected void adjustSaveButtonState()
      Adjust save button state. Override if you for example want to have Save button always enabled, even if the Binder has not tracked any changes yet.
    • doBeanValidation

      protected void doBeanValidation()
    • getValidator

      protected jakarta.validation.Validator getValidator()
    • getValidationGroups

      public Class<?>[] getValidationGroups()
    • setValidationGroups

      public void setValidationGroups(Class<?>... groups)
    • openInDialog

      public com.vaadin.flow.component.dialog.Dialog openInDialog()