Package io.jmix.ui.xml.layout.loader
Class AbstractTableLoader<T extends Table>
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.AbstractTableLoader<T>
- All Implemented Interfaces:
ComponentLoader<T>
- Direct Known Subclasses:
GroupTableLoader
,TableLoader
,TreeTableLoader
-
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 Table.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
(T table, org.dom4j.Element element) protected ContainerTableItems
createContainerTableSource
(CollectionContainer container) protected TableItems
createEmptyTableItems
(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 AbstractTableLoader.TableDataHolder
protected void
loadAggregatable
(Table component, org.dom4j.Element element) protected void
loadAggregation
(Table.Column column, org.dom4j.Element columnElement) protected void
loadAggregationStyle
(Table component, org.dom4j.Element element) protected void
loadButtonsPanel
(T component) protected void
loadCaptionAsHtml
(Table.Column component, org.dom4j.Element element) protected Table.Column
loadColumn
(Table component, org.dom4j.Element element, MetaClass metaClass) protected void
loadColumnControlVisible
(Table component, org.dom4j.Element element) protected void
loadColumnHeaderVisible
(Table component, org.dom4j.Element element) protected Object
loadColumnId
(org.dom4j.Element element, MetaClass metaClass) protected List<Table.Column>
loadColumns
(Table component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected List<Table.Column>
loadColumnsByInclude
(Table component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) protected void
loadColumnSort
(Table.Column column, String sort) void
Loads component properties by XML definition.protected void
loadContextMenuEnabled
(Table table, org.dom4j.Element element) protected void
loadEmptyStateLinkMessage
(Table table, org.dom4j.Element element) protected void
loadEmptyStateMessage
(Table table, org.dom4j.Element element) protected void
loadMaxTextLength
(Table.Column column, org.dom4j.Element columnElement) protected void
loadMultiLineCells
(Table table, org.dom4j.Element element) protected void
loadPagination
(Table table, org.dom4j.Element element) protected void
loadReorderingAllowed
(Table component, org.dom4j.Element element) protected void
loadRequired
(Table component, Table.Column column) protected void
loadShowSelection
(Table component, org.dom4j.Element element) protected void
loadSortable
(Table component, org.dom4j.Element element) protected void
protected void
loadTextSelectionEnabled
(Table table, org.dom4j.Element element) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.xml.layout.ComponentLoader
createComponent
-
Field Details
-
buttonsPanelLoader
-
panelElement
protected org.dom4j.Element panelElement -
sortedColumnId
-
sortDirection
-
masterDataLoaderPostLoadListener
-
-
Constructor Details
-
AbstractTableLoader
public AbstractTableLoader()
-
-
Method Details
-
loadComponent
public void loadComponent()Description copied from interface:ComponentLoader
Loads component properties by XML definition.- See Also:
-
loadTableData
protected void loadTableData() -
initTableDataHolder
-
initMasterDataLoaderListener
-
onMasterDataLoaderPostLoad
-
setColumnSort
protected void setColumnSort() -
setupDataContainer
-
getMetadata
-
getViewRepository
-
createContainerTableSource
-
createEmptyTableItems
-
getMetadataTools
-
loadTextSelectionEnabled
-
loadMultiLineCells
-
loadContextMenuEnabled
-
loadPagination
-
loadColumnsByInclude
protected List<Table.Column> loadColumnsByInclude(Table component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) -
loadColumns
protected List<Table.Column> loadColumns(Table component, org.dom4j.Element columnsElement, MetaClass metaClass, FetchPlan fetchPlan) -
loadAggregatable
-
loadAggregationStyle
-
createButtonsPanel
-
loadButtonsPanel
-
loadRequired
-
loadColumn
-
loadColumnId
-
loadCaptionAsHtml
-
loadAggregation
-
loadMaxTextLength
-
loadSortable
-
loadReorderingAllowed
-
loadColumnControlVisible
-
loadColumnHeaderVisible
-
loadShowSelection
-
getAppliedProperties
protected Collection<String> getAppliedProperties(org.dom4j.Element columnsElement, FetchPlan fetchPlan, MetaClass metaClass) -
getOverriddenColumn
-
loadColumnSort
-
loadEmptyStateMessage
-
loadEmptyStateLinkMessage
-