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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ComponentLoader.Contextprotected org.dom4j.Elementprotected org.springframework.core.env.Environmentprotected UiComponentsprotected LayoutLoaderConfigDeprecated.protected LoaderResolverprotected LoaderSupportprotected T - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignFrame(Component.BelongToFrame component) protected voidassignXmlDescriptor(Component component, org.dom4j.Element element) protected ComponentfindComponent(String componentId) protected Actionsprotected ClassManagerprotected ComponentLoader.ComponentContextorg.dom4j.ElementgetElement(org.dom4j.Element element) protected StringgetIconPath(String icon) protected LayoutLoaderprotected LayoutLoadergetLayoutLoader(ComponentLoader.Context context) Deprecated.protected Messagesprotected MessageToolsprotected io.micrometer.core.instrument.MeterRegistryprotected StringgetParentDataContainer(org.dom4j.Element element) protected UiPropertiesReturns previously created instance of component.protected ThemeConstantsgetTheme()protected voidinitAction(org.dom4j.Element element, Action targetAction) protected voidloadAction(ActionOwner component, org.dom4j.Element element) protected voidloadActionConstraint(Action action, org.dom4j.Element element) protected StringloadActionId(org.dom4j.Element element) protected voidloadActions(ActionsHolder actionsHolder, org.dom4j.Element element) protected voidloadBoolean(org.dom4j.Element element, String attributeName) protected voidloadBoolean(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) protected voidloadBorder(HasBorder component, org.dom4j.Element element) protected voidloadCaption(Component.HasCaption component, org.dom4j.Element element) protected voidloadCaptionAsHtml(HasHtmlCaption component, org.dom4j.Element element) protected voidloadCollapsible(Collapsable component, org.dom4j.Element element, boolean defaultCollapsable) protected Optional<InstanceContainer>loadContainer(org.dom4j.Element element, String property) protected voidloadContainer(T component, org.dom4j.Element element) protected voidloadContextHelp(HasContextHelp component, org.dom4j.Element element) protected voidprotected voidprotected ActionloadDeclarativeAction(ActionsHolder actionsHolder, org.dom4j.Element element) protected ActionloadDeclarativeActionByType(ActionsHolder actionsHolder, org.dom4j.Element element) protected ActionloadDeclarativeActionDefault(ActionsHolder actionsHolder, org.dom4j.Element element) protected voidloadDescription(Component.HasDescription component, org.dom4j.Element element) protected voidloadDescriptionAsHtml(HasHtmlDescription component, org.dom4j.Element element) protected voidloadEditable(Component component, org.dom4j.Element element) protected voidloadEnable(Component component, org.dom4j.Element element) protected <T extends Enum<T>>
voidprotected voidloadFocusable(Component.Focusable component, org.dom4j.Element element) protected voidloadFormatter(HasFormatter component, org.dom4j.Element element) protected Formatter<?>loadFormatter(org.dom4j.Element element) protected voidloadHeight(Component component, org.dom4j.Element element) protected voidloadHeight(Component component, org.dom4j.Element element, String defaultValue) protected voidloadHtmlSanitizerEnabled(HasHtmlSanitizer component, org.dom4j.Element element) protected voidloadIcon(Component.HasIcon component, org.dom4j.Element element) protected voidprotected voidloadInputPrompt(HasInputPrompt component, org.dom4j.Element element) loadInteger(org.dom4j.Element element, String attributeName) protected voidloadInteger(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) protected voidloadMargin(HasMargin layout, org.dom4j.Element element) loadMetaClass(org.dom4j.Element element) protected voidloadMetaClass(org.dom4j.Element element, Consumer<MetaClass> setter) loadMinHeight(org.dom4j.Element element) protected voidloadMinHeight(org.dom4j.Element element, Consumer<String> setter) loadMinWidth(org.dom4j.Element element) protected voidloadMinWidth(org.dom4j.Element element, Consumer<String> setter) protected Optional<CollectionContainer>loadOptionsContainer(org.dom4j.Element element) protected voidloadOrientation(HasOrientation component, org.dom4j.Element element) protected voidloadRequired(Requirable component, org.dom4j.Element element) protected voidloadRequiredIndicatorVisible(HasRequiredIndicator component, org.dom4j.Element element) protected StringloadResourceString(String caption) protected voidloadResponsive(Component component, org.dom4j.Element element) protected StringloadShortcut(String shortcut) protected StringloadShortcutFromAlias(String shortcut) protected StringloadShortcutFromConfig(String shortcut) protected StringloadShortcutFromFQNConfig(String shortcut) loadString(org.dom4j.Element element, String attributeName) protected voidloadString(org.dom4j.Element element, String attributeName, Consumer<String> setter) protected voidloadStyleName(Component component, org.dom4j.Element element) protected voidloadTabIndex(Component.Focusable component, org.dom4j.Element element) protected intloadThemeInt(String value) protected StringloadThemeString(String value) protected voidloadValidation(HasValidator component, org.dom4j.Element element) protected ActionloadValuePickerDeclarativeAction(ActionsHolder actionsHolder, org.dom4j.Element element) protected voidloadVisible(Component component, org.dom4j.Element element) protected voidprotected voidprotected MarginInfoparseMarginInfo(String margin) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetContext(ComponentLoader.Context context) voidsetElement(org.dom4j.Element element) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetFactory(UiComponents factory) voidsetLayoutLoaderConfig(LayoutLoaderConfig layoutLoaderConfig) Deprecated.voidsetLoaderResolver(LoaderResolver loaderResolver) voidsetLoaderSupport(LoaderSupport loaderSupport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
 setApplicationContextin interfaceComponentLoader<T extends Component>
 - 
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
 setEnvironmentin interfaceComponentLoader<T extends Component>
 - 
getContext
- Specified by:
 getContextin interfaceComponentLoader<T extends Component>
 - 
setContext
- Specified by:
 setContextin interfaceComponentLoader<T extends Component>
 - 
getComponentContext
 - 
getCompositeComponentContext
 - 
getFactory
- Specified by:
 getFactoryin interfaceComponentLoader<T extends Component>
 - 
setFactory
- Specified by:
 setFactoryin interfaceComponentLoader<T extends Component>
 - 
setElement
public void setElement(org.dom4j.Element element) - Specified by:
 setElementin interfaceComponentLoader<T extends Component>
 - 
getElement
public org.dom4j.Element getElement(org.dom4j.Element element) - Specified by:
 getElementin interfaceComponentLoader<T extends Component>
 - 
getResultComponent
Description copied from interface:ComponentLoaderReturns previously created instance of component.- Specified by:
 getResultComponentin interfaceComponentLoader<T extends Component>- See Also:
 
 - 
getLoaderResolver
- Specified by:
 getLoaderResolverin interfaceComponentLoader<T extends Component>
 - 
setLoaderResolver
- Specified by:
 setLoaderResolverin interfaceComponentLoader<T extends Component>
 - 
getLoaderSupport
- Specified by:
 getLoaderSupportin interfaceComponentLoader<T extends Component>
 - 
setLoaderSupport
- Specified by:
 setLoaderSupportin interfaceComponentLoader<T extends Component>
 - 
getLayoutLoaderConfig
Deprecated.- Specified by:
 getLayoutLoaderConfigin interfaceComponentLoader<T extends Component>
 - 
setLayoutLoaderConfig
Deprecated.- Specified by:
 setLayoutLoaderConfigin 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
 
 -