BEAN - the bean type, must match the Binder bean typeFIELDVALUE - the value type of the fieldTARGET - the target data type of the binding, matches the field type
unless a converter has been setprotected static class Binder.BindingImpl<BEAN,FIELDVALUE,TARGET> extends Object implements Binder.Binding<BEAN,TARGET>
Binding.| Constructor and Description |
|---|
BindingImpl(Binder.BindingBuilderImpl<BEAN,FIELDVALUE,TARGET> builder,
SerializableFunction<BEAN,TARGET> getter,
Setter<BEAN,TARGET> setter) |
| Modifier and Type | Method and Description |
|---|---|
protected ValueContext |
createValueContext()
Creates a value context from the current state of the binding and its
field.
|
protected Locale |
findLocale()
Finds an appropriate locale to be used in conversion and validation.
|
protected Binder<BEAN> |
getBinder()
Returns the
Binder connected to this Binding
instance. |
HasValue<FIELDVALUE> |
getField()
Gets the field the binding uses.
|
BindingValidationStatus<TARGET> |
validate()
Validates the field value and returns a
ValidationStatus
instance representing the outcome of the validation. |
public BindingImpl(Binder.BindingBuilderImpl<BEAN,FIELDVALUE,TARGET> builder, SerializableFunction<BEAN,TARGET> getter, Setter<BEAN,TARGET> setter)
public HasValue<FIELDVALUE> getField()
Binder.BindinggetField in interface Binder.Binding<BEAN,TARGET>protected Locale findLocale()
public BindingValidationStatus<TARGET> validate()
Binder.BindingValidationStatus
instance representing the outcome of the validation.validate in interface Binder.Binding<BEAN,TARGET>Binder.validate(),
Validator.apply(Object, ValueContext)protected ValueContext createValueContext()
Copyright © 2017 Vaadin Ltd. All rights reserved.