Package io.jmix.flowui.data.binding.impl
Class AbstractValueBinding<V>
java.lang.Object
io.jmix.flowui.data.binding.impl.AbstractValueBinding<V>
- All Implemented Interfaces:
JmixBinding
,ValueBinding<V>
- Direct Known Subclasses:
FieldValueBinding
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected com.vaadin.flow.component.HasValue<?,
V> protected com.vaadin.flow.shared.Registration
protected MessageTools
protected MetadataTools
protected javax.validation.Validator
protected ValueSource<V>
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
-
Constructor Summary
ConstructorDescriptionAbstractValueBinding
(ValueSource<V> valueSource, com.vaadin.flow.component.HasValue<?, V> component) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
protected com.vaadin.flow.shared.Registration
addComponentValueChangeListener
(Runnable listener) void
bind()
com.vaadin.flow.component.HasValue<?,
V> protected abstract V
protected void
initBeanValidator
(SupportsValidation component, MetaPropertyPath mpp) protected void
initRequired
(com.vaadin.flow.component.HasValue<?, V> component, MetaPropertyPath metaPropertyPath) protected void
protected void
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected abstract void
setComponentValue
(V value) void
setMessageTools
(MessageTools messageTools) void
setMetadataTools
(MetadataTools metadataTools) void
setValidator
(javax.validation.Validator validator) protected void
setValueToSource
(V value) void
unbind()
protected void
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messageTools
-
metadataTools
-
validator
protected javax.validation.Validator validator -
valueSource
-
component
-
componentValueChangeRegistration
protected com.vaadin.flow.shared.Registration componentValueChangeRegistration -
valueSourceValueChangeSubscription
protected com.vaadin.flow.shared.Registration valueSourceValueChangeSubscription -
valueSourceStateChangeSubscription
protected com.vaadin.flow.shared.Registration valueSourceStateChangeSubscription
-
-
Constructor Details
-
AbstractValueBinding
public AbstractValueBinding(ValueSource<V> valueSource, com.vaadin.flow.component.HasValue<?, V> component)
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setMessageTools
-
setMetadataTools
-
setValidator
@Autowired public void setValidator(javax.validation.Validator validator) -
getValueSource
- Specified by:
getValueSource
in interfaceValueBinding<V>
-
getComponent
- Specified by:
getComponent
in interfaceValueBinding<V>
-
bind
public void bind()- Specified by:
bind
in interfaceJmixBinding
-
valueSourceStateChanged
-
onValueSourceValueChange
-
onComponentValueChange
protected void onComponentValueChange() -
unbind
public void unbind()- Specified by:
unbind
in interfaceJmixBinding
-
activate
public void activate()- Specified by:
activate
in interfaceValueBinding<V>
-
setValueToSource
-
initRequired
protected void initRequired(com.vaadin.flow.component.HasValue<?, V> component, MetaPropertyPath metaPropertyPath) -
initBeanValidator
-
getComponentValue
-
setComponentValue
-
addComponentValueChangeListener
-