Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addBeanValidator(Validator<? super T>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Adds a bean-level (cross-field) validator.
- addButton(String, ComponentEventListener<ClickEvent<Button>>, ButtonVariant...) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Adds an extra button to the button bar.
- addButton(String, Component, ComponentEventListener<ClickEvent<Button>>, ButtonVariant...) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Adds an extra button with an icon to the button bar.
- addStatusChangeListener(StatusChangeListener) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Adds a listener notified whenever the validation status of the form changes, which is the supported way to keep the surrounding UI ? a save button, a summary ? in step with the form.
- addValueChangeListener(HasValue.ValueChangeListener<? super HasValue.ValueChangeEvent<?>>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Adds a listener notified whenever the value of any bound field changes, whether or not the new value is valid.
- asRequired(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Makes this field required, showing the given message when it is empty.
C
- clear() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Clears all fields and detaches the current bean, so that the cleared values are never written to it: after this call
getBean()returnsnullandEasyForm.getValidBean()writes to a new instance. - com.flowingcode.vaadin.addons.easyform - package com.flowingcode.vaadin.addons.easyform
- configureComponent(String, HasValue<?, ?>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Called after a generated component has been created and its label, placeholder and helper text applied, for decoration that applies to every field ? style names, widths, theme variants.
- configureField(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the configuration wrapper for the field generated for the given property.
- configureField(String, Class<V>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the configuration wrapper for the field generated for the given property, typed to the given presentation value type.
- createComponent(String, Class<?>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Creates the component for a property that has no registered component factory.
- createLabel(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the label for a property whose label was not set explicitly through
EasyForm.Field.withLabel(String).
E
- EasyForm<T> - Class in com.flowingcode.vaadin.addons.easyform
-
A form component that is automatically generated from a POJO definition.
- EasyForm(Class<T>) - Constructor for class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Creates a form whose fields are generated from the properties of the given bean type.
- EasyForm.EasyFormI18n - Class in com.flowingcode.vaadin.addons.easyform
-
The texts of the button bar, following the Vaadin i18n convention.
- EasyForm.Field<V> - Class in com.flowingcode.vaadin.addons.easyform
-
Fluent configuration wrapper for a single field of an
EasyForm. - EasyFormI18n() - Constructor for class com.flowingcode.vaadin.addons.easyform.EasyForm.EasyFormI18n
- excluded() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Excludes this field from the layout and from the binding.
F
- field(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the component generated for the given property, which is what
EasyForm.configureField(String)wraps. - field(String, Class<V>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the component generated for the given property, typed to the given presentation value type:
- findField(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the configuration wrapper for the given property, or an empty optional if the property was not discovered.
G
- getFieldNames() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the names of the discovered properties, in the order the fields are displayed.
- getFields() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Returns the configuration wrappers of the discovered properties, in the order the fields are displayed.
- getValidBean() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Validates the form and returns the bean with the current field values written to it.
I
- includeProperty(PropertyDescriptor) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Decides whether a discovered property becomes a field.
R
- readBean(T) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Populates the fields with values from the given bean without live binding.
- readOnly() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Makes this field read-only: it is displayed and populated from the bean, but cannot be edited.
- removeButton(Button) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
- reset() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Resets the fields to the values of the last bean set through
EasyForm.setBean(Object)orEasyForm.readBean(Object), re-attaching it if it was detached byEasyForm.clear().
S
- setBean(T) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Binds the given bean to the form in edit mode: fields are populated from the bean and valid value changes are written through to it.
- setCancel(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.EasyFormI18n
-
Sets the text of the cancel button.
- setCancelAction(SerializableRunnable) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Sets the action invoked when the cancel button is clicked, and makes the cancel button visible.
- setCancelButtonVisible(boolean) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Overrides the visibility of the cancel button.
- setComponentFactory(Class<P>, SerializableSupplier<C>, Converter<V, P>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Registers a component factory for the given property type in this form instance, together with a converter that adapts the component presentation type to the property type, overriding the global defaults.
- setComponentFactory(Class<V>, SerializableSupplier<C>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Registers a component factory for the given value type in this form instance, overriding the global defaults.
- setDefaultComponentFactory(Class<P>, SerializableSupplier<C>, Converter<V, P>) - Static method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Registers a global default component factory for the given property type, together with a converter that adapts the component presentation type to the property type (e.g. a
NumberFieldwhoseDoublevalue is converted to aLongproperty). - setDefaultComponentFactory(Class<V>, SerializableSupplier<C>) - Static method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Registers a global default component factory for the given value type.
- setEnabled(boolean) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Enables or disables the form.
- setFieldOrder(String...) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Sets the display order of the fields.
- setI18n(EasyForm.EasyFormI18n) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Sets the texts of the button bar.
- setLabelGenerator(SerializableFunction<String, String>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Sets the function that generates the label of every field whose label was not set explicitly through
EasyForm.Field.withLabel(String), replacing the default derivation from the property name. - setResponsiveSteps(FormLayout.ResponsiveStep...) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Configures the responsive steps of the internal form layout.
- setSave(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.EasyFormI18n
-
Sets the text of the save button.
- setSaveAction(SerializableConsumer<T>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Sets the action invoked with the validated bean when the save button is clicked, and makes the save button visible.
- setSaveButtonVisible(boolean) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Overrides the visibility of the save button.
- setVisibleFields(String...) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Restricts the form to the given properties: every field that is not listed is excluded, and every listed field that was excluded is included again.
V
- validate() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm
-
Validates every bound field and returns the resulting status, which carries the individual error messages.
- visible() - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Makes this field visible and editable (the default state), reversing
EasyForm.Field.readOnly()orEasyForm.Field.excluded().
W
- withColSpan(int) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Sets the number of columns this field spans in the form layout.
- withComponent(C) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Replaces the auto-generated component of this field with the given one, and types this wrapper after the value type of the new component.
- withConverter(Converter<V, P>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Sets a converter that adapts the presentation value of the component to the model type of the bean property (e.g. a
Stringfield bound to anIntegerproperty). - withHelperText(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Sets the helper text of this field.
- withLabel(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Sets the label of this field, replacing the label generated from the property name.
- withPlaceholder(String) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Sets the placeholder of this field.
- withValidator(Validator<V>) - Method in class com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Adds a validator to this field.
All Classes and Interfaces|All Packages|Serialized Form