Package org.adempiere.webui.window
Class JasperPrintRenderer
java.lang.Object
org.adempiere.webui.window.JasperPrintRenderer
Media renderer for JasperPrint
-
Field Summary
Modifier and TypeFieldDescriptionprotected net.sf.jasperreports.engine.JasperPrint
-
Constructor Summary
ConstructorDescriptionJasperPrintRenderer
(List<net.sf.jasperreports.engine.JasperPrint> jasperPrintList, String title) JasperPrintRenderer
(net.sf.jasperreports.engine.JasperPrint jasperPrint, String title) -
Method Summary
Modifier and TypeMethodDescriptionprotected File
Create PDF outputGet supported export formatstatic String
getFileExtension
(String outputType) Get file extensionorg.zkoss.util.media.AMedia
Create media output for requested contentType+fileExtensionstatic String
getMIMEType
(String outputType) Get MIME typeprotected File
getPDF()
Get generated PDF filestatic ValueNamePair[]
getPreviewType
(boolean canExport) Get supported preview typesint
Get row countvoid
setRowCount
(int rowCount) Set row count
-
Field Details
-
jasperPrint
protected net.sf.jasperreports.engine.JasperPrint jasperPrint -
mediaSuppliers
-
-
Constructor Details
-
Method Details
-
getMedia
Create media output for requested contentType+fileExtension- Parameters:
contentType
-fileExtension
-- Returns:
- media
-
getExportFormats
Get supported export format- Returns:
- export formats
-
getPreviewType
Get supported preview types- Parameters:
canExport
- true if role has export right- Returns:
- preview types
-
createPDF
Create PDF output- Returns:
- PDF file
- Throws:
IOException
net.sf.jasperreports.engine.JRException
-
getPDF
Get generated PDF file- Returns:
- pdf file or null
-
setRowCount
public void setRowCount(int rowCount) Set row count- Parameters:
rowCount
-
-
getRowCount
public int getRowCount()Get row count- Returns:
-
getMIMEType
Get MIME type- Parameters:
outputType
-- Returns:
- MIME type
-
getFileExtension
Get file extension- Parameters:
outputType
-- Returns:
- file extension
-