Class SpreadsheetInlineReportResultHandler
java.lang.Object
io.jmix.reportsspreadsheetflowui.runner.SpreadsheetInlineReportResultHandler
- All Implemented Interfaces:
ReportResultHandler
@Order(200)
@Component("repspd_SpreadsheetInlineReportResultHandler")
public class SpreadsheetInlineReportResultHandler
extends Object
implements ReportResultHandler
ReportResultHandler that opens the report output in the embedded spreadsheet viewer
when the run context targets the spreadsheet presentation
and the output format is supported by the viewer.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReportPresentationRegistryprotected SpreadsheetReportSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(ReportOutputDocument document, UiReportRunContext context) Handles the report output document by opening it in the spreadsheet viewer.protected StringresolveOutputExtension(ReportOutputDocument document, UiReportRunContext context)
-
Field Details
-
spreadsheetReportSupport
-
reportPresentationRegistry
-
-
Constructor Details
-
SpreadsheetInlineReportResultHandler
public SpreadsheetInlineReportResultHandler()
-
-
Method Details
-
handle
Handles the report output document by opening it in the spreadsheet viewer.Returns
trueif the document was successfully handled (presentation is spreadsheet and format is supported),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
-
resolveOutputExtension
-