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 SummaryFieldsModifier and TypeFieldDescriptionprotected List<ComponentLoader.AutowireTask>protected Stringprotected Stringprotected List<ComponentLoader.InitTask>protected View<?>Fields inherited from class io.jmix.flowui.xml.layout.loader.AbstractLoaderContextactionsHolder, dataHolder, fullOriginId, initTasks, messageGroup, parentContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractLoaderContextaddInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getParentContext, setActionsHolder, setDataHolder, setFullOriginId, setMessageGroup, setParentContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.xml.layout.ComponentLoader.ContextaddInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getParentContext
- 
Field Details- 
view
- 
fullFrameId
- 
currentFrameId
- 
preInitTasks
- 
autowireTasks
 
- 
- 
Constructor Details- 
ComponentLoaderContextpublic ComponentLoaderContext()
 
- 
- 
Method Details- 
getViewData- Specified by:
- getViewDatain interface- ComponentLoader.ComponentContext
- Returns:
- an instance of ViewDataobject associated with the origin view
 
- 
setViewDataDeprecated, for removal: This API element is subject to removal in a future version.
- 
getViewActions- Specified by:
- getViewActionsin interface- ComponentLoader.ComponentContext
- Returns:
- actions holder object
 
- 
setViewActionsDeprecated, for removal: This API element is subject to removal in a future version.
- 
getOriginpublic com.vaadin.flow.component.Component getOrigin()- Specified by:
- getOriginin interface- ComponentLoader.Context
- Returns:
- a target component for which an XML descriptor is processed
 
- 
getView- Specified by:
- getViewin interface- ComponentLoader.ComponentContext
- Returns:
- an origin view
 
- 
setView
- 
getFullFrameId- Specified by:
- getFullFrameIdin interface- ComponentLoader.ComponentContext
 
- 
setFullFrameId
- 
getCurrentFrameId- Specified by:
- getCurrentFrameIdin interface- ComponentLoader.ComponentContext
 
- 
setCurrentFrameId
- 
addPreInitTaskDescription 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 interface- ComponentLoader.ComponentContext
- Parameters:
- task- a task to add
 
- 
addAutowireTaskDescription copied from interface:ComponentLoader.ComponentContextAddComponentLoader.AutowireTaskthat will be executed according to the origin component lifecycle.- Specified by:
- addAutowireTaskin interface- ComponentLoader.ComponentContext
- Parameters:
- task- a task to add
 
- 
getParent- Specified by:
- getParentin interface- ComponentLoader.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.
- 
getPreInitTasksDeprecated, for removal: This API element is subject to removal in a future version.
- 
getInitTasksDeprecated, for removal: This API element is subject to removal in a future version.
- 
executePreInitTaskspublic void executePreInitTasks()Description copied from interface:ComponentLoader.ComponentContextExecutes all addedComponentLoader.InitTasks- Specified by:
- executePreInitTasksin interface- ComponentLoader.ComponentContext
 
- 
executeAutowireTaskspublic void executeAutowireTasks()Description copied from interface:ComponentLoader.ComponentContextExecuted all addedComponentLoader.AutowireTasks- Specified by:
- executeAutowireTasksin interface- ComponentLoader.ComponentContext
 
 
- 
AbstractLoaderContext.setParentContext(ComponentLoader.Context)instead