Package io.jmix.flowui.action.screen
Class ScreenAction<A extends ScreenAction<A,S>,S extends Screen>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.screen.ScreenAction<A,S>
- All Implemented Interfaces:
ExecutableAction,SecuredAction,TargetAction<S>,Action
- Direct Known Subclasses:
OperationResultScreenAction
public abstract class ScreenAction<A extends ScreenAction<A,S>,S extends Screen>
extends SecuredBaseAction
implements TargetAction<S>, ExecutableAction
-
Field Summary
FieldsFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, visibleByUiPermissionsFields 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, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(com.vaadin.flow.component.Component component) protected voidprotected voidprotected booleanvoidwithEnabled(boolean enabled) withEnabledByUiPermissions(boolean enabledByUiPermissions) withHandler(Consumer<ActionPerformedEvent> handler) withIcon(com.vaadin.flow.component.icon.VaadinIcon icon) withShortcutCombination(KeyCombination shortcutCombination) withTarget(S target) withVariant(ActionVariant actionVariant) withVisible(boolean visible) withVisibleByUiPermissions(boolean visibleByUiPermissions) Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternalMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, 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
addPropertyChangeListener, getDescription, getIcon, getId, getShortcutCombination, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setShortcutCombination, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.action.ExecutableAction
execute
-
Field Details
-
target
-
-
Constructor Details
-
ScreenAction
-
-
Method Details
-
initAction
protected void initAction() -
getTarget
- Specified by:
getTargetin interfaceTargetAction<A extends ScreenAction<A,S>>
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<A extends ScreenAction<A,S>>
-
withTarget
-
withText
- Overrides:
withTextin classSecuredBaseAction
-
withEnabled
- Overrides:
withEnabledin classSecuredBaseAction
-
withVisible
- Overrides:
withVisiblein classSecuredBaseAction
-
withIcon
- Overrides:
withIconin classSecuredBaseAction
-
withIcon
- Overrides:
withIconin classSecuredBaseAction
-
withTitle
- Overrides:
withTitlein classSecuredBaseAction
-
withVariant
- Overrides:
withVariantin classSecuredBaseAction
-
withShortcutCombination
- Overrides:
withShortcutCombinationin classSecuredBaseAction
-
withHandler
- Overrides:
withHandlerin classSecuredBaseAction
-
withEnabledByUiPermissions
- Overrides:
withEnabledByUiPermissionsin classSecuredBaseAction
-
withVisibleByUiPermissions
- Overrides:
withVisibleByUiPermissionsin classSecuredBaseAction
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) - Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classBaseAction
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicablein classBaseAction
-
checkTarget
protected void checkTarget()
-