Class 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.

  • Field Details

  • Constructor Details

    • ListPrintFormAction

      public ListPrintFormAction()
    • ListPrintFormAction

      public ListPrintFormAction(String id)
  • Method Details

    • setIcons

      @Autowired public void setIcons(Icons icons)
    • setMessages

      @Autowired public void setMessages(Messages messages)
    • getTarget

      public ListComponent getTarget()
      Specified by:
      getTarget in interface Action.HasTarget
    • setTarget

      public void setTarget(ListComponent target)
      Specified by:
      setTarget in interface Action.HasTarget
    • actionPerform

      public void actionPerform(Component component)
      Description copied from interface: Action
      Invoked by owning component to execute the action.
      Specified by:
      actionPerform in interface Action
      Parameters:
      component - invoking component
    • isDataAvailable

      protected boolean isDataAvailable()
    • printSelected

      protected void printSelected(Set selected)
    • printAll

      protected void printAll()