Package io.jmix.flowui.xml.layout.loader
Class AbstractLoaderContext
java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractLoaderContext
- All Implemented Interfaces:
ComponentLoader.Context
- Direct Known Subclasses:
ComponentLoaderContext,FragmentLoaderContext,MenuLoaderContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HasActionsprotected HasDataComponentsprotected Stringprotected List<ComponentLoader.InitTask> protected Stringprotected ComponentLoader.Contextprotected List<ComponentLoader.InitTask> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddsComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.voidAdds PreComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.voidExecutes all addedComponentLoader.InitTasksvoidExecutes all addedComponentLoader.InitTasks@Nullable ComponentLoader.ContextvoidsetActionsHolder(HasActions actionsHolder) voidsetDataHolder(HasDataComponents dataHolder) voidsetFullOriginId(String fullOriginId) voidsetMessageGroup(String messageGroup) voidsetParentContext(@Nullable ComponentLoader.Context parentContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.xml.layout.ComponentLoader.Context
getOrigin
-
Field Details
-
fullOriginId
-
parentContext
-
dataHolder
-
actionsHolder
-
messageGroup
-
preInitTasks
-
initTasks
-
-
Constructor Details
-
AbstractLoaderContext
public AbstractLoaderContext()
-
-
Method Details
-
getFullOriginId
- Specified by:
getFullOriginIdin interfaceComponentLoader.Context- Returns:
- a target component id, including parent component ids
-
setFullOriginId
-
getParentContext
- Specified by:
getParentContextin interfaceComponentLoader.Context- Returns:
- parent loader context
-
setParentContext
-
getMessageGroup
- Specified by:
getMessageGroupin interfaceComponentLoader.Context- Returns:
- a message group associated with XML descriptor
-
setMessageGroup
-
getActionsHolder
- Specified by:
getActionsHolderin interfaceComponentLoader.Context- Returns:
- an object that stores actions associated with the origin component
-
setActionsHolder
-
getDataHolder
- Specified by:
getDataHolderin interfaceComponentLoader.Context- Returns:
- an object that stores data components associated with the origin component
-
setDataHolder
-
addPreInitTask
Description copied from interface:ComponentLoader.ContextAdds PreComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.Note: Pre InitTasks will be executed before DependencyManager invocation to have precedence over @Subscribe methods
- Specified by:
addPreInitTaskin interfaceComponentLoader.Context- Parameters:
task- a task to add
-
executePreInitTasks
public void executePreInitTasks()Description copied from interface:ComponentLoader.ContextExecutes all addedComponentLoader.InitTasks- Specified by:
executePreInitTasksin interfaceComponentLoader.Context
-
addInitTask
Description copied from interface:ComponentLoader.ContextAddsComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.- Specified by:
addInitTaskin interfaceComponentLoader.Context- Parameters:
task- a task to add
-
executeInitTasks
public void executeInitTasks()Description copied from interface:ComponentLoader.ContextExecutes all addedComponentLoader.InitTasks- Specified by:
executeInitTasksin interfaceComponentLoader.Context
-