Package io.jmix.reportsui.action
Class AbstractPrintFormAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.reportsui.action.AbstractPrintFormAction
- All Implemented Interfaces:
Action
,Action.HasPrimaryState
- Direct Known Subclasses:
EditorPrintFormAction
,ListPrintFormAction
-
Nested Class Summary
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.OperationResultAction, Action.ScreenAction<S extends Screen>, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentUserSubstitution
protected DataManager
protected FetchPlanRepository
protected Messages
protected Metadata
protected PrototypesLoader
protected ReportsClientProperties
protected ReportSecurityManager
protected ScreenBuilders
protected Screens
protected UiReportRunner
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 TypeMethodDescriptionprotected Object
convertParameterIfNecessary
(ReportInputParameter parameter, Object paramValue, boolean useForInputParametersForm) protected ReportInputParameter
getParameterAlias
(Report report, MetaClass inputValueMetaClass) protected Object
handleCollectionParameter
(Object paramValue, boolean convertToSingleItem) protected void
openReportParamsDialog
(Report report, Map<String, Object> params, String outputNamePattern, ReportInputParameter inputParameter, boolean bulkPrint) protected void
openRunReportScreen
(Screen screen, Object selectedValue, MetaClass inputValueMetaClass) protected void
openRunReportScreen
(Screen screen, Object selectedValue, MetaClass inputValueMetaClass, String outputFileName) protected boolean
parameterMatchesMetaClass
(ReportInputParameter parameter, MetaClass metaClass) protected Report
reloadReport
(Report report) void
runAndShow
(Report report, FrameOwner screen, ReportInputParameter reportInputParameter, Object parameterValue, String outputFileName) protected void
runReport
(Report report, Screen screen, Object selectedValue, MetaClass inputValueMetaClass, String outputFileName) Methods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setPrimary, setShortcut, setShortcutCombination, setVisible
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
-
Field Details
-
reportSecurityManager
-
dataManager
-
messages
-
screenBuilder
-
fetchPlanRepository
-
currentUserSubstitution
-
uiReportRunner
-
screens
-
prototypesLoader
-
metadata
-
reportsClientProperties
-
-
Constructor Details
-
AbstractPrintFormAction
-
-
Method Details
-
openRunReportScreen
-
openRunReportScreen
-
runReport
-
runAndShow
public void runAndShow(Report report, FrameOwner screen, ReportInputParameter reportInputParameter, Object parameterValue, @Nullable String outputFileName) -
openReportParamsDialog
-
convertParameterIfNecessary
@Nullable protected Object convertParameterIfNecessary(ReportInputParameter parameter, Object paramValue, boolean useForInputParametersForm) -
handleCollectionParameter
-
getParameterAlias
-
parameterMatchesMetaClass
-
reloadReport
-