Uses of Class
com.flowingcode.vaadin.addons.easyform.EasyForm.Field
-
Uses of EasyForm.Field in com.flowingcode.vaadin.addons.easyform
Methods in com.flowingcode.vaadin.addons.easyform that return EasyForm.FieldModifier and TypeMethodDescriptionEasyForm.Field.asRequired(String errorMessage) Makes this field required, showing the given message when it is empty.EasyForm.configureField(String propertyName) Returns the configuration wrapper for the field generated for the given property.<V> EasyForm.Field<V>EasyForm.configureField(String propertyName, Class<V> valueType) Returns the configuration wrapper for the field generated for the given property, typed to the given presentation value type.EasyForm.Field.excluded()Excludes this field from the layout and from the binding.EasyForm.Field.readOnly()Makes this field read-only: it is displayed and populated from the bean, but cannot be edited.EasyForm.Field.visible()Makes this field visible and editable (the default state), reversingreadOnly()orexcluded().EasyForm.Field.withColSpan(int colSpan) Sets the number of columns this field spans in the form layout.<W,C extends Component & HasValue<?, W>>
EasyForm.Field<W>EasyForm.Field.withComponent(C component) Replaces the auto-generated component of this field with the given one, and types this wrapper after the value type of the new component.<P> EasyForm.Field<V>EasyForm.Field.withConverter(Converter<V, P> converter) Sets a converter that adapts the presentation value of the component to the model type of the bean property (e.g. aStringfield bound to anIntegerproperty).EasyForm.Field.withHelperText(String helperText) Sets the helper text of this field.Sets the label of this field, replacing the label generated from the property name.EasyForm.Field.withPlaceholder(String placeholder) Sets the placeholder of this field.EasyForm.Field.withValidator(Validator<V> validator) Adds a validator to this field.Methods in com.flowingcode.vaadin.addons.easyform that return types with arguments of type EasyForm.FieldModifier and TypeMethodDescriptionReturns the configuration wrapper for the given property, or an empty optional if the property was not discovered.List<EasyForm.Field<?>>EasyForm.getFields()Returns the configuration wrappers of the discovered properties, in the order the fields are displayed.