Class AbstractDataViewDelegate<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?> & com.vaadin.flow.data.provider.HasListDataView<V,?> & SupportsDataProvider<V>,V>

java.lang.Object
io.jmix.flowui.component.delegate.AbstractComponentDelegate<C>
io.jmix.flowui.component.delegate.AbstractDataViewDelegate<C,V>
All Implemented Interfaces:
ValueBindingChangeObserver<Object>, Consumer<ValueBindingDelegate.ValueBindingChangeEvent<Object>>
Direct Known Subclasses:
DataViewDelegate

public abstract class AbstractDataViewDelegate<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?> & com.vaadin.flow.data.provider.HasListDataView<V,?> & SupportsDataProvider<V>,V> extends AbstractComponentDelegate<C> implements ValueBindingChangeObserver<Object>
  • Field Details

    • binding

      protected DataViewBinding<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?> & com.vaadin.flow.data.provider.HasListDataView<V,?> & SupportsDataProvider<V>,V> binding
    • dataChangeRegistration

      protected com.vaadin.flow.shared.Registration dataChangeRegistration
    • eventBus

      protected EventBus eventBus
  • Constructor Details

    • AbstractDataViewDelegate

      public AbstractDataViewDelegate(C component)
  • Method Details

    • bind

      public void bind(@Nullable com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
    • getDataProvider

      @Nullable public com.vaadin.flow.data.provider.DataProvider<V,?> getDataProvider()
    • valueBindingChanged

      public void valueBindingChanged(ValueBindingDelegate.ValueBindingChangeEvent<?> event)
      Specified by:
      valueBindingChanged in interface ValueBindingChangeObserver<C extends com.vaadin.flow.component.Component & com.vaadin.flow.data.provider.HasDataView<V,?,?> & com.vaadin.flow.data.provider.HasListDataView<V,?> & SupportsDataProvider<V>>
    • setupItems

      protected void setupItems(EntityValueSource<?,?> valueSource)
    • setItems

      public void setItems(CollectionContainer<V> container)
    • setItems

      public void setItems(Class<V> itemsEnum)
    • addDataRefreshListener

      public com.vaadin.flow.shared.Registration addDataRefreshListener(Consumer<com.vaadin.flow.data.provider.DataChangeEvent.DataRefreshEvent<V>> listener)
    • unsubscribeDataChangeListener

      protected void unsubscribeDataChangeListener()
    • subscribeDataChangeListener

      protected void subscribeDataChangeListener(com.vaadin.flow.data.provider.DataProvider<V,?> dataProvider)
    • onDataProviderDataChange

      protected void onDataProviderDataChange(com.vaadin.flow.data.provider.DataChangeEvent<V> event)
    • getEventBus

      protected EventBus getEventBus()