Package io.jmix.flowui.xml.layout.loader
Class ComponentLoaderContext
java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractLoaderContext
io.jmix.flowui.xml.layout.loader.ComponentLoaderContext
- All Implemented Interfaces:
ComponentLoader.ComponentContext
,ComponentLoader.Context
public class ComponentLoaderContext
extends AbstractLoaderContext
implements ComponentLoader.ComponentContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ComponentLoader.AutowireTask>
protected String
protected String
protected List<ComponentLoader.InitTask>
protected View<?>
Fields inherited from class io.jmix.flowui.xml.layout.loader.AbstractLoaderContext
actionsHolder, dataHolder, fullOriginId, initTasks, messageGroup, parentContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddComponentLoader.AutowireTask
that will be executed according to the origin component lifecycle.void
Adds PreComponentLoader.InitTask
that will be executed according to the origin component lifecycle.void
Executed all addedComponentLoader.AutowireTask
svoid
Executes all addedComponentLoader.InitTask
sDeprecated, for removal: This API element is subject to removal in a future version.com.vaadin.flow.component.Component
Deprecated, for removal: This API element is subject to removal in a future version.View<?>
getView()
void
setCurrentFrameId
(String currentFrameId) void
setFullFrameId
(String frameId) void
Deprecated, for removal: This API element is subject to removal in a future version.void
void
setViewActions
(ViewActions viewActions) Deprecated, for removal: This API element is subject to removal in a future version.void
setViewData
(ViewData viewData) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.jmix.flowui.xml.layout.loader.AbstractLoaderContext
addInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getParentContext, setActionsHolder, setDataHolder, setFullOriginId, setMessageGroup, setParentContext
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
addInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getParentContext
-
Field Details
-
view
-
fullFrameId
-
currentFrameId
-
preInitTasks
-
autowireTasks
-
-
Constructor Details
-
ComponentLoaderContext
public ComponentLoaderContext()
-
-
Method Details
-
getViewData
- Specified by:
getViewData
in interfaceComponentLoader.ComponentContext
- Returns:
- an instance of
ViewData
object associated with the origin view
-
setViewData
Deprecated, for removal: This API element is subject to removal in a future version. -
getViewActions
- Specified by:
getViewActions
in interfaceComponentLoader.ComponentContext
- Returns:
- actions holder object
-
setViewActions
Deprecated, for removal: This API element is subject to removal in a future version. -
getOrigin
public com.vaadin.flow.component.Component getOrigin()- Specified by:
getOrigin
in interfaceComponentLoader.Context
- Returns:
- a target component for which an XML descriptor is processed
-
getView
- Specified by:
getView
in interfaceComponentLoader.ComponentContext
- Returns:
- an origin view
-
setView
-
getFullFrameId
- Specified by:
getFullFrameId
in interfaceComponentLoader.ComponentContext
-
setFullFrameId
-
getCurrentFrameId
- Specified by:
getCurrentFrameId
in interfaceComponentLoader.ComponentContext
-
setCurrentFrameId
-
addPreInitTask
Description copied from interface:ComponentLoader.ComponentContext
Adds PreComponentLoader.InitTask
that 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:
addPreInitTask
in interfaceComponentLoader.ComponentContext
- Parameters:
task
- a task to add
-
addAutowireTask
Description copied from interface:ComponentLoader.ComponentContext
AddComponentLoader.AutowireTask
that will be executed according to the origin component lifecycle.- Specified by:
addAutowireTask
in interfaceComponentLoader.ComponentContext
- Parameters:
task
- a task to add
-
getParent
- Specified by:
getParent
in interfaceComponentLoader.ComponentContext
- Returns:
- parent loader context
-
setParent
@Deprecated(since="2.3", forRemoval=true) public void setParent(@Nullable ComponentLoader.ComponentContext parent) Deprecated, for removal: This API element is subject to removal in a future version. -
getPreInitTasks
Deprecated, for removal: This API element is subject to removal in a future version. -
getInitTasks
Deprecated, for removal: This API element is subject to removal in a future version. -
executePreInitTasks
public void executePreInitTasks()Description copied from interface:ComponentLoader.ComponentContext
Executes all addedComponentLoader.InitTask
s- Specified by:
executePreInitTasks
in interfaceComponentLoader.ComponentContext
-
executeAutowireTasks
public void executeAutowireTasks()Description copied from interface:ComponentLoader.ComponentContext
Executed all addedComponentLoader.AutowireTask
s- Specified by:
executeAutowireTasks
in interfaceComponentLoader.ComponentContext
-
AbstractLoaderContext.setParentContext(ComponentLoader.Context)
instead