Class CreateNotificationAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction<CreateNotificationAction>
io.jmix.flowui.action.ObservableBaseAction<CreateNotificationAction>
io.jmix.flowui.action.SecuredBaseAction<CreateNotificationAction>
io.jmix.flowui.action.view.ViewAction<CreateNotificationAction,View<?>>
io.jmix.notificationsflowui.action.CreateNotificationAction
- All Implemented Interfaces:
ExecutableAction,TargetAction<View<?>>,Action,HasShortcutCombination
@ActionType("ntf_createNotification")
public class CreateNotificationAction
extends ViewAction<CreateNotificationAction,View<?>>
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
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected booleanprotected NotificationDialogsFields 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 theActionprotected booleanprotected voidsetAccessManager(AccessManager accessManager) protected voidsetEnabledInternal(boolean enabled) protected voidprotected voidsetMessages(Messages messages) protected voidsetNotificationDialogOpener(NotificationDialogs notificationDialogOpener) 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, 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
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
-
ID
- See Also:
-
notificationDialogOpener
-
isPermittedBySpecificPermission
protected boolean isPermittedBySpecificPermission
-
-
Constructor Details
-
CreateNotificationAction
public CreateNotificationAction() -
CreateNotificationAction
-
-
Method Details
-
setMessages
-
setIcons
-
setAccessManager
-
setNotificationDialogOpener
-
isEnabledBySpecificUiPermission
protected boolean isEnabledBySpecificUiPermission() -
setEnabledInternal
protected void setEnabledInternal(boolean enabled) - Overrides:
setEnabledInternalin classBaseAction<CreateNotificationAction>
-
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction
-