Package io.jmix.ui.xml.layout.loader
Class AbstractComponentLoader<T extends Component>
java.lang.Object
io.jmix.ui.xml.layout.loader.AbstractComponentLoader<T>
- All Implemented Interfaces:
ComponentLoader<T>
- Direct Known Subclasses:
AbstractFieldLoader
,AbstractPaginationLoader
,AbstractResourceViewLoader
,AbstractSingleFilterComponentLoader
,ActionsHolderLoader
,AppMenuLoader
,BpmnModelerLoader
,BpmnViewerLoader
,ButtonLoader
,CalendarLoader
,CapsLockIndicatorLoader
,ChartModelLoader
,ContainerLoader
,CustomChartLoader
,DashboardLoader
,DynamicAttributesPanelLoader
,FileMultiUploadFieldLoader
,FormLoader
,GeoMapLoader
,GrapesJsHtmlEditorLoader
,GroupFilterLoader
,JavaScriptComponentLoader
,LabelLoader
,LinkLoader
,LogoutButtonLoader
,NewWindowButtonLoader
,NotificationsIndicatorLoader
,OutcomesPanelLoader
,PivotTableLoader
,PopupButtonLoader
,PopupViewLoader
,ProgressBarLoader
,RelatedEntitiesLoader
,ResponsiveGridLayoutLoader
,SearchFieldLoader
,SideMenuLoader
,TimeZoneIndicatorLoader
,UserActionsButtonLoader
,UserIndicatorLoader
,WebdavDocumentLinkLoader
public abstract class AbstractComponentLoader<T extends Component>
extends Object
implements ComponentLoader<T>
-
Nested Class Summary
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 org.springframework.context.ApplicationContext
protected ComponentLoader.Context
protected org.dom4j.Element
protected org.springframework.core.env.Environment
protected UiComponents
protected LayoutLoaderConfig
Deprecated.protected LoaderResolver
protected LoaderSupport
protected T
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assignFrame
(Component.BelongToFrame component) protected void
assignXmlDescriptor
(Component component, org.dom4j.Element element) protected Component
findComponent
(String componentId) protected Actions
protected ClassManager
protected ComponentLoader.ComponentContext
org.dom4j.Element
getElement
(org.dom4j.Element element) protected String
getIconPath
(String icon) protected LayoutLoader
protected LayoutLoader
getLayoutLoader
(ComponentLoader.Context context) Deprecated.protected Messages
protected MessageTools
protected io.micrometer.core.instrument.MeterRegistry
protected String
getParentDataContainer
(org.dom4j.Element element) protected UiProperties
Returns previously created instance of component.protected ThemeConstants
getTheme()
protected void
initAction
(org.dom4j.Element element, Action targetAction) protected void
loadAction
(ActionOwner component, org.dom4j.Element element) protected void
loadActionConstraint
(Action action, org.dom4j.Element element) protected String
loadActionId
(org.dom4j.Element element) protected void
loadActions
(ActionsHolder actionsHolder, org.dom4j.Element element) protected void
loadBoolean
(org.dom4j.Element element, String attributeName) protected void
loadBoolean
(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) protected void
loadBorder
(HasBorder component, org.dom4j.Element element) protected void
loadCaption
(Component.HasCaption component, org.dom4j.Element element) protected void
loadCaptionAsHtml
(HasHtmlCaption component, org.dom4j.Element element) protected void
loadCollapsible
(Collapsable component, org.dom4j.Element element, boolean defaultCollapsable) protected Optional<InstanceContainer>
loadContainer
(org.dom4j.Element element, String property) protected void
loadContainer
(T component, org.dom4j.Element element) protected void
loadContextHelp
(HasContextHelp component, org.dom4j.Element element) protected void
protected void
protected Action
loadDeclarativeAction
(ActionsHolder actionsHolder, org.dom4j.Element element) protected Action
loadDeclarativeActionByType
(ActionsHolder actionsHolder, org.dom4j.Element element) protected Action
loadDeclarativeActionDefault
(ActionsHolder actionsHolder, org.dom4j.Element element) protected void
loadDescription
(Component.HasDescription component, org.dom4j.Element element) protected void
loadDescriptionAsHtml
(HasHtmlDescription component, org.dom4j.Element element) protected void
loadEditable
(Component component, org.dom4j.Element element) protected void
loadEnable
(Component component, org.dom4j.Element element) protected <T extends Enum<T>>
voidprotected void
loadFocusable
(Component.Focusable component, org.dom4j.Element element) protected void
loadFormatter
(HasFormatter component, org.dom4j.Element element) protected Formatter<?>
loadFormatter
(org.dom4j.Element element) protected void
loadHeight
(Component component, org.dom4j.Element element) protected void
loadHeight
(Component component, org.dom4j.Element element, String defaultValue) protected void
loadHtmlSanitizerEnabled
(HasHtmlSanitizer component, org.dom4j.Element element) protected void
loadIcon
(Component.HasIcon component, org.dom4j.Element element) protected void
protected void
loadInputPrompt
(HasInputPrompt component, org.dom4j.Element element) loadInteger
(org.dom4j.Element element, String attributeName) protected void
loadInteger
(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) protected void
loadMargin
(HasMargin layout, org.dom4j.Element element) loadMetaClass
(org.dom4j.Element element) protected void
loadMetaClass
(org.dom4j.Element element, Consumer<MetaClass> setter) loadMinHeight
(org.dom4j.Element element) protected void
loadMinHeight
(org.dom4j.Element element, Consumer<String> setter) loadMinWidth
(org.dom4j.Element element) protected void
loadMinWidth
(org.dom4j.Element element, Consumer<String> setter) protected Optional<CollectionContainer>
loadOptionsContainer
(org.dom4j.Element element) protected void
loadOrientation
(HasOrientation component, org.dom4j.Element element) protected void
loadRequired
(Requirable component, org.dom4j.Element element) protected void
loadRequiredIndicatorVisible
(HasRequiredIndicator component, org.dom4j.Element element) protected String
loadResourceString
(String caption) protected void
loadResponsive
(Component component, org.dom4j.Element element) protected String
loadShortcut
(String shortcut) protected String
loadShortcutFromAlias
(String shortcut) protected String
loadShortcutFromConfig
(String shortcut) protected String
loadShortcutFromFQNConfig
(String shortcut) loadString
(org.dom4j.Element element, String attributeName) protected void
loadString
(org.dom4j.Element element, String attributeName, Consumer<String> setter) protected void
loadStyleName
(Component component, org.dom4j.Element element) protected void
loadTabIndex
(Component.Focusable component, org.dom4j.Element element) protected int
loadThemeInt
(String value) protected String
loadThemeString
(String value) protected void
loadValidation
(HasValidator component, org.dom4j.Element element) protected Action
loadValuePickerDeclarativeAction
(ActionsHolder actionsHolder, org.dom4j.Element element) protected void
loadVisible
(Component component, org.dom4j.Element element) protected void
protected void
protected MarginInfo
parseMarginInfo
(String margin) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setContext
(ComponentLoader.Context context) void
setElement
(org.dom4j.Element element) void
setEnvironment
(org.springframework.core.env.Environment environment) void
setFactory
(UiComponents factory) void
setLayoutLoaderConfig
(LayoutLoaderConfig layoutLoaderConfig) Deprecated.void
setLoaderResolver
(LoaderResolver loaderResolver) void
setLoaderSupport
(LoaderSupport loaderSupport) 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, loadComponent
-
Field Details
-
context
-
factory
-
layoutLoaderConfig
Deprecated. -
loaderResolver
-
loaderSupport
-
element
protected org.dom4j.Element element -
resultComponent
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
environment
protected org.springframework.core.env.Environment environment
-
-
Constructor Details
-
AbstractComponentLoader
protected AbstractComponentLoader()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceComponentLoader<T extends Component>
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceComponentLoader<T extends Component>
-
getContext
- Specified by:
getContext
in interfaceComponentLoader<T extends Component>
-
setContext
- Specified by:
setContext
in interfaceComponentLoader<T extends Component>
-
getComponentContext
-
getCompositeComponentContext
-
getFactory
- Specified by:
getFactory
in interfaceComponentLoader<T extends Component>
-
setFactory
- Specified by:
setFactory
in interfaceComponentLoader<T extends Component>
-
setElement
public void setElement(org.dom4j.Element element) - Specified by:
setElement
in interfaceComponentLoader<T extends Component>
-
getElement
public org.dom4j.Element getElement(org.dom4j.Element element) - Specified by:
getElement
in interfaceComponentLoader<T extends Component>
-
getResultComponent
Description copied from interface:ComponentLoader
Returns previously created instance of component.- Specified by:
getResultComponent
in interfaceComponentLoader<T extends Component>
- See Also:
-
getLoaderResolver
- Specified by:
getLoaderResolver
in interfaceComponentLoader<T extends Component>
-
setLoaderResolver
- Specified by:
setLoaderResolver
in interfaceComponentLoader<T extends Component>
-
getLoaderSupport
- Specified by:
getLoaderSupport
in interfaceComponentLoader<T extends Component>
-
setLoaderSupport
- Specified by:
setLoaderSupport
in interfaceComponentLoader<T extends Component>
-
getLayoutLoaderConfig
Deprecated.- Specified by:
getLayoutLoaderConfig
in interfaceComponentLoader<T extends Component>
-
setLayoutLoaderConfig
Deprecated.- Specified by:
setLayoutLoaderConfig
in interfaceComponentLoader<T extends Component>
-
getMessages
-
getActions
-
getMessageTools
-
getClassManager
-
getProperties
-
getMeterRegistry
protected io.micrometer.core.instrument.MeterRegistry getMeterRegistry() -
getTheme
-
getLayoutLoader
-
getLayoutLoader
-
loadId
-
loadStyleName
-
loadCss
-
loadResponsive
-
assignXmlDescriptor
-
loadEditable
-
loadCaption
-
loadCaptionAsHtml
-
loadDescription
-
loadDescriptionAsHtml
-
loadContextHelp
-
loadRequired
-
loadValidation
-
loadVisible
-
loadEnable
-
loadResourceString
-
loadThemeString
-
loadThemeInt
-
loadAlign
-
loadHeight
-
loadHeight
-
loadWidth
-
loadTabIndex
-
loadWidth
-
loadCollapsible
protected void loadCollapsible(Collapsable component, org.dom4j.Element element, boolean defaultCollapsable) -
loadBorder
-
loadMargin
-
parseMarginInfo
-
assignFrame
-
loadAction
-
loadIcon
-
getIconPath
-
loadActions
-
loadDeclarativeAction
-
loadDeclarativeActionDefault
protected Action loadDeclarativeActionDefault(ActionsHolder actionsHolder, org.dom4j.Element element) -
loadActionId
-
loadDeclarativeActionByType
@Nullable protected Action loadDeclarativeActionByType(ActionsHolder actionsHolder, org.dom4j.Element element) -
initAction
-
loadActionConstraint
-
loadShortcut
-
loadShortcutFromFQNConfig
-
loadShortcutFromAlias
-
loadShortcutFromConfig
-
loadValuePickerDeclarativeAction
protected Action loadValuePickerDeclarativeAction(ActionsHolder actionsHolder, org.dom4j.Element element) -
loadFormatter
-
loadFormatter
-
loadOrientation
-
loadInputPrompt
-
loadFocusable
-
loadData
-
loadContainer
-
loadContainer
protected Optional<InstanceContainer> loadContainer(org.dom4j.Element element, @Nullable String property) -
loadOptionsContainer
-
getParentDataContainer
-
findComponent
-
loadRequiredIndicatorVisible
protected void loadRequiredIndicatorVisible(HasRequiredIndicator component, org.dom4j.Element element) -
loadHtmlSanitizerEnabled
-
loadString
-
loadString
-
loadBoolean
-
loadBoolean
-
loadInteger
-
loadInteger
-
loadEnum
-
loadEnum
-
loadMetaClass
-
loadMetaClass
-
loadMinHeight
-
loadMinHeight
-
loadMinWidth
-
loadMinWidth
-