Uses of Interface
com.vaadin.flow.data.binder.Binder.BindingBuilder
Packages that use Binder.BindingBuilder
-
Uses of Binder.BindingBuilder in com.vaadin.collaborationengine
Classes in com.vaadin.collaborationengine that implement Binder.BindingBuilderModifier and TypeClassDescriptionprotected static class
CollaborationBinder.CollaborationBindingBuilderImpl<BEAN,
FIELDVALUE, TARGET> Methods in com.vaadin.collaborationengine that return Binder.BindingBuilderModifier and TypeMethodDescriptionprotected Binder.BindingBuilder<BEAN,
?> CollaborationBinder.configureBinding
(Binder.BindingBuilder<BEAN, ?> baseBinding, PropertyDefinition<BEAN, ?> definition) protected <FIELDVALUE,
TARGET>
Binder.BindingBuilder<BEAN,TARGET> CollaborationBinder.doCreateBinding
(HasValue<?, FIELDVALUE> field, Converter<FIELDVALUE, TARGET> converter, BindingValidationStatusHandler handler) <FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> Creates a new binding for the given field.<FIELDVALUE extends Collection<ELEMENT>,
ELEMENT>
Binder.BindingBuilder<BEAN,FIELDVALUE> CollaborationBinder.forField
(HasValue<?, FIELDVALUE> field, Class<? super FIELDVALUE> collectionType, Class<ELEMENT> elementType) Creates a new binding for the given (multi select) field whose value type is a collection.<FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> Creates a new binding for the given field and type.<FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> CollaborationBinder.forMemberField
(HasValue<?, FIELDVALUE> field) Creates a new binding for the given field.<FIELDVALUE extends Collection<ELEMENT>,
ELEMENT>
Binder.BindingBuilder<BEAN,FIELDVALUE> CollaborationBinder.forMemberField
(HasValue<?, FIELDVALUE> field, Class<? super FIELDVALUE> collectionType, Class<ELEMENT> elementType) Creates a new binding for the given (multi select) field whose value type is a collection.<FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> CollaborationBinder.forMemberField
(HasValue<?, FIELDVALUE> field, Class<FIELDVALUE> fieldType) Creates a new binding for the given field and type.protected <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET> CollaborationBinder.CollaborationBindingBuilderImpl.withConverter
(Converter<TARGET, NEWTARGET> converter, boolean resetNullRepresentation) CollaborationBinder.CollaborationBindingBuilderImpl.withNullRepresentation
(TARGET nullRepresentation) Methods in com.vaadin.collaborationengine with parameters of type Binder.BindingBuilderModifier and TypeMethodDescriptionprotected Binder.BindingBuilder<BEAN,
?> CollaborationBinder.configureBinding
(Binder.BindingBuilder<BEAN, ?> baseBinding, PropertyDefinition<BEAN, ?> definition) -
Uses of Binder.BindingBuilder in com.vaadin.flow.data.binder
Classes in com.vaadin.flow.data.binder that implement Binder.BindingBuilderModifier and TypeClassDescriptionprotected static class
Binder.BindingBuilderImpl<BEAN,
FIELDVALUE, TARGET> An internal implementation ofBindingBuilder
.Methods in com.vaadin.flow.data.binder that return Binder.BindingBuilderModifier and TypeMethodDescriptiondefault Binder.BindingBuilder<BEAN,
TARGET> Binder.BindingBuilder.asRequired()
Sets the field to be required.Binder.BindingBuilder.asRequired
(ErrorMessageProvider errorMessageProvider) Sets the field to be required.Binder.BindingBuilder.asRequired
(Validator<TARGET> customRequiredValidator) Sets the field to be required and delegates the required check to a custom validator.default Binder.BindingBuilder<BEAN,
TARGET> Binder.BindingBuilder.asRequired
(String errorMessage) Sets the field to be required.Binder.BindingBuilderImpl.asRequired
(ErrorMessageProvider errorMessageProvider) Binder.BindingBuilderImpl.asRequired
(Validator<TARGET> customRequiredValidator) protected Binder.BindingBuilder<BEAN,
?> BeanValidationBinder.configureBinding
(Binder.BindingBuilder<BEAN, ?> binding, PropertyDefinition<BEAN, ?> definition) protected Binder.BindingBuilder<BEAN,
?> Binder.configureBinding
(Binder.BindingBuilder<BEAN, ?> binding, PropertyDefinition<BEAN, ?> definition) Configures thebinding
with the property definitiondefinition
before it's being bound.protected <FIELDVALUE,
TARGET>
Binder.BindingBuilder<BEAN,TARGET> Binder.createBinding
(HasValue<?, FIELDVALUE> field, Converter<FIELDVALUE, TARGET> converter, BindingValidationStatusHandler handler) Creates a new binding with the given field.protected <FIELDVALUE,
TARGET>
Binder.BindingBuilder<BEAN,TARGET> Binder.doCreateBinding
(HasValue<?, FIELDVALUE> field, Converter<FIELDVALUE, TARGET> converter, BindingValidationStatusHandler handler) <FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> Creates a new binding for the given field.<FIELDVALUE>
Binder.BindingBuilder<BEAN,FIELDVALUE> Binder.forMemberField
(HasValue<?, FIELDVALUE> field) Creates a new binding for the given field.<NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET> Binder.BindingBuilder.withConverter
(Converter<TARGET, NEWTARGET> converter) Maps the binding to another data type using the givenConverter
.default <NEWTARGET>
Binder.BindingBuilder<BEAN,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<BEAN,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.<NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET> Binder.BindingBuilderImpl.withConverter
(Converter<TARGET, NEWTARGET> converter) protected <NEWTARGET>
Binder.BindingBuilder<BEAN,NEWTARGET> Binder.BindingBuilderImpl.withConverter
(Converter<TARGET, NEWTARGET> converter, boolean resetNullRepresentation) ImplementsBinder.BindingBuilderImpl.withConverter(Converter)
method with additional possibility to disable (reset) default null representation converter.Binder.BindingBuilder.withDefaultValidator
(boolean defaultValidatorEnabled) Sets up this binding to either enable or disable the default field validator (e.g.Binder.BindingBuilderImpl.withDefaultValidator
(boolean defaultValidatorEnabled) default Binder.BindingBuilder<BEAN,
TARGET> Binder.BindingBuilder.withEqualityPredicate
(SerializableBiPredicate<TARGET, TARGET> equalityPredicate) Sets theequalityPredicate
used to compare the current value of a field with its initial value.Binder.BindingBuilderImpl.withEqualityPredicate
(SerializableBiPredicate<TARGET, TARGET> equalityPredicate) default Binder.BindingBuilder<BEAN,
TARGET> Binder.BindingBuilder.withNullRepresentation
(TARGET nullRepresentation) Maps binding valuenull
to given null representation and back tonull
when converting back to model value.default Binder.BindingBuilder<BEAN,
TARGET> Binder.BindingBuilder.withStatusLabel
(HasText label) Sets the givenlabel
to show an error message if validation fails.Binder.BindingBuilder.withValidationStatusHandler
(BindingValidationStatusHandler handler) Sets aBindingValidationStatusHandler
to track validation status changes.Binder.BindingBuilderImpl.withValidationStatusHandler
(BindingValidationStatusHandler handler) Binder.BindingBuilder.withValidator
(Validator<? super TARGET> validator) Adds a validator to this binding.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 theValidator.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 theValidator.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 theValidator.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 theValidator.from(SerializablePredicate, String, ErrorLevel)
factory method.Binder.BindingBuilderImpl.withValidator
(Validator<? super TARGET> validator) Methods in com.vaadin.flow.data.binder with parameters of type Binder.BindingBuilderModifier and TypeMethodDescriptionprotected Binder.BindingBuilder<BEAN,
?> BeanValidationBinder.configureBinding
(Binder.BindingBuilder<BEAN, ?> binding, PropertyDefinition<BEAN, ?> definition) protected Binder.BindingBuilder<BEAN,
?> Binder.configureBinding
(Binder.BindingBuilder<BEAN, ?> binding, PropertyDefinition<BEAN, ?> definition) Configures thebinding
with the property definitiondefinition
before it's being bound.static boolean
RequiredFieldConfiguratorUtil.testConvertedDefaultValue
(Binder.BindingBuilder<?, ?> binding, Predicate<Object> predicate) Tests the converted default value of the provided binding builder if possible.