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 Details

    • dataProvider

      protected com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider
    • component

      protected C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?> component
    • suspendableBinding

      protected SuspendableBinding suspendableBinding
    • componentValueChangeRegistration

      protected com.vaadin.flow.shared.Registration componentValueChangeRegistration
    • itemsChangeRegistration

      protected com.vaadin.flow.shared.Registration itemsChangeRegistration
  • Constructor Details

    • DataViewBindingImpl

      public DataViewBindingImpl(C component, com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
  • Method Details

    • getComponent

      public C getComponent()
      Specified by:
      getComponent in interface DataViewBinding<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?>,V>
    • getDataProvider

      public com.vaadin.flow.data.provider.DataProvider<V,?> getDataProvider()
      Specified by:
      getDataProvider in interface DataViewBinding<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?>,V>
    • bind

      public void bind()
      Specified by:
      bind in interface JmixBinding
    • unbind

      public void unbind()
      Specified by:
      unbind in interface JmixBinding
    • addComponentValueChangeListener

      @Nullable protected com.vaadin.flow.shared.Registration addComponentValueChangeListener()
    • componentValueChanged

      protected void componentValueChanged(@Nullable V value)
    • onItemsChanged

      protected void onItemsChanged(EntityItems.ItemsChangeEvent<V> itemsChangeEvent)
    • contains

      protected boolean contains(List<V> items, Object value)
    • setSuspendableBinding

      public void setSuspendableBinding(@Nullable SuspendableBinding suspendableBinding)
      Specified by:
      setSuspendableBinding in interface SuspendableBindingAware