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
FieldsModifier and TypeFieldDescriptionprotected HasActionsprotected HasDataComponentsprotected Stringprotected List<ComponentLoader.InitTask>protected Stringprotected ComponentLoader.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddsComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.voidExecutes all addedComponentLoader.InitTasksvoidsetActionsHolder(HasActions actionsHolder) voidsetDataHolder(HasDataComponents dataHolder) voidsetFullOriginId(String fullOriginId) voidsetMessageGroup(String messageGroup) voidsetParentContext(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
-
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
-
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
-