Uses of Class
com.flowingcode.vaadin.addons.easyform.EasyForm
-
Uses of EasyForm in com.flowingcode.vaadin.addons.easyform
Methods in com.flowingcode.vaadin.addons.easyform that return EasyFormModifier and TypeMethodDescriptionEasyForm.addBeanValidator(Validator<? super T> validator) Adds a bean-level (cross-field) validator.EasyForm.clear()Clears all fields and detaches the current bean, so that the cleared values are never written to it: after this callgetBean()returnsnullandgetValidBean()writes to a new instance.Populates the fields with values from the given bean without live binding.EasyForm.removeButton(Button button) EasyForm.reset()Resets the fields to the values of the last bean set throughsetBean(Object)orreadBean(Object), re-attaching it if it was detached byclear().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.EasyForm.setCancelAction(SerializableRunnable cancelAction) Sets the action invoked when the cancel button is clicked, and makes the cancel button visible.EasyForm.setCancelButtonVisible(boolean visible) Overrides the visibility of the cancel button.EasyForm.setFieldOrder(String... propertyNames) Sets the display order of the fields.EasyForm.setI18n(EasyForm.EasyFormI18n i18n) Sets the texts of the button bar.EasyForm.setLabelGenerator(SerializableFunction<String, String> labelGenerator) Sets the function that generates the label of every field whose label was not set explicitly throughEasyForm.Field.withLabel(String), replacing the default derivation from the property name.EasyForm.setResponsiveSteps(FormLayout.ResponsiveStep... steps) Configures the responsive steps of the internal form layout.EasyForm.setSaveAction(SerializableConsumer<T> saveAction) Sets the action invoked with the validated bean when the save button is clicked, and makes the save button visible.EasyForm.setSaveButtonVisible(boolean visible) Overrides the visibility of the save button.EasyForm.setVisibleFields(String... propertyNames) 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.