Class AbstractGridDelegate<C extends com.vaadin.flow.component.grid.Grid<E> & ListDataComponent<E> & HasActions,E>

java.lang.Object
io.jmix.flowui.component.delegate.AbstractComponentDelegate<C>
io.jmix.flowui.component.delegate.AbstractGridDelegate<C,E>
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
GridDelegate, TreeGridDelegate

public abstract class AbstractGridDelegate<C extends com.vaadin.flow.component.grid.Grid<E> & ListDataComponent<E> & HasActions,E> extends AbstractComponentDelegate<C> implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • metadataTools

      protected MetadataTools metadataTools
    • messageTools

      protected MessageTools messageTools
    • uiComponents

      protected UiComponents uiComponents
    • dataBinding

      protected GridDataItems<E> dataBinding
    • selectedItemChangeRegistration

      protected com.vaadin.flow.shared.Registration selectedItemChangeRegistration
    • selectionListenerRegistration

      protected com.vaadin.flow.shared.Registration selectionListenerRegistration
    • selectionListeners

      protected Set<com.vaadin.flow.data.selection.SelectionListener<com.vaadin.flow.component.grid.Grid<E>,E>> selectionListeners
  • Constructor Details

    • AbstractGridDelegate

      public AbstractGridDelegate(C component)
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • autowireDependencies

      protected void autowireDependencies()
    • initComponent

      protected void initComponent()
    • onSort

      protected void onSort(com.vaadin.flow.data.event.SortEvent<com.vaadin.flow.component.grid.Grid<E>,com.vaadin.flow.component.grid.GridSortOrder<E>> event)
    • getItems

      @Nullable public GridDataItems<E> getItems()
    • setItems

      public void setItems(@Nullable GridDataItems<E> gridDataItems)
    • getSingleSelectedItem

      @Nullable public E getSingleSelectedItem()
    • getSelectedItems

      public Set<E> getSelectedItems()
    • select

      public void select(E item)
    • select

      public void select(Collection<E> items)
    • deselect

      public void deselect(E item)
    • deselectAll

      public void deselectAll()
    • isMultiSelect

      public boolean isMultiSelect()
    • enableMultiSelect

      public void enableMultiSelect()
    • addSelectionListener

      public com.vaadin.flow.shared.Registration addSelectionListener(com.vaadin.flow.data.selection.SelectionListener<com.vaadin.flow.component.grid.Grid<E>,E> listener)
    • addColumn

      public com.vaadin.flow.component.grid.Grid.Column<E> addColumn(String key, MetaPropertyPath metaPropertyPath)
    • unbind

      protected void unbind()
    • setupEmptyDataProvider

      protected void setupEmptyDataProvider()
    • isSupportedDataItems

      protected boolean isSupportedDataItems(GridDataItems<E> gridDataItems)
    • onDataProviderSelectedItemChange

      protected void onDataProviderSelectedItemChange(GridDataItems.SelectedItemChangeEvent<E> event)
    • setupAutowiredColumns

      protected void setupAutowiredColumns(GridDataItems<E> gridDataItems)
    • getAutowiredProperties

      protected Collection<MetaPropertyPath> getAutowiredProperties(GridDataItems<E> gridDataItems)
    • addColumnInternal

      protected com.vaadin.flow.component.grid.Grid.Column<E> addColumnInternal(MetaPropertyPath metaPropertyPath)
    • addColumnInternal

      protected com.vaadin.flow.component.grid.Grid.Column<E> addColumnInternal(String key, MetaPropertyPath metaPropertyPath)
    • getValueProvider

      protected com.vaadin.flow.function.ValueProvider<E,?> getValueProvider(MetaPropertyPath metaPropertyPath)
    • initColumn

      protected void initColumn(com.vaadin.flow.component.grid.Grid.Column<E> column, MetaPropertyPath metaPropertyPath)
    • onSelectionChange

      protected void onSelectionChange(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<E>,E> event)
    • onSelectionModelChange

      public void onSelectionModelChange(com.vaadin.flow.data.selection.SelectionModel<com.vaadin.flow.component.grid.Grid<E>,E> selectionModel)
    • attachSelectionListener

      protected void attachSelectionListener()
    • detachSelectionListener

      protected void detachSelectionListener()
    • getSelectionModel

      protected com.vaadin.flow.component.grid.GridSelectionModel<E> getSelectionModel()