@StudioAction(target="io.jmix.ui.component.ListComponent", description="Prints the reports for a list of entity instances associated with a list component") @ActionType(value="listPrintForm") public class ListPrintFormAction extends AbstractPrintFormAction implements io.jmix.ui.action.Action.HasTarget
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.
io.jmix.ui.action.Action.ActionPerformedEvent, io.jmix.ui.action.Action.AdjustWhenScreenReadOnly, io.jmix.ui.action.Action.ExecutableAction, io.jmix.ui.action.Action.HasPrimaryState, io.jmix.ui.action.Action.HasSecurityConstraint, io.jmix.ui.action.Action.HasTarget, io.jmix.ui.action.Action.MainTabSheetAction, io.jmix.ui.action.Action.ScreenOpeningAction, io.jmix.ui.action.Action.SecuredAction, io.jmix.ui.action.Action.Status
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
protected io.jmix.ui.component.ListComponent |
target |
currentUserSubstitution, dataManager, fetchPlanRepository, messages, metadata, prototypesLoader, reportsClientProperties, reportSecurityManager, screenBuilder, screens, uiReportRunner
Constructor and Description |
---|
ListPrintFormAction() |
ListPrintFormAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(io.jmix.ui.component.Component component) |
io.jmix.ui.component.ListComponent |
getTarget() |
protected boolean |
isDataAvailable() |
protected void |
printAll() |
protected void |
printSelected(java.util.Set selected) |
void |
setIcons(io.jmix.ui.icon.Icons icons) |
void |
setMessages(io.jmix.core.Messages messages) |
void |
setTarget(io.jmix.ui.component.ListComponent target) |
convertParameterIfNecessary, getParameterAlias, handleCollectionParameter, openReportParamsDialog, openRunReportScreen, openRunReportScreen, parameterMatchesMetaClass, reloadReport, runAndShow, runReport
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected io.jmix.ui.component.ListComponent target
public ListPrintFormAction()
public ListPrintFormAction(java.lang.String id)
@Autowired public void setIcons(io.jmix.ui.icon.Icons icons)
@Autowired public void setMessages(io.jmix.core.Messages messages)
public io.jmix.ui.component.ListComponent getTarget()
getTarget
in interface io.jmix.ui.action.Action.HasTarget
public void setTarget(io.jmix.ui.component.ListComponent target)
setTarget
in interface io.jmix.ui.action.Action.HasTarget
public void actionPerform(io.jmix.ui.component.Component component)
actionPerform
in interface io.jmix.ui.action.Action
protected boolean isDataAvailable()
protected void printSelected(java.util.Set selected)
protected void printAll()