Class AbstractAssignActionInitTask<C extends com.vaadin.flow.component.Component>
java.lang.Object
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 Object
implements ComponentLoader.InitTask
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddAction(ComponentLoader.ComponentContext context, Action action) voidexecute(ComponentLoader.ComponentContext context, View<?> view) This method will be invoked after view initialization.protected ActiongetActionRecursively(ComponentLoader.ComponentContext context, String actionId) protected Optional<com.vaadin.flow.component.Component>getComponent(View<?> view, String id) protected Stringprotected abstract booleanhasOwnAction(String id) protected voidrunAfterExecuteHandler(Action action) voidsetAfterExecuteHandler(Consumer<Action> afterExecuteHandler)
-
Field Details
-
component
-
actionId
-
view
-
afterExecuteHandler
-
-
Constructor Details
-
AbstractAssignActionInitTask
-
-
Method Details
-
execute
Description copied from interface:ComponentLoader.InitTaskThis method will be invoked after view initialization.- Specified by:
executein interfaceComponentLoader.InitTask- Parameters:
context- loader contextview- view
-
hasOwnAction
-
addAction
-
setAfterExecuteHandler
-
runAfterExecuteHandler
-
getActionRecursively
@Nullable protected Action getActionRecursively(ComponentLoader.ComponentContext context, String actionId) -
getExceptionMessage
-
getComponent
-