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 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.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
ViewData
object 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.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
- Parameters:
task
- a task to add
-
executePreInitTasks
void executePreInitTasks()Executes all addedComponentLoader.InitTask
s -
addAutowireTask
AddComponentLoader.AutowireTask
that will be executed according to the origin component lifecycle.- Parameters:
task
- a task to add
-
executeAutowireTasks
void executeAutowireTasks()Executed all addedComponentLoader.AutowireTask
s
-
ComponentLoader.Context.getFullOriginId()