Class AbstractGridDelegate<C extends com.vaadin.flow.component.grid.Grid<E> & ListDataComponent<E> & HasActions,E,ITEMS extends DataGridItems<E>>  
java.lang.Object
io.jmix.flowui.component.delegate.AbstractComponentDelegate<C>
io.jmix.flowui.component.delegate.AbstractGridDelegate<C,E,ITEMS>  
- 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,ITEMS extends DataGridItems<E>>  
extends AbstractComponentDelegate<C>
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ITEMSprotected MessageToolsprotected MetadataToolsprotected com.vaadin.flow.shared.Registrationprotected Set<com.vaadin.flow.data.selection.SelectionListener<com.vaadin.flow.component.grid.Grid<E>,E>> protected UiComponentsFields inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
component - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.grid.Grid.Column<E>addColumn(String key, MetaPropertyPath metaPropertyPath) protected com.vaadin.flow.component.grid.Grid.Column<E>addColumnInternal(MetaPropertyPath metaPropertyPath) protected com.vaadin.flow.component.grid.Grid.Column<E>addColumnInternal(String key, MetaPropertyPath metaPropertyPath) com.vaadin.flow.shared.RegistrationaddSelectionListener(com.vaadin.flow.data.selection.SelectionListener<com.vaadin.flow.component.grid.Grid<E>, E> listener) voidprotected voidprotected voidprotected voidbind(DataGridItems<E> dataGridItems) voidvoidprotected voidvoidprotected Collection<MetaPropertyPath>getAutowiredProperties(ITEMS dataGridItems) getItems()protected com.vaadin.flow.component.grid.GridSelectionModel<E>protected com.vaadin.flow.function.ValueProvider<E,?> getValueProvider(MetaPropertyPath metaPropertyPath) protected voidinitColumn(com.vaadin.flow.component.grid.Grid.Column<E> column, MetaPropertyPath metaPropertyPath) protected voidbooleanprotected voidnotifyDataProviderSelectionChanged(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<E>, E> ignore) protected voidonSelectionChange(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<E>, E> event) voidonSelectionModelChange(com.vaadin.flow.data.selection.SelectionModel<com.vaadin.flow.component.grid.Grid<E>, E> selectionModel) protected voidonSort(com.vaadin.flow.data.event.SortEvent<com.vaadin.flow.component.grid.Grid<E>, com.vaadin.flow.component.grid.GridSortOrder<E>> event) voidvoidselect(Collection<E> items) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidprotected voidsetupAutowiredColumns(ITEMS dataGridItems) protected voidprotected voidunbind()Methods inherited from class io.jmix.flowui.component.delegate.AbstractComponentDelegate
getComponent 
- 
Field Details
- 
applicationContext
protected org.springframework.context.ApplicationContext applicationContext - 
metadataTools
 - 
messageTools
 - 
uiComponents
 - 
dataGridItems
 - 
selectionListenerRegistration
protected com.vaadin.flow.shared.Registration selectionListenerRegistration - 
selectionListeners
 
 - 
 - 
Constructor Details
- 
AbstractGridDelegate
 
 - 
 - 
Method Details
- 
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
 setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
 org.springframework.beans.BeansException
 - 
afterPropertiesSet
- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
 Exception
 - 
autowireDependencies
protected void autowireDependencies() - 
initComponent
protected void initComponent() - 
getItems
 - 
setItems
 - 
bind
 - 
unbind
protected void unbind() - 
getSingleSelectedItem
 - 
getSelectedItems
 - 
select
 - 
select
 - 
deselect
 - 
deselectAll
public void deselectAll() - 
isMultiSelect
public boolean isMultiSelect() - 
enableMultiSelect
public void enableMultiSelect() - 
addSelectionListener
 - 
addColumn
public com.vaadin.flow.component.grid.Grid.Column<E> addColumn(String key, MetaPropertyPath metaPropertyPath)  - 
setupEmptyDataProvider
protected void setupEmptyDataProvider() - 
setupAutowiredColumns
 - 
getAutowiredProperties
 - 
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
 - 
onSelectionModelChange
 - 
attachSelectionListener
protected void attachSelectionListener() - 
detachSelectionListener
protected void detachSelectionListener() - 
getSelectionModel
 - 
onSort
 - 
notifyDataProviderSelectionChanged
 
 -