Package io.jmix.reportsui.action.list
Class RunReportAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.ListAction
io.jmix.reportsui.action.list.RunReportAction
- All Implemented Interfaces:
Action
,Action.HasPrimaryState
,Action.HasTarget
,Action.SecuredAction
@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Runs the reports associated with current screen or list component")
@ActionType("runReport")
public class RunReportAction
extends ListAction
Standard action for running the reports associated with current screen or list component.
Should be defined in the screen that is associated with Report
. Should be defined for a Button
or a list component (Table
, DataGrid
, etc.).
-
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
Modifier and TypeFieldDescriptionprotected DataManager
static final String
static final String
static final String
protected ReportsClientProperties
protected ScreenBuilders
protected UiReportRunner
Fields inherited from class io.jmix.ui.action.ListAction
target
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
actionPerform
(Component component) Invoked by owning component to execute the action.protected void
openLookup
(FrameOwner screen) protected void
openReportParamsDialog
(Report report, FrameOwner screen) protected void
runReports
(Collection<Report> reports, FrameOwner screen) void
setDataManager
(DataManager dataManager) void
void
setMessages
(Messages messages) void
setReportsClientProperties
(ReportsClientProperties reportsClientProperties) void
setScreenBuilders
(ScreenBuilders screenBuilders) void
setUiReportRunner
(UiReportRunner uiReportRunner) Methods inherited from class io.jmix.ui.action.ListAction
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
Methods inherited from class io.jmix.ui.action.BaseAction
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
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
DEFAULT_SINGLE_ENTITY_ALIAS
- See Also:
-
DEFAULT_LIST_OF_ENTITIES_ALIAS
- See Also:
-
dataManager
-
screenBuilders
-
uiReportRunner
-
reportsClientProperties
-
-
Constructor Details
-
RunReportAction
public RunReportAction() -
RunReportAction
-
-
Method Details
-
setIcons
-
setMessages
-
setScreenBuilders
-
setDataManager
-
setUiReportRunner
-
setReportsClientProperties
-
actionPerform
Description copied from interface:Action
Invoked by owning component to execute the action.- Specified by:
actionPerform
in interfaceAction
- Overrides:
actionPerform
in classBaseAction
- Parameters:
component
- invoking component
-
openLookup
-
runReports
-
openReportParamsDialog
-