| Package | Description |
|---|---|
| com.vaadin.flow.data.binder |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Binder.BindingImpl<BEAN,FIELDVALUE,TARGET>
An internal implementation of
Binding. |
| Modifier and Type | Method and Description |
|---|---|
<FIELDVALUE> |
Binder.bind(HasValue<?,FIELDVALUE> field,
String propertyName)
Binds the given field to the property with the given name.
|
<FIELDVALUE> |
Binder.bind(HasValue<?,FIELDVALUE> field,
ValueProvider<BEAN,FIELDVALUE> getter,
Setter<BEAN,FIELDVALUE> setter)
Binds a field to a bean property represented by the given getter and
setter pair.
|
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilder.bind(String propertyName)
Completes this binding by connecting the field to the property with
the given name.
|
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilderImpl.bind(String propertyName) |
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilder.bind(ValueProvider<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter)
Completes this binding using the given getter and setter functions
representing a backing bean property.
|
Binder.Binding<BEAN,TARGET> |
Binder.BindingBuilderImpl.bind(ValueProvider<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter) |
Binder.Binding<?,TARGET> |
BindingValidationStatus.getBinding()
Gets the source binding of the validation status.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<Binder.Binding<BEAN,?>,Object> |
Binder.getBeanState(BEAN bean,
Collection<Binder.Binding<BEAN,?>> bindings)
Stores the state of the given bean.
|
Optional<Binder.Binding<BEAN,?>> |
Binder.getBinding(String propertyName)
Gets the binding for a property name.
|
| Modifier and Type | Method and Description |
|---|---|
static <TARGET> BindingValidationStatus<TARGET> |
BindingValidationStatus.createUnresolvedStatus(Binder.Binding<?,TARGET> source)
Convenience method for creating a
BindingValidationStatus.Status.UNRESOLVED validation
status for the given binding. |
protected void |
Binder.handleFieldValueChange(Binder.Binding<BEAN,?> binding)
Informs the Binder that a value in Binding was changed.
|
void |
Binder.removeBinding(Binder.Binding<BEAN,?> binding)
Removes the given Binding from this Binder.
|
protected void |
Binder.removeBindingInternal(Binder.Binding<BEAN,?> binding)
Removes (internally) the
Binding from the bound properties map
(if present) and from the list of Bindings. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<Binder.Binding<BEAN,?>,Object> |
Binder.getBeanState(BEAN bean,
Collection<Binder.Binding<BEAN,?>> bindings)
Stores the state of the given bean.
|
protected void |
Binder.restoreBeanState(BEAN bean,
Map<Binder.Binding<BEAN,?>,Object> oldValues)
Restores the state of the bean from the given values.
|
| Constructor and Description |
|---|
BindingValidationStatus(Result<TARGET> result,
Binder.Binding<?,TARGET> source)
Creates a new status change event.
|
Copyright © 2020. All rights reserved.