Package io.jmix.ui.action
Class ListAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.ListAction
- All Implemented Interfaces:
Action
,Action.HasPrimaryState
,Action.HasTarget
,Action.SecuredAction
- Direct Known Subclasses:
AddAction
,CreateAction
,EditFetchPlanAction
,ExecutionHistoryAction
,ExportAction
,RefreshAction
,ResetRememberMeTokenAction
,RunReportAction
,SecuredListAction
,ShowPivotAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRule
Nested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Fields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
Fields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setTarget
(ListComponent target) withCaption
(String caption) Set caption using fluent API method.withDescription
(String description) Set description using fluent API method.withHandler
(Consumer<Action.ActionPerformedEvent> handler) Set action performed event handler using fluent API method.Set icon using fluent API method.withPrimary
(boolean primary) Set whether this action is primary using fluent API method.withShortcut
(String shortcut) Set shortcut using fluent API method.Methods inherited from class io.jmix.ui.action.BaseAction
actionPerform, addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
Methods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.action.Action
actionPerform, addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
target
-
-
Constructor Details
-
ListAction
-
ListAction
-
-
Method Details
-
getTarget
- Specified by:
getTarget
in interfaceAction.HasTarget
-
setTarget
- Specified by:
setTarget
in interfaceAction.HasTarget
-
withCaption
Set caption using fluent API method.- Overrides:
withCaption
in classBaseAction
- Parameters:
caption
- caption- Returns:
- current instance of action
-
withDescription
Set description using fluent API method.- Overrides:
withDescription
in classBaseAction
- Parameters:
description
- description- Returns:
- current instance of action
-
withIcon
Set icon using fluent API method.- Overrides:
withIcon
in classBaseAction
- Parameters:
icon
- icon- Returns:
- current instance of action
-
withShortcut
Set shortcut using fluent API method.- Overrides:
withShortcut
in classBaseAction
- Parameters:
shortcut
- shortcut- Returns:
- current instance of action
-
withHandler
Set action performed event handler using fluent API method. Can be used instead of subclassing BaseAction class.- Overrides:
withHandler
in classBaseAction
- Parameters:
handler
- action performed handler- Returns:
- current instance of action
-
withPrimary
Set whether this action is primary using fluent API method. Can be used instead of subclassing BaseAction class.- Overrides:
withPrimary
in classBaseAction
- Parameters:
primary
- primary- Returns:
- current instance of action
-