Class AbstractAssignActionInitTask<C extends com.vaadin.flow.component.Component>

java.lang.Object
io.jmix.flowui.xml.layout.inittask.AbstractInitTask
io.jmix.flowui.xml.layout.inittask.AbstractAssignActionInitTask<C>
All Implemented Interfaces:
ComponentLoader.InitTask
Direct Known Subclasses:
AssignActionInitTask, AssignActionsInitTask, AssignDropdownButtonActionInitTask

public abstract class AbstractAssignActionInitTask<C extends com.vaadin.flow.component.Component> extends AbstractInitTask
  • Field Details

    • component

      protected C extends com.vaadin.flow.component.Component component
    • actionId

      protected String actionId
    • afterExecuteHandler

      protected Consumer<Action> afterExecuteHandler
  • Constructor Details

    • AbstractAssignActionInitTask

      @Deprecated(since="2.3", forRemoval=true) public AbstractAssignActionInitTask(C component, String actionId, View<?> view)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • AbstractAssignActionInitTask

      public AbstractAssignActionInitTask(C component, String actionId)
  • Method Details

    • execute

      public void execute(ComponentLoader.Context context)
      Description copied from interface: ComponentLoader.InitTask
      This method will be invoked after component's content initialization.
      Parameters:
      context - loader context
    • hasOwnAction

      protected abstract boolean hasOwnAction(String id)
    • addAction

      protected abstract void addAction(ComponentLoader.Context context, Action action)
    • setAfterExecuteHandler

      public void setAfterExecuteHandler(@Nullable Consumer<Action> afterExecuteHandler)
    • runAfterExecuteHandler

      protected void runAfterExecuteHandler(Action action)
    • getActionRecursively

      @Nullable protected Action getActionRecursively(ComponentLoader.Context context, String actionId)
    • getExceptionMessage

      protected String getExceptionMessage(String id)