Class AbstractGridLoader<T extends com.vaadin.flow.component.grid.Grid & EnhancedDataGrid & HasActions>
java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractComponentLoader<T>
io.jmix.flowui.xml.layout.loader.component.AbstractGridLoader<T>
- All Implemented Interfaces:
ComponentLoader<T>
- Direct Known Subclasses:
DataGridLoader,TreeDataGridLoader
public abstract class AbstractGridLoader<T extends com.vaadin.flow.component.grid.Grid & EnhancedDataGrid & HasActions>
extends AbstractComponentLoader<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordContains information about resizable, sortable, filterable column default values for the column.protected static classContains information about metaClass, data container, loader, fetch plan.Nested classes/interfaces inherited from interface io.jmix.flowui.xml.layout.ComponentLoader
ComponentLoader.AutowireTask, ComponentLoader.ComponentContext, ComponentLoader.Context, ComponentLoader.FragmentContext, ComponentLoader.InitTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected ActionLoaderSupportprotected ClassManagerstatic final Stringstatic final Stringprotected FetchPlanRepositoryImplprotected IconLoaderSupportprotected Subscriptionprotected Messagesprotected MetadataToolsprotected List<DataGridColumn<?>> Fields inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
applicationContext, componentLoaderSupport, context, element, factory, loaderResolver, loaderSupport, resultComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataGridColumn<?> addColumn(String key, MetaPropertyPath metaPropertyPath) protected voidaddContextMenuItem(Function<com.vaadin.flow.component.Component, com.vaadin.flow.component.grid.contextmenu.GridMenuItem<?>> menuItemGenerator, Consumer<com.vaadin.flow.component.Component> separatorConsumer, org.dom4j.Element childElement) protected DataGridColumn<?> addEmptyColumn(String key) protected voidconfigureParentViewReadOnlyChangeListener(com.vaadin.flow.component.button.Button editButton) protected com.vaadin.flow.component.grid.Grid.Column<?> createEditColumn(T resultComponent, org.dom4j.Element columnElement, com.vaadin.flow.component.grid.editor.Editor editor, MetaClass metaClass) protected AccessManagerprotected ActionLoaderSupportprotected Collection<String> getAppliedProperties(org.dom4j.Element columnsElement, @Nullable FetchPlan fetchPlan, MetaClass metaClass) protected ClassManagerprotected FetchPlanRepositoryImplprotected Messagesprotected MetadataToolsprotected @Nullable org.dom4j.ElementgetOverriddenColumn(List<org.dom4j.Element> columns, String property) protected RendererProvider.RendererCreationContextgetRendererCreationContext(MetaClass metaClass, @Nullable MetaPropertyPath metaPropertyPath, org.dom4j.Element element) protected IconLoaderSupportprotected AbstractGridLoader.GridDataHolderprotected voidinitMasterDataLoaderListener(CollectionPropertyContainer<?> collectionContainer) protected booleanisTransientProperty(@Nullable MetaPropertyPath metaPropertyPath) protected voidprotected voidloadAggregationInfo(org.dom4j.Element columnElement, DataGridColumn<?> column) protected voidloadColumn(T component, org.dom4j.Element element, MetaClass metaClass, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) protected voidloadColumnEditable(org.dom4j.Element element, DataGridColumn<?> column, @Nullable String property) protected voidloadColumnFilterable(org.dom4j.Element element, DataGridColumn<?> column, boolean defaultFilterable) protected voidloadColumnResizable(org.dom4j.Element element, DataGridColumn<?> column, boolean resizableColumns) protected voidloadColumns(T resultComponent, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected voidloadColumnsByInclude(T component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) protected voidloadColumnsElementChild(T resultComponent, org.dom4j.Element columnElement, MetaClass metaClass, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) protected voidloadColumnSortable(org.dom4j.Element element, boolean sortableColumns, DataGridColumn<?> column, @Nullable MetaPropertyPath metaPropertyPath) protected voidloadColumnSortable(org.dom4j.Element element, DataGridColumn<?> column, boolean sortableColumns) voidLoads component properties by XML definition.protected voidprotected voidloadContextMenuItem(GridContextMenuItemComponent<?> component, com.vaadin.flow.component.grid.contextmenu.GridMenuItem<?> menuItem, org.dom4j.Element itemElement) protected voidloadContextMenuItemAction(GridContextMenuItemComponent<?> component, org.dom4j.Element element) protected voidloadData()protected voidloadEditorActionsColumn(T resultComponent, org.dom4j.Element columnElement, MetaClass metaClass) protected voidloadEditorActionsColumns(T resultComponent, org.dom4j.Element columnsElement, MetaClass metaClass) protected @Nullable com.vaadin.flow.component.button.ButtonloadEditorButton(org.dom4j.Element columnElement, String buttonElementName) protected voidprotected @Nullable StringloadMessage(@Nullable String message) protected voidloadMetaClass(org.dom4j.Element element, Consumer<MetaClass> setter) protected voidprotected Optional<? extends com.vaadin.flow.data.renderer.Renderer> loadRenderer(org.dom4j.Element columnElement, MetaClass metaClass, @Nullable MetaPropertyPath metaPropertyPath) protected voidloadStrategyClassFqn(AggregationInfo aggregation, org.dom4j.Element element) protected voidprotected voidsetDefaultEditComponent(DataGridColumn<?> column, String property) protected voidsetSelectionMode(com.vaadin.flow.component.grid.Grid.SelectionMode selectionMode) protected abstract voidMethods inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
componentLoader, createComponent, getContext, getElement, getFactory, getLayoutLoader, getLoaderResolver, getLoaderSupport, getResultComponent, initComponent, loadBoolean, loadBoolean, loadDouble, loadDouble, loadEnum, loadEnum, loadId, loadInteger, loadInteger, loadResourceString, loadResourceString, loadResourceString, loadString, loadString, loadString, loadVisible, setApplicationContext, setContext, setElement, setFactory, setLoaderResolver, setLoaderSupport
-
Field Details
-
COLUMN_ELEMENT_NAME
- See Also:
-
EDITOR_ACTIONS_COLUMN_ELEMENT_NAME
- See Also:
-
actionLoaderSupport
-
metaDataTools
-
messages
-
masterDataLoaderPostLoadListener
-
fetchPlanRepository
-
classManager
-
accessManager
-
iconLoaderSupport
-
pendingToFilterableColumns
-
-
Constructor Details
-
AbstractGridLoader
public AbstractGridLoader()
-
-
Method Details
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoaderLoads component properties by XML definition. -
loadData
protected void loadData() -
loadMultiSort
protected void loadMultiSort() -
loadColumns
-
loadColumnsElementChild
protected void loadColumnsElementChild(T resultComponent, org.dom4j.Element columnElement, MetaClass metaClass, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) -
loadEditorActionsColumns
-
loadEditorActionsColumn
-
configureParentViewReadOnlyChangeListener
protected void configureParentViewReadOnlyChangeListener(com.vaadin.flow.component.button.Button editButton) -
createEditColumn
-
loadEditorButton
protected @Nullable com.vaadin.flow.component.button.Button loadEditorButton(org.dom4j.Element columnElement, String buttonElementName) -
loadColumnsByInclude
protected void loadColumnsByInclude(T component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) -
loadColumn
protected void loadColumn(T component, org.dom4j.Element element, MetaClass metaClass, AbstractGridLoader.ColumnDefaultValues columnDefaultValues) -
addEmptyColumn
-
loadRenderer
protected Optional<? extends com.vaadin.flow.data.renderer.Renderer> loadRenderer(org.dom4j.Element columnElement, MetaClass metaClass, @Nullable MetaPropertyPath metaPropertyPath) -
getRendererCreationContext
protected RendererProvider.RendererCreationContext getRendererCreationContext(MetaClass metaClass, @Nullable MetaPropertyPath metaPropertyPath, org.dom4j.Element element) -
loadColumnSortable
protected void loadColumnSortable(org.dom4j.Element element, boolean sortableColumns, DataGridColumn<?> column, @Nullable MetaPropertyPath metaPropertyPath) -
loadColumnSortable
protected void loadColumnSortable(org.dom4j.Element element, DataGridColumn<?> column, boolean sortableColumns) -
loadColumnResizable
protected void loadColumnResizable(org.dom4j.Element element, DataGridColumn<?> column, boolean resizableColumns) -
loadColumnFilterable
protected void loadColumnFilterable(org.dom4j.Element element, DataGridColumn<?> column, boolean defaultFilterable) -
loadColumnEditable
protected void loadColumnEditable(org.dom4j.Element element, DataGridColumn<?> column, @Nullable String property) -
setSelectionMode
protected void setSelectionMode(com.vaadin.flow.component.grid.Grid.SelectionMode selectionMode) -
loadAggregationInfo
-
loadStrategyClassFqn
-
setDefaultEditComponent
-
addColumn
-
getAppliedProperties
protected Collection<String> getAppliedProperties(org.dom4j.Element columnsElement, @Nullable FetchPlan fetchPlan, MetaClass metaClass) -
getOverriddenColumn
-
loadMetaClass
-
initMasterDataLoaderListener
-
initDataGridDataHolder
-
onMasterDataLoaderPostLoad
-
getFetchPlanRepository
-
getActionLoaderSupport
-
getMetaDataTools
-
getMessages
-
getClassManager
-
getAccessManager
-
iconLoaderSupport
-
loadMessage
-
setupDataProvider
-
loadContextMenu
protected void loadContextMenu() -
loadEmptyStateComponent
protected void loadEmptyStateComponent() -
addContextMenuItem
-
loadContextMenuItemAction
protected void loadContextMenuItemAction(GridContextMenuItemComponent<?> component, org.dom4j.Element element) -
isTransientProperty
-
loadActions
protected void loadActions()
-