public abstract class AbstractTableLoader<T extends Table> extends ActionsHolderLoader<T>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractTableLoader.TableDataHolder
Contains information about metaclass, data container, loader, fetch plan.
|
ComponentLoader.ComponentContext, ComponentLoader.CompositeComponentContext, ComponentLoader.Context, ComponentLoader.InitTask, ComponentLoader.InjectTask, ComponentLoader.PostInitTask
Modifier and Type | Field and Description |
---|---|
protected ComponentLoader |
buttonsPanelLoader |
protected io.jmix.core.common.event.Subscription |
masterDataLoaderPostLoadListener |
protected org.dom4j.Element |
panelElement |
protected Table.SortDirection |
sortDirection |
protected java.lang.String |
sortedColumnId |
applicationContext, context, element, environment, factory, layoutLoaderConfig, loaderResolver, loaderSupport, resultComponent
Constructor and Description |
---|
AbstractTableLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
createButtonsPanel(T table,
org.dom4j.Element element) |
protected ContainerTableItems |
createContainerTableSource(CollectionContainer container) |
protected TableItems |
createEmptyTableItems(io.jmix.core.metamodel.model.MetaClass metaClass) |
protected java.util.Collection<java.lang.String> |
getAppliedProperties(org.dom4j.Element columnsElement,
io.jmix.core.FetchPlan fetchPlan,
io.jmix.core.metamodel.model.MetaClass metaClass) |
protected io.jmix.core.Metadata |
getMetadata() |
protected io.jmix.core.MetadataTools |
getMetadataTools() |
protected org.dom4j.Element |
getOverriddenColumn(java.util.List<org.dom4j.Element> columns,
java.lang.String property) |
protected io.jmix.core.FetchPlanRepository |
getViewRepository() |
protected void |
initMasterDataLoaderListener(CollectionPropertyContainer collectionContainer) |
protected AbstractTableLoader.TableDataHolder |
initTableDataHolder() |
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,
io.jmix.core.metamodel.model.MetaClass metaClass) |
protected void |
loadColumnControlVisible(Table component,
org.dom4j.Element element) |
protected void |
loadColumnHeaderVisible(Table component,
org.dom4j.Element element) |
protected java.lang.Object |
loadColumnId(org.dom4j.Element element,
io.jmix.core.metamodel.model.MetaClass metaClass) |
protected java.util.List<Table.Column> |
loadColumns(Table component,
org.dom4j.Element columnsElement,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.FetchPlan fetchPlan) |
protected java.util.List<Table.Column> |
loadColumnsByInclude(Table component,
org.dom4j.Element columnsElement,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.FetchPlan fetchPlan) |
protected void |
loadColumnSort(Table.Column column,
java.lang.String sort) |
void |
loadComponent()
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 |
loadTableData() |
protected void |
loadTextSelectionEnabled(Table table,
org.dom4j.Element element) |
protected void |
onMasterDataLoaderPostLoad(java.lang.Object o) |
protected void |
setColumnSort() |
protected void |
setupDataContainer(AbstractTableLoader.TableDataHolder holder) |
loadDeclarativeAction
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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createComponent
protected ComponentLoader buttonsPanelLoader
protected org.dom4j.Element panelElement
protected java.lang.String sortedColumnId
protected Table.SortDirection sortDirection
protected io.jmix.core.common.event.Subscription masterDataLoaderPostLoadListener
public void loadComponent()
ComponentLoader
ComponentLoader.getElement(Element)
protected void loadTableData()
protected AbstractTableLoader.TableDataHolder initTableDataHolder()
protected void initMasterDataLoaderListener(CollectionPropertyContainer collectionContainer)
protected void onMasterDataLoaderPostLoad(java.lang.Object o)
protected void setColumnSort()
protected void setupDataContainer(AbstractTableLoader.TableDataHolder holder)
protected io.jmix.core.Metadata getMetadata()
protected io.jmix.core.FetchPlanRepository getViewRepository()
protected ContainerTableItems createContainerTableSource(CollectionContainer container)
protected TableItems createEmptyTableItems(io.jmix.core.metamodel.model.MetaClass metaClass)
protected io.jmix.core.MetadataTools getMetadataTools()
protected void loadTextSelectionEnabled(Table table, org.dom4j.Element element)
protected void loadMultiLineCells(Table table, org.dom4j.Element element)
protected void loadContextMenuEnabled(Table table, org.dom4j.Element element)
protected void loadPagination(Table table, org.dom4j.Element element)
protected java.util.List<Table.Column> loadColumnsByInclude(Table component, org.dom4j.Element columnsElement, io.jmix.core.metamodel.model.MetaClass metaClass, io.jmix.core.FetchPlan fetchPlan)
protected java.util.List<Table.Column> loadColumns(Table component, org.dom4j.Element columnsElement, io.jmix.core.metamodel.model.MetaClass metaClass, io.jmix.core.FetchPlan fetchPlan)
protected void loadAggregatable(Table component, org.dom4j.Element element)
protected void loadAggregationStyle(Table component, org.dom4j.Element element)
protected void createButtonsPanel(T table, org.dom4j.Element element)
protected void loadButtonsPanel(T component)
protected void loadRequired(Table component, Table.Column column)
protected Table.Column loadColumn(Table component, org.dom4j.Element element, io.jmix.core.metamodel.model.MetaClass metaClass)
protected java.lang.Object loadColumnId(org.dom4j.Element element, io.jmix.core.metamodel.model.MetaClass metaClass)
protected void loadCaptionAsHtml(Table.Column component, org.dom4j.Element element)
protected void loadAggregation(Table.Column column, org.dom4j.Element columnElement)
protected void loadMaxTextLength(Table.Column column, org.dom4j.Element columnElement)
protected void loadSortable(Table component, org.dom4j.Element element)
protected void loadReorderingAllowed(Table component, org.dom4j.Element element)
protected void loadColumnControlVisible(Table component, org.dom4j.Element element)
protected void loadColumnHeaderVisible(Table component, org.dom4j.Element element)
protected void loadShowSelection(Table component, org.dom4j.Element element)
protected java.util.Collection<java.lang.String> getAppliedProperties(org.dom4j.Element columnsElement, io.jmix.core.FetchPlan fetchPlan, io.jmix.core.metamodel.model.MetaClass metaClass)
@Nullable protected org.dom4j.Element getOverriddenColumn(java.util.List<org.dom4j.Element> columns, java.lang.String property)
protected void loadColumnSort(Table.Column column, java.lang.String sort)
protected void loadEmptyStateMessage(Table table, org.dom4j.Element element)
protected void loadEmptyStateLinkMessage(Table table, org.dom4j.Element element)