org.zkoss.zkex.zul
Interface JasperreportExporterFactory

All Known Implementing Classes:
Jasperreport.JasperreporteExporterImpl

public interface JasperreportExporterFactory

The factory for Jasper Reports.

Since:
5.0.8
Author:
tony

Method Summary
 java.lang.String getContentType(java.lang.String type)
          return the content type for specific type For example , xls => "application/vnd.ms-excel";
 java.lang.String getFormat(java.lang.String type)
          Return the file extension name.
 net.sf.jasperreports.engine.JRExporter getJRExporter(java.lang.String type)
          Currently Supported type list.
 

Method Detail

getJRExporter

net.sf.jasperreports.engine.JRExporter getJRExporter(java.lang.String type)
Currently Supported type list.
  1. pdf
  2. xml
  3. html
  4. rtf
  5. xls
  6. jxl
  7. csv
  8. odt
  9. xlsx
  10. docx
  11. graphic2d
  12. ods
  13. pptx
  14. txt
  15. xhtml

Parameters:
type -
Returns:
JRExporter

getFormat

java.lang.String getFormat(java.lang.String type)
Return the file extension name. For example , jxl => "xls" , pdf => "pdf";

Parameters:
type -
Returns:
String

getContentType

java.lang.String getContentType(java.lang.String type)
return the content type for specific type For example , xls => "application/vnd.ms-excel";

Parameters:
type -
Returns:
String


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo