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
-
Field Summary
Modifier and TypeFieldDescriptionprotected HasActions
protected HasDataComponents
protected String
protected List<ComponentLoader.InitTask>
protected String
protected ComponentLoader.Context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddsComponentLoader.InitTask
that will be executed according to the origin component lifecycle.void
Executes all addedComponentLoader.InitTask
svoid
setActionsHolder
(HasActions actionsHolder) void
setDataHolder
(HasDataComponents dataHolder) void
setFullOriginId
(String fullOriginId) void
setMessageGroup
(String messageGroup) void
setParentContext
(ComponentLoader.Context parentContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.xml.layout.ComponentLoader.Context
getOrigin
-
Field Details
-
fullOriginId
-
parentContext
-
dataHolder
-
actionsHolder
-
messageGroup
-
initTasks
-
-
Constructor Details
-
AbstractLoaderContext
public AbstractLoaderContext()
-
-
Method Details
-
getFullOriginId
- Specified by:
getFullOriginId
in interfaceComponentLoader.Context
- Returns:
- a target component id, including parent component ids
-
setFullOriginId
-
getParentContext
- Specified by:
getParentContext
in interfaceComponentLoader.Context
- Returns:
- parent loader context
-
setParentContext
-
getMessageGroup
- Specified by:
getMessageGroup
in interfaceComponentLoader.Context
- Returns:
- a message group associated with XML descriptor
-
setMessageGroup
-
getActionsHolder
- Specified by:
getActionsHolder
in interfaceComponentLoader.Context
- Returns:
- an object that stores actions associated with the origin component
-
setActionsHolder
-
getDataHolder
- Specified by:
getDataHolder
in interfaceComponentLoader.Context
- Returns:
- an object that stores data components associated with the origin component
-
setDataHolder
-
addInitTask
Description copied from interface:ComponentLoader.Context
AddsComponentLoader.InitTask
that will be executed according to the origin component lifecycle.- Specified by:
addInitTask
in interfaceComponentLoader.Context
- Parameters:
task
- a task to add
-
executeInitTasks
public void executeInitTasks()Description copied from interface:ComponentLoader.Context
Executes all addedComponentLoader.InitTask
s- Specified by:
executeInitTasks
in interfaceComponentLoader.Context
-