Package io.jmix.ui.xml.layout.loader
Class AbstractDataGridLoader<T extends DataGrid>
java.lang.Object
io.jmix.ui.xml.layout.loader.AbstractComponentLoader<T>
io.jmix.ui.xml.layout.loader.ActionsHolderLoader<T>
io.jmix.ui.xml.layout.loader.AbstractDataGridLoader<T>
- All Implemented Interfaces:
ComponentLoader<T>
- Direct Known Subclasses:
DataGridLoader
,TreeDataGridLoader
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Contains information about metaclass, data container, loader, fetch plan.Nested classes/interfaces inherited from interface io.jmix.ui.xml.layout.ComponentLoader
ComponentLoader.ComponentContext, ComponentLoader.CompositeComponentContext, ComponentLoader.Context, ComponentLoader.InitTask, ComponentLoader.InjectTask
-
Field Summary
Modifier and TypeFieldDescriptionprotected ComponentLoader
protected Subscription
protected org.dom4j.Element
protected static final Map<String,
Class<? extends DataGrid.Renderer>> protected DataGrid.SortDirection
protected String
Fields inherited from class io.jmix.ui.xml.layout.loader.AbstractComponentLoader
applicationContext, context, element, environment, factory, layoutLoaderConfig, loaderResolver, loaderSupport, resultComponent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createButtonsPanel
(HasButtonsPanel dataGrid, org.dom4j.Element element) void
Creates result component by XML-element and loads its Id.protected abstract T
protected DataGridItems
createContainerDataGridSource
(CollectionContainer container) protected DataGridItems
createEmptyDataGridItems
(MetaClass metaClass) protected Collection<String>
getAppliedProperties
(org.dom4j.Element columnsElement, FetchPlan fetchPlan, MetaClass metaClass) protected Metadata
protected MetadataTools
protected org.dom4j.Element
getOverriddenColumn
(List<org.dom4j.Element> columns, String property) protected FetchPlanRepository
protected void
initMasterDataLoaderListener
(CollectionPropertyContainer collectionContainer) protected void
loadAggregatable
(DataGrid component, org.dom4j.Element element) protected void
loadAggregation
(DataGrid.Column column, org.dom4j.Element columnElement) protected void
loadAggregationPosition
(DataGrid component, org.dom4j.Element element) protected void
loadAggregationType
(AggregationInfo aggregation, org.dom4j.Element aggregationElement) protected void
loadBodyRowHeight
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadButtonsPanel
(DataGrid component) protected String
loadCaption
(org.dom4j.Element element) protected DataGrid.Column
loadColumn
(DataGrid component, org.dom4j.Element element, MetaClass metaClass) protected void
loadColumnResizeMode
(DataGrid component, org.dom4j.Element element) protected List<DataGrid.Column>
loadColumns
(DataGrid component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan view) protected List<DataGrid.Column>
loadColumnsByInclude
(DataGrid component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected void
loadColumnsHidingAllowed
(DataGrid component, org.dom4j.Element element) protected void
loadColumnSort
(DataGrid component, DataGrid.Column column, String sort) protected void
loadColumnVisualDisplay
(DataGrid.Column column, org.dom4j.Element columnElement) void
Loads component properties by XML definition.protected void
loadContextMenuEnabled
(DataGrid dataGrid, org.dom4j.Element element) protected void
protected void
loadEditorBuffered
(DataGrid component, org.dom4j.Element element) protected void
loadEditorCancelCaption
(DataGrid component, org.dom4j.Element element) protected void
loadEditorCrossFieldEnabled
(DataGrid component, org.dom4j.Element element) protected void
loadEditorEnabled
(DataGrid component, org.dom4j.Element element) protected void
loadEditorSaveCaption
(DataGrid component, org.dom4j.Element element) protected void
loadEmptyStateLinkMessage
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadEmptyStateMessage
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadFooterRowHeight
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadFooterVisible
(DataGrid component, org.dom4j.Element element) protected void
loadFormatPattern
(org.dom4j.Element rendererElement, DataGrid.HasDateTimeFormatter renderer) protected void
loadFormatString
(org.dom4j.Element rendererElement, DataGrid.HasFormatString renderer) protected void
loadFrozenColumnCount
(DataGrid component, org.dom4j.Element element) protected void
loadHeaderRowHeight
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadHeaderVisible
(DataGrid component, org.dom4j.Element element) protected void
loadNullRepresentation
(org.dom4j.Element rendererElement, DataGrid.HasNullRepresentation renderer) protected void
loadPagination
(DataGrid component, org.dom4j.Element element) protected DataGrid.Renderer
loadRenderer
(org.dom4j.Element columnElement) protected DataGrid.Renderer
loadRendererByClass
(org.dom4j.Element rendererElement, Class<? extends DataGrid.Renderer> rendererClass) protected void
loadReorderingAllowed
(DataGrid component, org.dom4j.Element element) protected void
loadSelectionMode
(DataGrid component, org.dom4j.Element element) protected Integer
loadSizeInPx
(org.dom4j.Element element, String propertyName) protected void
loadSortable
(DataGrid component, org.dom4j.Element element) protected void
loadStrategyClass
(AggregationInfo aggregation, org.dom4j.Element aggregationElement) protected void
loadTextSelectionEnabled
(DataGrid dataGrid, org.dom4j.Element element) protected void
loadValueDescription
(DataGrid.Column column, org.dom4j.Element aggregationElement) protected void
protected void
protected void
Methods inherited from class io.jmix.ui.xml.layout.loader.ActionsHolderLoader
loadDeclarativeAction
Methods inherited from class io.jmix.ui.xml.layout.loader.AbstractComponentLoader
assignFrame, assignXmlDescriptor, findComponent, getActions, getClassManager, getComponentContext, getCompositeComponentContext, getContext, getElement, getFactory, getIconPath, getLayoutLoader, getLayoutLoader, getLayoutLoaderConfig, getLoaderResolver, getLoaderSupport, getMessages, getMessageTools, getMeterRegistry, getParentDataContainer, getProperties, getResultComponent, getTheme, initAction, loadAction, loadActionConstraint, loadActionId, loadActions, loadAlign, loadBoolean, loadBoolean, loadBorder, loadCaption, loadCaptionAsHtml, loadCollapsible, loadContainer, loadContainer, loadContextHelp, loadCss, loadData, loadDeclarativeActionByType, loadDeclarativeActionDefault, loadDescription, loadDescriptionAsHtml, loadEditable, loadEnable, loadEnum, loadEnum, loadFocusable, loadFormatter, loadFormatter, loadHeight, loadHeight, loadHtmlSanitizerEnabled, loadIcon, loadId, loadInputPrompt, loadInteger, loadInteger, loadMargin, loadMetaClass, loadMetaClass, loadMinHeight, loadMinHeight, loadMinWidth, loadMinWidth, loadOptionsContainer, loadOrientation, loadRequired, loadRequiredIndicatorVisible, loadResourceString, loadResponsive, loadShortcut, loadShortcutFromAlias, loadShortcutFromConfig, loadShortcutFromFQNConfig, loadString, loadString, loadStyleName, loadTabIndex, loadThemeInt, loadThemeString, loadValidation, loadValuePickerDeclarativeAction, loadVisible, loadWidth, loadWidth, parseMarginInfo, setApplicationContext, setContext, setElement, setEnvironment, setFactory, setLayoutLoaderConfig, setLoaderResolver, setLoaderSupport
-
Field Details
-
RENDERERS_MAP
-
buttonsPanelLoader
-
panelElement
protected org.dom4j.Element panelElement -
sortedColumnId
-
sortDirection
-
masterDataLoaderPostLoadListener
-
-
Constructor Details
-
AbstractDataGridLoader
public AbstractDataGridLoader()
-
-
Method Details
-
createComponent
public void createComponent()Description copied from interface:ComponentLoader
Creates result component by XML-element and loads its Id. Also creates all nested components.- See Also:
-
createComponentInternal
-
createButtonsPanel
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoader
Loads component properties by XML definition.- See Also:
-
loadDataGridData
protected void loadDataGridData() -
initDataGridDataHolder
-
initMasterDataLoaderListener
-
onMasterDataLoaderPostLoad
-
setColumnSort
protected void setColumnSort() -
setupDataContainer
-
getMetadata
-
getViewRepository
-
createContainerDataGridSource
-
createEmptyDataGridItems
-
loadEditorEnabled
-
loadEditorBuffered
-
loadEditorSaveCaption
-
loadEditorCancelCaption
-
loadEditorCrossFieldEnabled
-
loadColumnsHidingAllowed
-
loadColumnResizeMode
-
loadSortable
-
loadReorderingAllowed
-
loadTextSelectionEnabled
-
loadBodyRowHeight
-
loadHeaderRowHeight
-
loadHeaderVisible
-
loadContextMenuEnabled
-
loadButtonsPanel
-
loadPagination
-
loadColumnsByInclude
protected List<DataGrid.Column> loadColumnsByInclude(DataGrid component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) -
loadColumns
protected List<DataGrid.Column> loadColumns(DataGrid component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan view) -
loadColumn
protected DataGrid.Column loadColumn(DataGrid component, org.dom4j.Element element, MetaClass metaClass) -
loadColumnVisualDisplay
-
loadRenderer
-
loadRendererByClass
protected DataGrid.Renderer loadRendererByClass(org.dom4j.Element rendererElement, Class<? extends DataGrid.Renderer> rendererClass) -
loadNullRepresentation
protected void loadNullRepresentation(org.dom4j.Element rendererElement, DataGrid.HasNullRepresentation renderer) -
loadFormatPattern
protected void loadFormatPattern(org.dom4j.Element rendererElement, DataGrid.HasDateTimeFormatter renderer) -
loadFormatString
protected void loadFormatString(org.dom4j.Element rendererElement, DataGrid.HasFormatString renderer) -
loadCaption
-
loadSizeInPx
-
getMetadataTools
-
loadSelectionMode
-
loadFrozenColumnCount
-
getAppliedProperties
protected Collection<String> getAppliedProperties(org.dom4j.Element columnsElement, @Nullable FetchPlan fetchPlan, MetaClass metaClass) -
getOverriddenColumn
-
loadColumnSort
-
loadEmptyStateMessage
-
loadEmptyStateLinkMessage
-
loadAggregatable
-
loadAggregationPosition
-
loadAggregation
-
loadAggregationType
protected void loadAggregationType(AggregationInfo aggregation, org.dom4j.Element aggregationElement) -
loadValueDescription
-
loadStrategyClass
-