Package io.jmix.flowui.xml.layout
Interface ComponentLoader.ComponentContext
- All Superinterfaces:
ComponentLoader.Context
- All Known Implementing Classes:
ComponentLoaderContext
- Enclosing interface:
- ComponentLoader<T extends com.vaadin.flow.component.Component>
-
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.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getParentContext()insteadView<?>getView()Deprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getActionsHolder()insteadDeprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getDataHolder()insteadMethods inherited from interface io.jmix.flowui.xml.layout.ComponentLoader.Context
addInitTask, executeInitTasks, getActionsHolder, getDataHolder, getFullOriginId, getMessageGroup, getOrigin, getParentContext
-
Method Details
-
getViewData
Deprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getDataHolder()instead- Returns:
- an instance of
ViewDataobject associated with the origin view
-
getViewActions
Deprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getActionsHolder()instead- Returns:
- actions holder object
-
getParent
Deprecated, for removal: This API element is subject to removal in a future version.UseComponentLoader.Context.getParentContext()instead- Returns:
- parent loader context
-
getFullFrameId
Deprecated, for removal: This API element is subject to removal in a future version. -
getCurrentFrameId
Deprecated, for removal: This API element is subject to removal in a future version. -
getView
View<?> getView()- Returns:
- an origin view
-
addPreInitTask
Adds 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
- Parameters:
task- a task to add
-
executePreInitTasks
void executePreInitTasks()Executes all addedComponentLoader.InitTasks -
addAutowireTask
AddComponentLoader.AutowireTaskthat will be executed according to the origin component lifecycle.- Parameters:
task- a task to add
-
executeAutowireTasks
void executeAutowireTasks()Executed all addedComponentLoader.AutowireTasks
-
ComponentLoader.Context.getFullOriginId()