Class GroupDataGridAdapterProviderImpl
java.lang.Object
io.jmix.groupgridflowui.component.adapter.GroupDataGridAdapterProviderImpl
- All Implemented Interfaces:
GroupDataGridAdapterProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class GroupDataGridAdapterProviderImpl
extends Object
implements GroupDataGridAdapterProvider, org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> AbstractGroupDataGridAdapter<E>getAdapter(GroupListDataComponent<E> groupGrid) Returns an adapter for the given group grid component.booleanisSupported(GroupListDataComponent<?> groupGrid) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
GroupDataGridAdapterProviderImpl
public GroupDataGridAdapterProviderImpl()
-
-
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
-
isSupported
- Specified by:
isSupportedin interfaceGroupDataGridAdapterProvider- Parameters:
groupGrid- the group grid to check- Returns:
trueif the adapter supports the given group grid
-
getAdapter
@Nullable public <E> AbstractGroupDataGridAdapter<E> getAdapter(GroupListDataComponent<E> groupGrid) Description copied from interface:GroupDataGridAdapterProviderReturns an adapter for the given group grid component.- Specified by:
getAdapterin interfaceGroupDataGridAdapterProvider- Type Parameters:
E- the item type- Parameters:
groupGrid- the group grid to get an adapter for- Returns:
- an adapter instance or
nullif no adapter is available
-