Serialized Form

  • Package com.flowingcode.vaadin.addons.easyform

    • Class com.flowingcode.vaadin.addons.easyform.EasyForm

      class EasyForm extends Composite<VerticalLayout> implements Serializable
      • Serialized Fields

        • bean
          T bean
          The bean the form is currently editing or was populated from, and the instance that EasyForm.getValidBean() writes to. It is null when no bean was set, and also after EasyForm.clear(), which detaches it.
        • beanType
          Class<T> beanType
          The bean type this form was created for.
        • binder
          Binder<T> binder
          The internal binder that manages data binding and validation.
        • bound
          boolean bound
          Whether the fields have been bound. Until then, configuring a field only collects the configuration; see EasyForm.bindPendingFields().
        • buttonBar
          HorizontalLayout buttonBar
        • cancelAction
          SerializableRunnable cancelAction
        • cancelButton
          Button cancelButton
          The cancel button. Only displayed after a cancel action is set.
        • cancelButtonVisibleOverride
          Boolean cancelButtonVisibleOverride
        • fieldOrder
          Set<String> fieldOrder
        • fields
          Map<String,EasyForm.Field<?>> fields
        • formLayout
          FormLayout formLayout
          The internal layout where the generated fields are placed.

          The layout is owned by the form: it is emptied and repopulated whenever the set of visible fields or their order changes — which every field state change, component replacement, column span and setFieldOrder call can cause. Components added to it directly do not survive that refresh, so extra content belongs next to the form and not inside its layout. What is safe to use here is the configuration of the layout itself, such as FormLayout.setResponsiveSteps(ResponsiveStep...), which the refresh does not touch.

        • i18n
          EasyForm.EasyFormI18n i18n
          The texts of the button bar.
        • instanceFactories
          Map<Class<?>,com.flowingcode.vaadin.addons.easyform.EasyForm.ComponentFactory> instanceFactories
        • labelGenerator
          SerializableFunction<String,String> labelGenerator
        • lastBean
          T lastBean
          The last bean set, remembered so that EasyForm.reset() can restore it after a clear.
        • saveAction
          SerializableConsumer<T> saveAction
        • saveButton
          Button saveButton
          The save button. Only displayed after a save action is set.
        • saveButtonVisibleOverride
          Boolean saveButtonVisibleOverride
        • writeThrough
          boolean writeThrough
    • Class com.flowingcode.vaadin.addons.easyform.EasyForm.EasyFormI18n

      class EasyFormI18n extends Object implements Serializable
      • Serialized Fields

        • cancel
          String cancel
          The text of the cancel button.
        • save
          String save
          The text of the save button.
    • Class com.flowingcode.vaadin.addons.easyform.EasyForm.Field

      class Field extends Object implements Serializable
      • Serialized Fields

        • binding
          Binder.Binding<?,?> binding
        • bindingPending
          boolean bindingPending
          Whether the binding of this field has still to be built; see bindPendingFields.
        • colSpan
          int colSpan
        • component
          HasValue<?,V> component
          The underlying Vaadin component of this field, or null if the property type has no component factory.
        • componentExplicit
          boolean componentExplicit
        • converter
          Converter<?,?> converter
        • factoryConverter
          Converter<?,?> factoryConverter
        • form
          EasyForm<?> form
        • helperText
          String helperText
        • label
          String label
        • placeholder
          String placeholder
        • primitiveDefault
          Object primitiveDefault
          The default value of the property type when the property is primitive, and null otherwise. Primitive properties are bound through their wrapper, so the component can be empty while the setter cannot take null.
        • propertyName
          String propertyName
          The name of the bean property this field is generated for.
        • propertyType
          Class<?> propertyType
        • requiredMessage
          String requiredMessage
        • state
          com.flowingcode.vaadin.addons.easyform.EasyForm.Field.State state
        • validators
          List<Validator<?>> validators