Package io.jmix.flowui.action.view
Class OperationResultViewAction<A extends OperationResultViewAction<A,V>,V extends View<?>>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction<A>
io.jmix.flowui.action.ObservableBaseAction<A>
io.jmix.flowui.action.SecuredBaseAction<A>
io.jmix.flowui.action.view.ViewAction<A,V>
io.jmix.flowui.action.view.OperationResultViewAction<A,V>
- All Implemented Interfaces:
ExecutableAction,OperationResultAction,TargetAction<V>,Action,HasShortcutCombination
- Direct Known Subclasses:
DetailCloseAction,DetailDiscardAction,DetailEnableEditingAction,DetailSaveAction,DetailSaveCloseAction,LookupDiscardAction,LookupSelectAction,ViewCloseAction
public abstract class OperationResultViewAction<A extends OperationResultViewAction<A,V>,V extends View<?>>
extends ViewAction<A,V>
implements OperationResultAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Runnableprotected Supplier<OperationResult> protected OperationResultprotected RunnableFields inherited from class io.jmix.flowui.action.view.ViewAction
targetFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledRulesFields inherited from class io.jmix.flowui.action.ObservableBaseAction
uiObservationSupportFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes theActionvoidsetFailHandler(@Nullable Runnable failHandler) voidsetNextStepSupplier(@Nullable Supplier<OperationResult> nextStepSupplier) voidsetSuccessHandler(@Nullable Runnable successHandler) withFailHandler(@Nullable Runnable failHandler) withNextStepSupplier(@Nullable Supplier<OperationResult> nextStepSupplier) withSuccessHandler(@Nullable Runnable successHandler) Methods inherited from class io.jmix.flowui.action.view.ViewAction
actionPerform, checkTarget, getTarget, initAction, isApplicable, setTarget, withTargetMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isPermitted, refreshState, removeEnabledRuleMethods inherited from class io.jmix.flowui.action.ObservableBaseAction
getUiObservationSupportMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, self, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, withDescription, withEnabled, withHandler, withIcon, withShortcutCombination, withText, withVariant, withVisibleMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getIconComponent, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setIconComponent, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
actionPerform, addPropertyChangeListener, getDescription, getIcon, getIconComponent, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setIconComponent, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
nextStepSupplier
-
successHandler
-
failHandler
-
operationResult
-
-
Constructor Details
-
OperationResultViewAction
-
-
Method Details
-
getOperationResult
- Specified by:
getOperationResultin interfaceOperationResultAction
-
setNextStepSupplier
- Specified by:
setNextStepSupplierin interfaceOperationResultAction
-
withNextStepSupplier
-
setSuccessHandler
- Specified by:
setSuccessHandlerin interfaceOperationResultAction
-
withSuccessHandler
-
setFailHandler
- Specified by:
setFailHandlerin interfaceOperationResultAction
-
withFailHandler
-
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction- Specified by:
executein interfaceExecutableAction
-