@StudioAction(category="Reports list actions", description="Prints the reports for a list of entity instances associated with a list component") @ActionType(value="listPrintForm") public class ListPrintFormAction extends AbstractPrintFormAction implements com.haulmont.cuba.gui.components.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.
com.haulmont.cuba.gui.components.Action.ActionPerformedEvent, com.haulmont.cuba.gui.components.Action.AdjustWhenScreenReadOnly, com.haulmont.cuba.gui.components.Action.BeforeActionPerformedHandler, com.haulmont.cuba.gui.components.Action.DisabledWhenScreenReadOnly, com.haulmont.cuba.gui.components.Action.ExecutableAction, com.haulmont.cuba.gui.components.Action.HasBeforeActionPerformedHandler, com.haulmont.cuba.gui.components.Action.HasOpenType, com.haulmont.cuba.gui.components.Action.HasPrimaryState, com.haulmont.cuba.gui.components.Action.HasSecurityConstraint, com.haulmont.cuba.gui.components.Action.HasTarget, com.haulmont.cuba.gui.components.Action.SecuredAction, com.haulmont.cuba.gui.components.Action.Status
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
ListPrintFormAction() |
ListPrintFormAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(com.haulmont.cuba.gui.components.Component component) |
com.haulmont.cuba.gui.components.ListComponent |
getTarget() |
void |
setIcons(com.haulmont.cuba.gui.icons.Icons icons) |
void |
setMessages(com.haulmont.cuba.core.global.Messages messages) |
void |
setTarget(com.haulmont.cuba.gui.components.ListComponent target) |
getBeforeActionPerformedHandler, setBeforeActionPerformedHandler
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isPrimary, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombination, setVisible
equals, 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, setIconFromSet, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
public ListPrintFormAction()
public ListPrintFormAction(java.lang.String id)
@Inject public void setIcons(com.haulmont.cuba.gui.icons.Icons icons)
@Inject public void setMessages(com.haulmont.cuba.core.global.Messages messages)
public com.haulmont.cuba.gui.components.ListComponent getTarget()
getTarget
in interface com.haulmont.cuba.gui.components.Action.HasTarget
public void setTarget(com.haulmont.cuba.gui.components.ListComponent target)
setTarget
in interface com.haulmont.cuba.gui.components.Action.HasTarget
public void actionPerform(com.haulmont.cuba.gui.components.Component component)
actionPerform
in interface com.haulmont.cuba.gui.components.Action