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 classContains information about metaClass, data container, loader, fetch plan.Nested classes/interfaces inherited from interface io.jmix.flowui.xml.layout.ComponentLoader
ComponentLoader.ComponentContext, ComponentLoader.Context, ComponentLoader.InitTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionLoaderSupportstatic final Stringstatic final Stringprotected FetchPlanRepositoryImplprotected Subscriptionprotected MetadataToolsFields inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
applicationContext, componentLoaderSupport, context, element, environment, factory, loaderResolver, loaderSupport, resultComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.grid.Grid.ColumnaddColumn(String key, MetaPropertyPath metaPropertyPath) protected com.vaadin.flow.component.grid.Grid.Column<?>createEditColumn(T resultComponent, org.dom4j.Element columnElement, com.vaadin.flow.component.grid.editor.Editor editor) protected ActionLoaderSupportprotected Collection<String>getAppliedProperties(org.dom4j.Element columnsElement, FetchPlan fetchPlan, MetaClass metaClass) protected FetchPlanRepositoryImplprotected MetadataToolsprotected org.dom4j.ElementgetOverriddenColumn(List<org.dom4j.Element> columns, String property) protected AbstractGridLoader.GridDataHolderprotected voidinitMasterDataLoaderListener(CollectionPropertyContainer<?> collectionContainer) protected voidloadColumn(T component, org.dom4j.Element element, MetaClass metaClass) protected voidloadColumnEditable(org.dom4j.Element element, com.vaadin.flow.component.grid.Grid.Column<?> column, String property) protected voidloadColumns(T resultComponent, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected voidloadColumnsByInclude(T component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected voidloadColumnsElementChild(T resultComponent, org.dom4j.Element columnElement, MetaClass metaClass) voidLoads component properties by XML definition.protected voidloadData()protected voidloadEditorActionsColumn(T resultComponent, org.dom4j.Element columnElement) protected voidloadEditorActionsColumns(T resultComponent, org.dom4j.Element columnsElement) protected com.vaadin.flow.component.button.ButtonloadEditorButton(org.dom4j.Element columnElement, String buttonElementName) protected voidloadMetaClass(org.dom4j.Element element, Consumer<MetaClass> setter) protected voidprotected voidsetDefaultEditComponent(com.vaadin.flow.component.grid.Grid.Column<?> column, String property) protected abstract voidMethods inherited from class io.jmix.flowui.xml.layout.loader.AbstractComponentLoader
componentLoader, createComponent, getComponentContext, getContext, getElement, getFactory, getLayoutLoader, getLoaderResolver, getLoaderSupport, getResultComponent, initComponent, loadBoolean, loadBoolean, loadDouble, loadDouble, loadEnum, loadEnum, loadId, loadInteger, loadInteger, loadResourceString, loadResourceString, loadString, loadString, loadVisible, setApplicationContext, setContext, setElement, setEnvironment, setFactory, setLoaderResolver, setLoaderSupport
-
Field Details
-
COLUMN_ELEMENT_NAME
- See Also:
-
EDITOR_ACTIONS_COLUMN_ELEMENT_NAME
- See Also:
-
actionLoaderSupport
-
metaDataTools
-
masterDataLoaderPostLoadListener
-
fetchPlanRepository
-
-
Constructor Details
-
AbstractGridLoader
public AbstractGridLoader()
-
-
Method Details
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoaderLoads component properties by XML definition.- See Also:
-
loadData
protected void loadData() -
loadColumns
-
loadColumnsElementChild
-
loadEditorActionsColumns
-
loadEditorActionsColumn
-
createEditColumn
protected com.vaadin.flow.component.grid.Grid.Column<?> createEditColumn(T resultComponent, org.dom4j.Element columnElement, com.vaadin.flow.component.grid.editor.Editor editor) -
loadEditorButton
@Nullable protected com.vaadin.flow.component.button.Button loadEditorButton(org.dom4j.Element columnElement, String buttonElementName) -
loadColumnsByInclude
-
loadColumn
-
loadColumnEditable
protected void loadColumnEditable(org.dom4j.Element element, com.vaadin.flow.component.grid.Grid.Column<?> column, String property) -
setDefaultEditComponent
protected void setDefaultEditComponent(com.vaadin.flow.component.grid.Grid.Column<?> column, String property) -
addColumn
protected com.vaadin.flow.component.grid.Grid.Column addColumn(String key, MetaPropertyPath metaPropertyPath) -
getAppliedProperties
protected Collection<String> getAppliedProperties(org.dom4j.Element columnsElement, @Nullable FetchPlan fetchPlan, MetaClass metaClass) -
getOverriddenColumn
-
loadMetaClass
-
initMasterDataLoaderListener
-
initDataGridDataHolder
-
onMasterDataLoaderPostLoad
-
getFetchPlanRepository
-
getActionLoaderSupport
-
getMetaDataTools
-
setupDataProvider
-