Package io.jmix.reportsflowui.runner
Class TableReportResultHandler
java.lang.Object
io.jmix.reportsflowui.runner.TableReportResultHandler
- All Implemented Interfaces:
ReportResultHandler
@NullMarked
@Order(100)
@Component("report_TableReportResultHandler")
public class TableReportResultHandler
extends Object
implements ReportResultHandler
ReportResultHandler that opens report output with the table output type
in a table viewer (either dialog or via navigation, depending on configuration).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DialogWindowsprotected org.springframework.beans.factory.ObjectProvider<OpenedDialogWindows> protected ReportsClientPropertiesprotected ViewNavigators -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseOpenedDialogs(View<?> owner) Closes any dialog views currently opened in the owner's UI before navigating to the table view, so that the navigation target is not hidden behind leftover modal layers (e.g.booleanhandle(ReportOutputDocument document, UiReportRunContext context) Handles the report output document by opening it in the table viewer.
-
Field Details
-
dialogWindows
-
reportsClientProperties
-
openedDialogWindowsProvider
@Autowired protected org.springframework.beans.factory.ObjectProvider<OpenedDialogWindows> openedDialogWindowsProvider
-
-
Constructor Details
-
TableReportResultHandler
public TableReportResultHandler()
-
-
Method Details
-
handle
Handles the report output document by opening it in the table viewer.Returns
trueif the document was handled (output type istable),falseto pass handling to the next handler in the chain.- Specified by:
handlein interfaceReportResultHandler- Parameters:
document- the generated report documentcontext- the run context that produced the document- Returns:
trueif the document was handled and further handlers should not be invoked,falseto pass to the next handler
-
closeOpenedDialogs
Closes any dialog views currently opened in the owner's UI before navigating to the table view, so that the navigation target is not hidden behind leftover modal layers (e.g. the input parameters dialog).
-