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
FieldsModifier and TypeFieldDescriptionprotected List<ComponentLoader.AutowireTask>protected Stringprotected Stringprotected List<ComponentLoader.InitTask>protected View<?>Fields inherited from class io.jmix.flowui.xml.layout.loader.AbstractLoaderContext
actionsHolder, dataHolder, fullOriginId, initTasks, messageGroup, parentContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddComponentLoader.AutowireTaskthat will be executed according to the origin component lifecycle.voidAdds PreComponentLoader.InitTaskthat will be executed according to the origin component lifecycle.voidExecuted all addedComponentLoader.AutowireTasksvoidExecutes all addedComponentLoader.InitTasksDeprecated, for removal: This API element is subject to removal in a future version.com.vaadin.flow.component.ComponentDeprecated, for removal: This API element is subject to removal in a future version.View<?>getView()voidsetCurrentFrameId(String currentFrameId) voidsetFullFrameId(String frameId) voidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidsetViewActions(ViewActions viewActions) Deprecated, for removal: This API element is subject to removal in a future version.voidsetViewData(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, setParentContextMethods 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
addInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getParentContext
-
Field Details
-
view
-
fullFrameId
-
currentFrameId
-
preInitTasks
-
autowireTasks
-
-
Constructor Details
-
ComponentLoaderContext
public ComponentLoaderContext()
-
-
Method Details
-
getViewData
- Specified by:
getViewDatain interfaceComponentLoader.ComponentContext- Returns:
- an instance of
ViewDataobject associated with the origin view
-
setViewData
Deprecated, for removal: This API element is subject to removal in a future version. -
getViewActions
- Specified by:
getViewActionsin 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:
getOriginin interfaceComponentLoader.Context- Returns:
- a target component for which an XML descriptor is processed
-
getView
- Specified by:
getViewin interfaceComponentLoader.ComponentContext- Returns:
- an origin view
-
setView
-
getFullFrameId
- Specified by:
getFullFrameIdin interfaceComponentLoader.ComponentContext
-
setFullFrameId
-
getCurrentFrameId
- Specified by:
getCurrentFrameIdin interfaceComponentLoader.ComponentContext
-
setCurrentFrameId
-
addPreInitTask
Description copied from interface:ComponentLoader.ComponentContextAdds 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.ComponentContext- Parameters:
task- a task to add
-
addAutowireTask
Description copied from interface:ComponentLoader.ComponentContextAddComponentLoader.AutowireTaskthat will be executed according to the origin component lifecycle.- Specified by:
addAutowireTaskin interfaceComponentLoader.ComponentContext- Parameters:
task- a task to add
-
getParent
- Specified by:
getParentin 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.ComponentContextExecutes all addedComponentLoader.InitTasks- Specified by:
executePreInitTasksin interfaceComponentLoader.ComponentContext
-
executeAutowireTasks
public void executeAutowireTasks()Description copied from interface:ComponentLoader.ComponentContextExecuted all addedComponentLoader.AutowireTasks- Specified by:
executeAutowireTasksin interfaceComponentLoader.ComponentContext
-
AbstractLoaderContext.setParentContext(ComponentLoader.Context)instead