Package io.jmix.flowui.action.usermenu
Class UserMenuAction<A extends UserMenuAction<A,C>,C extends JmixUserMenu<?>>
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.usermenu.UserMenuAction<A,C>
- Type Parameters:
A- the type of the concrete action class extendingUserMenuActionC- the type of theJmixUserMenuthat the action can be associated with
- All Implemented Interfaces:
ExecutableAction,TargetAction<C>,Action,HasShortcutCombination
- Direct Known Subclasses:
UserMenuSubstituteUserAction,UserMenuThemeSwitchAction
public abstract class UserMenuAction<A extends UserMenuAction<A,C>,C extends JmixUserMenu<?>>
extends SecuredBaseAction<A>
implements TargetAction<C>, ExecutableAction
An abstract base class for actions that can be associated with a specific
JmixUserMenu.-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidactionPerform(com.vaadin.flow.component.Component component) Executes action logic.protected void@Nullable UserMenuItemReturns theUserMenuItemassociated with this action.@Nullable Cprotected voidvoidsetMenuItem(@Nullable UserMenuItem menuItem) Sets theUserMenuItemassociated with this action.protected voidsetMenuItemInternal(@Nullable UserMenuItem menuItem) voidprotected voidsetTargetInternal(@Nullable C target) withTarget(@Nullable C target) Methods 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, isApplicable, 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
addPropertyChangeListener, getDescription, getIcon, getIconComponent, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setIconComponent, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.action.ExecutableAction
executeMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
target
-
-
Constructor Details
-
UserMenuAction
-
-
Method Details
-
initAction
protected void initAction() -
getTarget
- Specified by:
getTargetin interfaceTargetAction<A extends UserMenuAction<A,C>>
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<A extends UserMenuAction<A,C>>
-
getMenuItem
Returns theUserMenuItemassociated with this action.- Returns:
- the associated
UserMenuItem, ornullif no menu item is associated
-
setTargetInternal
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) Description copied from interface:ActionExecutes action logic.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classObservableBaseAction<A extends UserMenuAction<A,C>> - Parameters:
component-Componentthat triggered this action
-
withTarget
-
checkTarget
protected void checkTarget()
-