Interface ComponentLoader.Context

All Known Subinterfaces:
ComponentLoader.ComponentContext, ComponentLoader.FragmentContext
All Known Implementing Classes:
AbstractLoaderContext, ComponentLoaderContext, FragmentLoaderContext
Enclosing interface:
ComponentLoader<T extends com.vaadin.flow.component.Component>

public static interface ComponentLoader.Context
  • Method Details

    • getOrigin

      com.vaadin.flow.component.Component getOrigin()
      Returns:
      a target component for which an XML descriptor is processed
    • getFullOriginId

      String getFullOriginId()
      Returns:
      a target component id, including parent component ids
    • getParentContext

      @Nullable ComponentLoader.Context getParentContext()
      Returns:
      parent loader context
    • getMessageGroup

      String getMessageGroup()
      Returns:
      a message group associated with XML descriptor
    • addInitTask

      void addInitTask(ComponentLoader.InitTask task)
      Adds ComponentLoader.InitTask that will be executed according to the origin component lifecycle.
      Parameters:
      task - a task to add
    • executeInitTasks

      void executeInitTasks()
      Executes all added ComponentLoader.InitTasks
    • getActionsHolder

      HasActions getActionsHolder()
      Returns:
      an object that stores actions associated with the origin component
    • getDataHolder

      HasDataComponents getDataHolder()
      Returns:
      an object that stores data components associated with the origin component