public abstract class AbstractDataGridLoader<T extends DataGrid> extends ActionsHolderLoader<T>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDataGridLoader.DataGridDataHolder
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 static java.util.Map<java.lang.String,java.lang.Class<? extends DataGrid.Renderer>> |
RENDERERS_MAP |
protected DataGrid.SortDirection |
sortDirection |
protected java.lang.String |
sortedColumnId |
applicationContext, context, element, environment, factory, layoutLoaderConfig, loaderResolver, loaderSupport, resultComponent
Constructor and Description |
---|
AbstractDataGridLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
createButtonsPanel(HasButtonsPanel dataGrid,
org.dom4j.Element element) |
void |
createComponent()
Creates result component by XML-element and loads its Id.
|
protected abstract T |
createComponentInternal() |
protected DataGridItems |
createContainerDataGridSource(CollectionContainer container) |
protected DataGridItems |
createEmptyDataGridItems(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 AbstractDataGridLoader.DataGridDataHolder |
initDataGridDataHolder() |
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 java.lang.String |
loadCaption(org.dom4j.Element element) |
protected DataGrid.Column |
loadColumn(DataGrid component,
org.dom4j.Element element,
io.jmix.core.metamodel.model.MetaClass metaClass) |
protected void |
loadColumnResizeMode(DataGrid component,
org.dom4j.Element element) |
protected java.util.List<DataGrid.Column> |
loadColumns(DataGrid component,
org.dom4j.Element columnsElement,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.FetchPlan view) |
protected java.util.List<DataGrid.Column> |
loadColumnsByInclude(DataGrid component,
org.dom4j.Element columnsElement,
io.jmix.core.metamodel.model.MetaClass metaClass,
io.jmix.core.FetchPlan fetchPlan) |
protected void |
loadColumnsHidingAllowed(DataGrid component,
org.dom4j.Element element) |
protected void |
loadColumnSort(DataGrid component,
DataGrid.Column column,
java.lang.String sort) |
protected void |
loadColumnVisualDisplay(DataGrid.Column column,
org.dom4j.Element columnElement) |
void |
loadComponent()
Loads component properties by XML definition.
|
protected void |
loadContextMenuEnabled(DataGrid dataGrid,
org.dom4j.Element element) |
protected void |
loadDataGridData() |
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,
java.lang.Class<? extends DataGrid.Renderer> rendererClass) |
protected void |
loadReorderingAllowed(DataGrid component,
org.dom4j.Element element) |
protected void |
loadSelectionMode(DataGrid component,
org.dom4j.Element element) |
protected java.lang.Integer |
loadSizeInPx(org.dom4j.Element element,
java.lang.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 |
onMasterDataLoaderPostLoad(java.lang.Object o) |
protected void |
setColumnSort() |
protected void |
setupDataContainer(AbstractDataGridLoader.DataGridDataHolder 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
protected static final java.util.Map<java.lang.String,java.lang.Class<? extends DataGrid.Renderer>> RENDERERS_MAP
protected ComponentLoader buttonsPanelLoader
protected org.dom4j.Element panelElement
protected java.lang.String sortedColumnId
protected DataGrid.SortDirection sortDirection
protected io.jmix.core.common.event.Subscription masterDataLoaderPostLoadListener
public void createComponent()
ComponentLoader
ComponentLoader.getResultComponent()
protected abstract T createComponentInternal()
protected void createButtonsPanel(HasButtonsPanel dataGrid, org.dom4j.Element element)
public void loadComponent()
ComponentLoader
ComponentLoader.getElement(Element)
protected void loadDataGridData()
protected AbstractDataGridLoader.DataGridDataHolder initDataGridDataHolder()
protected void initMasterDataLoaderListener(CollectionPropertyContainer collectionContainer)
protected void onMasterDataLoaderPostLoad(java.lang.Object o)
protected void setColumnSort()
protected void setupDataContainer(AbstractDataGridLoader.DataGridDataHolder holder)
protected io.jmix.core.Metadata getMetadata()
protected io.jmix.core.FetchPlanRepository getViewRepository()
protected DataGridItems createContainerDataGridSource(CollectionContainer container)
protected DataGridItems createEmptyDataGridItems(io.jmix.core.metamodel.model.MetaClass metaClass)
protected void loadEditorEnabled(DataGrid component, org.dom4j.Element element)
protected void loadEditorBuffered(DataGrid component, org.dom4j.Element element)
protected void loadEditorSaveCaption(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 loadColumnsHidingAllowed(DataGrid component, org.dom4j.Element element)
protected void loadColumnResizeMode(DataGrid component, org.dom4j.Element element)
protected void loadSortable(DataGrid component, org.dom4j.Element element)
protected void loadReorderingAllowed(DataGrid component, org.dom4j.Element element)
protected void loadTextSelectionEnabled(DataGrid dataGrid, org.dom4j.Element element)
protected void loadBodyRowHeight(DataGrid dataGrid, org.dom4j.Element element)
protected void loadHeaderRowHeight(DataGrid dataGrid, org.dom4j.Element element)
protected void loadFooterRowHeight(DataGrid dataGrid, org.dom4j.Element element)
protected void loadHeaderVisible(DataGrid component, org.dom4j.Element element)
protected void loadFooterVisible(DataGrid component, org.dom4j.Element element)
protected void loadContextMenuEnabled(DataGrid dataGrid, org.dom4j.Element element)
protected void loadButtonsPanel(DataGrid component)
protected void loadPagination(DataGrid component, org.dom4j.Element element)
protected java.util.List<DataGrid.Column> loadColumnsByInclude(DataGrid component, org.dom4j.Element columnsElement, io.jmix.core.metamodel.model.MetaClass metaClass, io.jmix.core.FetchPlan fetchPlan)
protected java.util.List<DataGrid.Column> loadColumns(DataGrid component, org.dom4j.Element columnsElement, io.jmix.core.metamodel.model.MetaClass metaClass, io.jmix.core.FetchPlan view)
protected DataGrid.Column loadColumn(DataGrid component, org.dom4j.Element element, io.jmix.core.metamodel.model.MetaClass metaClass)
protected void loadColumnVisualDisplay(DataGrid.Column column, org.dom4j.Element columnElement)
@Nullable protected DataGrid.Renderer loadRenderer(org.dom4j.Element columnElement)
protected DataGrid.Renderer loadRendererByClass(org.dom4j.Element rendererElement, java.lang.Class<? extends DataGrid.Renderer> rendererClass)
protected void loadNullRepresentation(org.dom4j.Element rendererElement, DataGrid.HasNullRepresentation renderer)
protected void loadFormatPattern(org.dom4j.Element rendererElement, DataGrid.HasDateTimeFormatter renderer)
protected void loadFormatString(org.dom4j.Element rendererElement, DataGrid.HasFormatString renderer)
@Nullable protected java.lang.String loadCaption(org.dom4j.Element element)
@Nullable protected java.lang.Integer loadSizeInPx(org.dom4j.Element element, java.lang.String propertyName)
protected io.jmix.core.MetadataTools getMetadataTools()
protected void loadSelectionMode(DataGrid component, org.dom4j.Element element)
protected void loadFrozenColumnCount(DataGrid component, org.dom4j.Element element)
protected java.util.Collection<java.lang.String> getAppliedProperties(org.dom4j.Element columnsElement, @Nullable 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(DataGrid component, DataGrid.Column column, java.lang.String sort)
protected void loadEmptyStateMessage(DataGrid dataGrid, org.dom4j.Element element)
protected void loadEmptyStateLinkMessage(DataGrid dataGrid, org.dom4j.Element element)
protected void loadAggregatable(DataGrid component, org.dom4j.Element element)
protected void loadAggregationPosition(DataGrid component, org.dom4j.Element element)
protected void loadAggregation(DataGrid.Column column, org.dom4j.Element columnElement)
protected void loadAggregationType(AggregationInfo aggregation, org.dom4j.Element aggregationElement)
protected void loadValueDescription(DataGrid.Column column, org.dom4j.Element aggregationElement)
protected void loadStrategyClass(AggregationInfo aggregation, org.dom4j.Element aggregationElement)