public abstract class AbstractComponentLoader<T extends Component> extends java.lang.Object implements ComponentLoader<T>
ComponentLoader.ComponentContext, ComponentLoader.CompositeComponentContext, ComponentLoader.Context, ComponentLoader.InitTask, ComponentLoader.InjectTask, ComponentLoader.PostInitTask
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected ComponentLoader.Context |
context |
protected org.dom4j.Element |
element |
protected org.springframework.core.env.Environment |
environment |
protected UiComponents |
factory |
protected LayoutLoaderConfig |
layoutLoaderConfig
Deprecated.
|
protected LoaderResolver |
loaderResolver |
protected LoaderSupport |
loaderSupport |
protected T |
resultComponent |
Modifier | Constructor and Description |
---|---|
protected |
AbstractComponentLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignFrame(Component.BelongToFrame component) |
protected void |
assignXmlDescriptor(Component component,
org.dom4j.Element element) |
protected Component |
findComponent(java.lang.String componentId) |
protected Actions |
getActions() |
protected io.jmix.core.ClassManager |
getClassManager() |
protected ComponentLoader.ComponentContext |
getComponentContext() |
protected ComponentLoader.CompositeComponentContext |
getCompositeComponentContext() |
ComponentLoader.Context |
getContext() |
org.dom4j.Element |
getElement(org.dom4j.Element element) |
UiComponents |
getFactory() |
protected java.lang.String |
getIconPath(java.lang.String icon) |
protected LayoutLoader |
getLayoutLoader() |
protected LayoutLoader |
getLayoutLoader(ComponentLoader.Context context) |
LayoutLoaderConfig |
getLayoutLoaderConfig()
Deprecated.
|
LoaderResolver |
getLoaderResolver() |
LoaderSupport |
getLoaderSupport() |
protected io.jmix.core.Messages |
getMessages() |
protected io.jmix.core.MessageTools |
getMessageTools() |
protected io.micrometer.core.instrument.MeterRegistry |
getMeterRegistry() |
protected java.lang.String |
getParentDataContainer(org.dom4j.Element element) |
protected UiProperties |
getProperties() |
T |
getResultComponent()
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 java.lang.String |
loadActionId(org.dom4j.Element element) |
protected void |
loadActions(ActionsHolder actionsHolder,
org.dom4j.Element element) |
protected void |
loadAlign(Component component,
org.dom4j.Element element) |
protected java.util.Optional<java.lang.Boolean> |
loadBoolean(org.dom4j.Element element,
java.lang.String attributeName) |
protected void |
loadBoolean(org.dom4j.Element element,
java.lang.String attributeName,
java.util.function.Consumer<java.lang.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 java.util.Optional<InstanceContainer> |
loadContainer(org.dom4j.Element element,
java.lang.String property) |
protected void |
loadContainer(T component,
org.dom4j.Element element) |
protected void |
loadContextHelp(HasContextHelp component,
org.dom4j.Element element) |
protected void |
loadCss(Component component,
org.dom4j.Element element) |
protected void |
loadData(T component,
org.dom4j.Element element) |
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 java.lang.Enum<T>> |
loadEnum(org.dom4j.Element element,
java.lang.Class<T> type,
java.lang.String attributeName) |
protected <T extends java.lang.Enum<T>> |
loadEnum(org.dom4j.Element element,
java.lang.Class<T> type,
java.lang.String attributeName,
java.util.function.Consumer<T> setter) |
protected void |
loadFocusable(Component.Focusable component,
org.dom4j.Element element) |
protected Formatter<?> |
loadFormatter(org.dom4j.Element element) |
protected void |
loadFormatter(HasFormatter component,
org.dom4j.Element element) |
protected void |
loadHeight(Component component,
org.dom4j.Element element) |
protected void |
loadHeight(Component component,
org.dom4j.Element element,
java.lang.String defaultValue) |
protected void |
loadHtmlSanitizerEnabled(HasHtmlSanitizer component,
org.dom4j.Element element) |
protected void |
loadIcon(Component.HasIcon component,
org.dom4j.Element element) |
protected void |
loadId(Component component,
org.dom4j.Element element) |
protected void |
loadInputPrompt(HasInputPrompt component,
org.dom4j.Element element) |
protected java.util.Optional<java.lang.Integer> |
loadInteger(org.dom4j.Element element,
java.lang.String attributeName) |
protected void |
loadInteger(org.dom4j.Element element,
java.lang.String attributeName,
java.util.function.Consumer<java.lang.Integer> setter) |
protected void |
loadMargin(HasMargin layout,
org.dom4j.Element element) |
protected java.util.Optional<io.jmix.core.metamodel.model.MetaClass> |
loadMetaClass(org.dom4j.Element element) |
protected void |
loadMetaClass(org.dom4j.Element element,
java.util.function.Consumer<io.jmix.core.metamodel.model.MetaClass> setter) |
protected java.util.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 java.lang.String |
loadResourceString(java.lang.String caption) |
protected void |
loadResponsive(Component component,
org.dom4j.Element element) |
protected java.lang.String |
loadShortcut(java.lang.String shortcut) |
protected java.lang.String |
loadShortcutFromAlias(java.lang.String shortcut) |
protected java.lang.String |
loadShortcutFromConfig(java.lang.String shortcut) |
protected java.lang.String |
loadShortcutFromFQNConfig(java.lang.String shortcut) |
protected java.util.Optional<java.lang.String> |
loadString(org.dom4j.Element element,
java.lang.String attributeName) |
protected void |
loadString(org.dom4j.Element element,
java.lang.String attributeName,
java.util.function.Consumer<java.lang.String> setter) |
protected void |
loadStyleName(Component component,
org.dom4j.Element element) |
protected void |
loadTabIndex(Component.Focusable component,
org.dom4j.Element element) |
protected int |
loadThemeInt(java.lang.String value) |
protected java.lang.String |
loadThemeString(java.lang.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 |
loadWidth(Component component,
org.dom4j.Element element) |
protected void |
loadWidth(Component component,
org.dom4j.Element element,
java.lang.String defaultValue) |
protected MarginInfo |
parseMarginInfo(java.lang.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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createComponent, loadComponent
protected ComponentLoader.Context context
protected UiComponents factory
@Deprecated protected LayoutLoaderConfig layoutLoaderConfig
protected LoaderResolver loaderResolver
protected LoaderSupport loaderSupport
protected org.dom4j.Element element
protected org.springframework.context.ApplicationContext applicationContext
protected org.springframework.core.env.Environment environment
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface ComponentLoader<T extends Component>
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface ComponentLoader<T extends Component>
public ComponentLoader.Context getContext()
getContext
in interface ComponentLoader<T extends Component>
public void setContext(ComponentLoader.Context context)
setContext
in interface ComponentLoader<T extends Component>
protected ComponentLoader.ComponentContext getComponentContext()
protected ComponentLoader.CompositeComponentContext getCompositeComponentContext()
public UiComponents getFactory()
getFactory
in interface ComponentLoader<T extends Component>
public void setFactory(UiComponents factory)
setFactory
in interface ComponentLoader<T extends Component>
public void setElement(org.dom4j.Element element)
setElement
in interface ComponentLoader<T extends Component>
public org.dom4j.Element getElement(org.dom4j.Element element)
getElement
in interface ComponentLoader<T extends Component>
public T getResultComponent()
ComponentLoader
getResultComponent
in interface ComponentLoader<T extends Component>
ComponentLoader.createComponent()
public LoaderResolver getLoaderResolver()
getLoaderResolver
in interface ComponentLoader<T extends Component>
public void setLoaderResolver(LoaderResolver loaderResolver)
setLoaderResolver
in interface ComponentLoader<T extends Component>
public LoaderSupport getLoaderSupport()
getLoaderSupport
in interface ComponentLoader<T extends Component>
public void setLoaderSupport(LoaderSupport loaderSupport)
setLoaderSupport
in interface ComponentLoader<T extends Component>
@Deprecated public LayoutLoaderConfig getLayoutLoaderConfig()
getLayoutLoaderConfig
in interface ComponentLoader<T extends Component>
@Deprecated public void setLayoutLoaderConfig(LayoutLoaderConfig layoutLoaderConfig)
setLayoutLoaderConfig
in interface ComponentLoader<T extends Component>
protected io.jmix.core.Messages getMessages()
protected Actions getActions()
protected io.jmix.core.MessageTools getMessageTools()
protected io.jmix.core.ClassManager getClassManager()
protected UiProperties getProperties()
protected io.micrometer.core.instrument.MeterRegistry getMeterRegistry()
protected ThemeConstants getTheme()
protected LayoutLoader getLayoutLoader()
protected LayoutLoader getLayoutLoader(ComponentLoader.Context context)
protected void loadId(Component component, org.dom4j.Element element)
protected void loadStyleName(Component component, org.dom4j.Element element)
protected void loadCss(Component component, org.dom4j.Element element)
protected void loadResponsive(Component component, org.dom4j.Element element)
protected void assignXmlDescriptor(Component component, org.dom4j.Element element)
protected void loadEditable(Component 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 loadDescription(Component.HasDescription component, org.dom4j.Element element)
protected void loadDescriptionAsHtml(HasHtmlDescription component, org.dom4j.Element element)
protected void loadContextHelp(HasContextHelp component, org.dom4j.Element element)
protected void loadRequired(Requirable component, org.dom4j.Element element)
protected void loadValidation(HasValidator component, org.dom4j.Element element)
protected void loadVisible(Component component, org.dom4j.Element element)
protected void loadEnable(Component component, org.dom4j.Element element)
protected java.lang.String loadResourceString(java.lang.String caption)
@Nullable protected java.lang.String loadThemeString(@Nullable java.lang.String value)
protected int loadThemeInt(@Nullable java.lang.String value)
protected void loadAlign(Component component, org.dom4j.Element element)
protected void loadHeight(Component component, org.dom4j.Element element)
protected void loadHeight(Component component, org.dom4j.Element element, @Nullable java.lang.String defaultValue)
protected void loadWidth(Component component, org.dom4j.Element element)
protected void loadTabIndex(Component.Focusable component, org.dom4j.Element element)
protected void loadWidth(Component component, org.dom4j.Element element, @Nullable java.lang.String defaultValue)
protected void loadCollapsible(Collapsable component, org.dom4j.Element element, boolean defaultCollapsable)
protected void loadBorder(HasBorder component, org.dom4j.Element element)
protected void loadMargin(HasMargin layout, org.dom4j.Element element)
protected MarginInfo parseMarginInfo(java.lang.String margin)
protected void assignFrame(Component.BelongToFrame component)
protected void loadAction(ActionOwner component, org.dom4j.Element element)
protected void loadIcon(Component.HasIcon component, org.dom4j.Element element)
@Nullable protected java.lang.String getIconPath(@Nullable java.lang.String icon)
protected void loadActions(ActionsHolder actionsHolder, org.dom4j.Element element)
protected Action loadDeclarativeAction(ActionsHolder actionsHolder, org.dom4j.Element element)
protected Action loadDeclarativeActionDefault(ActionsHolder actionsHolder, org.dom4j.Element element)
protected java.lang.String loadActionId(org.dom4j.Element element)
@Nullable protected Action loadDeclarativeActionByType(ActionsHolder actionsHolder, org.dom4j.Element element)
protected void initAction(org.dom4j.Element element, Action targetAction)
protected void loadActionConstraint(Action action, org.dom4j.Element element)
protected java.lang.String loadShortcut(java.lang.String shortcut)
@Nullable protected java.lang.String loadShortcutFromFQNConfig(java.lang.String shortcut)
@Nullable protected java.lang.String loadShortcutFromAlias(java.lang.String shortcut)
@Nullable protected java.lang.String loadShortcutFromConfig(java.lang.String shortcut)
protected Action loadValuePickerDeclarativeAction(ActionsHolder actionsHolder, org.dom4j.Element element)
@Nullable protected Formatter<?> loadFormatter(org.dom4j.Element element)
protected void loadFormatter(HasFormatter component, org.dom4j.Element element)
protected void loadOrientation(HasOrientation component, org.dom4j.Element element)
protected void loadInputPrompt(HasInputPrompt component, org.dom4j.Element element)
protected void loadFocusable(Component.Focusable component, org.dom4j.Element element)
protected void loadData(T component, org.dom4j.Element element)
protected void loadContainer(T component, org.dom4j.Element element)
protected java.util.Optional<InstanceContainer> loadContainer(org.dom4j.Element element, @Nullable java.lang.String property)
protected java.util.Optional<CollectionContainer> loadOptionsContainer(org.dom4j.Element element)
@Nullable protected java.lang.String getParentDataContainer(org.dom4j.Element element)
@Nullable protected Component findComponent(java.lang.String componentId)
protected void loadRequiredIndicatorVisible(HasRequiredIndicator component, org.dom4j.Element element)
protected void loadHtmlSanitizerEnabled(HasHtmlSanitizer component, org.dom4j.Element element)
protected java.util.Optional<java.lang.String> loadString(org.dom4j.Element element, java.lang.String attributeName)
protected void loadString(org.dom4j.Element element, java.lang.String attributeName, java.util.function.Consumer<java.lang.String> setter)
protected java.util.Optional<java.lang.Boolean> loadBoolean(org.dom4j.Element element, java.lang.String attributeName)
protected void loadBoolean(org.dom4j.Element element, java.lang.String attributeName, java.util.function.Consumer<java.lang.Boolean> setter)
protected java.util.Optional<java.lang.Integer> loadInteger(org.dom4j.Element element, java.lang.String attributeName)
protected void loadInteger(org.dom4j.Element element, java.lang.String attributeName, java.util.function.Consumer<java.lang.Integer> setter)
protected <T extends java.lang.Enum<T>> java.util.Optional<T> loadEnum(org.dom4j.Element element, java.lang.Class<T> type, java.lang.String attributeName)
protected <T extends java.lang.Enum<T>> void loadEnum(org.dom4j.Element element, java.lang.Class<T> type, java.lang.String attributeName, java.util.function.Consumer<T> setter)
protected java.util.Optional<io.jmix.core.metamodel.model.MetaClass> loadMetaClass(org.dom4j.Element element)
protected void loadMetaClass(org.dom4j.Element element, java.util.function.Consumer<io.jmix.core.metamodel.model.MetaClass> setter)