Package | Description |
---|---|
com.vaadin.flow.data.binder |
Modifier and Type | Class and Description |
---|---|
protected static class |
Binder.BindingBuilderImpl<BEAN,FIELDVALUE,TARGET>
An internal implementation of
BindingBuilder . |
Modifier and Type | Method and Description |
---|---|
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.asRequired()
Sets the field to be required.
|
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.asRequired(ErrorMessageProvider errorMessageProvider)
Sets the field to be required.
|
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilderImpl.asRequired(ErrorMessageProvider errorMessageProvider) |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.asRequired(String errorMessage)
Sets the field to be required.
|
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.asRequired(Validator<TARGET> customRequiredValidator)
Sets the field to be required and delegates the required check to a
custom validator.
|
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilderImpl.asRequired(Validator<TARGET> customRequiredValidator) |
protected Binder.BindingBuilder<BEAN,?> |
Binder.configureBinding(Binder.BindingBuilder<BEAN,?> binding,
PropertyDefinition<BEAN,?> definition)
Configures the
binding with the property definition
definition before it's being bound. |
protected Binder.BindingBuilder<BEAN,?> |
BeanValidationBinder.configureBinding(Binder.BindingBuilder<BEAN,?> binding,
PropertyDefinition<BEAN,?> definition) |
protected <FIELDVALUE,TARGET> |
Binder.createBinding(HasValue<?,FIELDVALUE> field,
Converter<FIELDVALUE,TARGET> converter,
BindingValidationStatusHandler handler)
Creates a new binding with the given field.
|
protected <FIELDVALUE,TARGET> |
Binder.doCreateBinding(HasValue<?,FIELDVALUE> field,
Converter<FIELDVALUE,TARGET> converter,
BindingValidationStatusHandler handler) |
<FIELDVALUE> |
Binder.forField(HasValue<?,FIELDVALUE> field)
Creates a new binding for the given field.
|
<FIELDVALUE> |
Binder.forMemberField(HasValue<?,FIELDVALUE> field)
Creates a new binding for the given field.
|
<NEWTARGET> |
Binder.BindingBuilder.withConverter(Converter<TARGET,NEWTARGET> converter)
Maps the binding to another data type using the given
Converter . |
<NEWTARGET> |
Binder.BindingBuilderImpl.withConverter(Converter<TARGET,NEWTARGET> converter) |
protected <NEWTARGET> |
Binder.BindingBuilderImpl.withConverter(Converter<TARGET,NEWTARGET> converter,
boolean resetNullRepresentation)
Implements
Binder.BindingBuilderImpl.withConverter(Converter) method with additional
possibility to disable (reset) default null representation converter. |
default <NEWTARGET> |
Binder.BindingBuilder.withConverter(SerializableFunction<TARGET,NEWTARGET> toModel,
SerializableFunction<NEWTARGET,TARGET> toPresentation)
Maps the binding to another data type using the mapping functions and
a possible exception as the error message.
|
default <NEWTARGET> |
Binder.BindingBuilder.withConverter(SerializableFunction<TARGET,NEWTARGET> toModel,
SerializableFunction<NEWTARGET,TARGET> toPresentation,
String errorMessage)
Maps the binding to another data type using the mapping functions and
the given error error message if a value cannot be converted to the
new target type.
|
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withNullRepresentation(TARGET nullRepresentation)
Maps binding value
null to given null representation and back
to null when converting back to model value. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withStatusLabel(HasText label)
Sets the given
label to show an error message if validation
fails. |
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidationStatusHandler(BindingValidationStatusHandler handler)
Sets a
BindingValidationStatusHandler to track validation
status changes. |
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilderImpl.withValidationStatusHandler(BindingValidationStatusHandler handler) |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
ErrorMessageProvider errorMessageProvider)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, ErrorMessageProvider)
factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
ErrorMessageProvider errorMessageProvider,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, ErrorMessageProvider, ErrorLevel)
factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
String message)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, String) factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
String message,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, String, ErrorLevel)
factory method. |
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(Validator<? super TARGET> validator)
Adds a validator to this binding.
|
Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilderImpl.withValidator(Validator<? super TARGET> validator) |
Modifier and Type | Method and Description |
---|---|
protected Binder.BindingBuilder<BEAN,?> |
Binder.configureBinding(Binder.BindingBuilder<BEAN,?> binding,
PropertyDefinition<BEAN,?> definition)
Configures the
binding with the property definition
definition before it's being bound. |
protected Binder.BindingBuilder<BEAN,?> |
BeanValidationBinder.configureBinding(Binder.BindingBuilder<BEAN,?> binding,
PropertyDefinition<BEAN,?> definition) |
static boolean |
RequiredFieldConfiguratorUtil.testConvertedDefaultValue(Binder.BindingBuilder<?,?> binding,
Predicate<Object> predicate)
Tests the converted default value of the provided binding builder if
possible.
|
Copyright © 2025. All rights reserved.