Class CreateNotificationAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.view.ViewAction<CreateNotificationAction,CreateNotificationDialog>
io.jmix.notificationsflowui.action.CreateNotificationAction
- All Implemented Interfaces:
ExecutableAction
,SecuredAction
,TargetAction<CreateNotificationDialog>
,Action
,HasShortcutCombination
@ActionType("ntf_createNotification")
public class CreateNotificationAction
extends ViewAction<CreateNotificationAction,CreateNotificationDialog>
Action opens create notification dialog.
Action uses NotificationsCreateDialogContext
specific permission to enable/disable its state.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected boolean
protected NotificationDialogs
Fields inherited from class io.jmix.flowui.action.view.ViewAction
target
Fields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissions
Fields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitly
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerform
(com.vaadin.flow.component.Component component) void
execute()
Executes theAction
protected void
boolean
protected void
setAccessManager
(AccessManager accessManager) protected void
setMessages
(Messages messages) protected void
setNotificationDialogOpener
(NotificationDialogs notificationDialogOpener) Methods inherited from class io.jmix.flowui.action.view.ViewAction
checkTarget, getTarget, isApplicable, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal
Methods 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, setVariant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
notificationDialogOpener
-
isPermittedBySpecificPermission
protected boolean isPermittedBySpecificPermission
-
-
Constructor Details
-
CreateNotificationAction
public CreateNotificationAction() -
CreateNotificationAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initAction
in classViewAction<CreateNotificationAction,
CreateNotificationDialog>
-
setMessages
-
setAccessManager
-
setNotificationDialogOpener
-
isEnabledByUiPermissions
public boolean isEnabledByUiPermissions()- Specified by:
isEnabledByUiPermissions
in interfaceSecuredAction
- Overrides:
isEnabledByUiPermissions
in classSecuredBaseAction
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) - Specified by:
actionPerform
in interfaceAction
- Overrides:
actionPerform
in classViewAction<CreateNotificationAction,
CreateNotificationDialog>
-
execute
public void execute()Description copied from interface:ExecutableAction
Executes theAction
-