Package io.jmix.reportsui.action.list
Class ListPrintFormAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.reportsui.action.AbstractPrintFormAction
io.jmix.reportsui.action.list.ListPrintFormAction
- All Implemented Interfaces:
Action,Action.HasPrimaryState,Action.HasTarget
@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Prints the reports for a list of entity instances associated with a list component")
@ActionType("listPrintForm")
public class ListPrintFormAction
extends AbstractPrintFormAction
implements Action.HasTarget
Standard action for printing reports for a list of entity instances associated with a list component.
Should be defined for a list component (Table, DataGrid, etc.) in a screen XML descriptor.
The action only selects reports having an external parameter of the Entity or the List of entities type
and where the parameter entity type matches the entity type displayed by the list component.
If only one report is available as a result of selection, it is invoked immediately.
If several reports are available, their list is offered to the user for selection.
-
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
FieldsFields inherited from class io.jmix.reportsui.action.AbstractPrintFormAction
currentUserSubstitution, dataManager, fetchPlanRepository, messages, metadata, prototypesLoader, reportsClientProperties, reportSecurityManager, screenBuilder, screens, uiReportRunnerFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(Component component) Invoked by owning component to execute the action.protected booleanprotected voidprintAll()protected voidprintSelected(Set selected) voidvoidsetMessages(Messages messages) voidsetTarget(ListComponent target) Methods inherited from class io.jmix.reportsui.action.AbstractPrintFormAction
convertParameterIfNecessary, getParameterAlias, handleCollectionParameter, openReportParamsDialog, openRunReportScreen, openRunReportScreen, parameterMatchesMetaClass, reloadReport, runAndShow, runReportMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
-
target
-
-
Constructor Details
-
ListPrintFormAction
public ListPrintFormAction() -
ListPrintFormAction
-
-
Method Details
-
setIcons
-
setMessages
-
getTarget
- Specified by:
getTargetin interfaceAction.HasTarget
-
setTarget
- Specified by:
setTargetin interfaceAction.HasTarget
-
actionPerform
Description copied from interface:ActionInvoked by owning component to execute the action.- Specified by:
actionPerformin interfaceAction- Parameters:
component- invoking component
-
isDataAvailable
protected boolean isDataAvailable() -
printSelected
-
printAll
protected void printAll()
-