Package io.jmix.flowui.data.binding.impl
Class DataViewBindingImpl<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?>,V>
java.lang.Object
io.jmix.flowui.data.binding.impl.DataViewBindingImpl<C,V>
- All Implemented Interfaces:
DataViewBinding<C,
,V> JmixBinding
,SuspendableBindingAware
public class DataViewBindingImpl<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?>,V>
extends Object
implements DataViewBinding<C,V>, SuspendableBindingAware
-
Field Summary
Modifier and TypeFieldDescriptionprotected C
protected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.data.provider.DataProvider<V,
?> protected com.vaadin.flow.shared.Registration
protected SuspendableBinding
-
Constructor Summary
ConstructorDescriptionDataViewBindingImpl
(C component, com.vaadin.flow.data.provider.DataProvider<V, ?> dataProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.shared.Registration
void
bind()
protected void
componentValueChanged
(V value) protected boolean
com.vaadin.flow.data.provider.DataProvider<V,
?> protected void
onItemsChanged
(EntityItems.ItemsChangeEvent<V> itemsChangeEvent) void
setSuspendableBinding
(SuspendableBinding suspendableBinding) void
unbind()
-
Field Details
-
dataProvider
-
component
-
suspendableBinding
-
componentValueChangeRegistration
protected com.vaadin.flow.shared.Registration componentValueChangeRegistration -
itemsChangeRegistration
protected com.vaadin.flow.shared.Registration itemsChangeRegistration
-
-
Constructor Details
-
DataViewBindingImpl
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceDataViewBinding<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,
?, ?>, V>
-
getDataProvider
- Specified by:
getDataProvider
in interfaceDataViewBinding<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,
?, ?>, V>
-
bind
public void bind()- Specified by:
bind
in interfaceJmixBinding
-
unbind
public void unbind()- Specified by:
unbind
in interfaceJmixBinding
-
addComponentValueChangeListener
@Nullable protected com.vaadin.flow.shared.Registration addComponentValueChangeListener() -
componentValueChanged
-
onItemsChanged
-
contains
-
setSuspendableBinding
- Specified by:
setSuspendableBinding
in interfaceSuspendableBindingAware
-