Package org.idempiere.ui.zk.report
Interface IReportViewerRenderer
- All Known Implementing Classes:
CSVReportViewerRenderer
,HTMLReportViewerRenderer
,PDFReportViewerRenderer
,PSReportViewerRenderer
,SSVReportViewerRenderer
,TabDelimitedReportViewerRenderer
,XLSReportViewerRenderer
,XLSXReportViewerRenderer
,XMLReportViewerRenderer
public interface IReportViewerRenderer
Service interface for rendering of report viewer content.
Implementation must be thread safe.
Implementation must be thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionGet MIME content type (text/html, etc)Renderer label for export output type selectionOutput file extension (without dot)getId()
Get id of rendererdefault String
Renderer label for preview output type selectionboolean
isExport()
Is renderer support exportboolean
isPreview
(boolean roleCanExport) Is renderer support previewdefault boolean
Is export and preview generate the exact same outputdefault String
makePrefix
(String name) Create file name prefix from nameorg.zkoss.util.media.AMedia
renderMedia
(ZkReportViewer viewer, boolean export) Render output media for report
-
Method Details
-
getId
String getId()Get id of renderer- Returns:
- renderer id (PDF, HTML, etc)
-
getExportLabel
String getExportLabel()Renderer label for export output type selection- Returns:
- label for export output type selection
-
getPreviewLabel
Renderer label for preview output type selection- Returns:
- label for preview output type selection
-
getContentType
String getContentType()Get MIME content type (text/html, etc)- Returns:
- MIME content type
-
getFileExtension
String getFileExtension()Output file extension (without dot)- Returns:
- output file extension (html, csv, xls, etc)
-
isExport
boolean isExport()Is renderer support export- Returns:
- true if renderer support export
-
isPreview
boolean isPreview(boolean roleCanExport) Is renderer support preview- Parameters:
roleCanExport
- true if role can export- Returns:
- true if renderer support preview
-
renderMedia
Render output media for report- Parameters:
viewer
-export
-- Returns:
- media
-
isSameContentForExportAndPreview
default boolean isSameContentForExportAndPreview()Is export and preview generate the exact same output- Returns:
- true if export and preview generate the exact same output
-
makePrefix
Create file name prefix from name- Parameters:
name
-- Returns:
- file name prefix from name
-