public interface ReportEngine
FreeReportEngine (for JFreeReport 0.8.4_10) and
DynamicJasperEngine (for JasperReports 3.5.1).| Modifier and Type | Method and Description |
|---|---|
void |
buildOptions()
Convenience method.
|
boolean |
checkLibraries()
Implementation of this method for each engine must check libraries in
classpath and return true/false whether all required for reports are
present/missed.
|
void |
close()
Invalidates the viewer.
|
void |
dispose()
Method to dispose all resources.
|
BasicReportStoreDefinition |
generaReportStoreDefinition(String pageTitle)
This method should be only implemented to define a custom report store
for reports in our application.
|
Object |
generateReport(String pageTitle,
String description)
Generates the report.
|
Object |
getBaseTemplate()
Gets the viewer for this engine.
|
Hashtable |
getColumnWidth() |
List |
getDefaultTemplates()
Returns the list of templates for reports.
|
String |
getPageTitle()
Gets the title of report (Maintains backward compatibility).
|
PreviewDialog |
getPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base)
Implementation of this method for each engine must return a dialog with
printed report.
|
PreviewDialog |
getPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
ReportProcessor r)
Implementation of this method for each engine must return a dialog with
printed report.
|
PreviewDialog |
getPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc)
Implementation of this method for each engine must return a dialog with
printed report.
|
PreviewDialog |
getPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc,
ReportProcessor r)
Implementation of this method for each engine must return a dialog with
printed report.
|
PreviewDialog |
getPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc,
ReportProcessor r,
PageFormat pf)
Implementation of this method for each engine must return a dialog with
printed report.
|
String |
getReportDescription()
Gets the description of report (subtitle).
|
String |
getReportEngineName()
Returns the name of report engine.
|
String |
getTitle()
Gets the title of report.
|
String |
getXMLTemplate() |
void |
setDefaultReportDialog(Object reportDialog)
Report dialog is passed to engine to get references to dialog elements
from engine (i.e. check buttons marked, columns selected,...).
|
void |
setReportDescription(String text)
Sets the title of report.
|
void |
setTitleReport(String text)
Sets the title of report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
String xMLTemplate,
URL base)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
String template,
URL base,
ReportProcessor rp)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
ReportProcessor rp)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc,
ReportProcessor rp)
Implementation of this method for each engine must show a dialog with
printed report.
|
PreviewDialog |
showPreviewDialog(Component c,
String title,
TableModel m,
URL xMLTemplate,
URL base,
String[] order,
boolean[] asc,
ReportProcessor rp,
PageFormat pf)
Implementation of this method for each engine must show a dialog with
printed report.
|
void |
updateReport(boolean force)
Updates the report.
|
Object getBaseTemplate()
void close()
void dispose()
String getTitle()
void setTitleReport(String text)
text - the text to set in titlevoid setReportDescription(String text)
text - the text to set in titleString getReportDescription()
Object generateReport(String pageTitle, String description) throws Exception
pageTitle - the title of reportdescription - subtitle of reportException - A new Exceptionvoid updateReport(boolean force)
force - The boolean to allow/deny dynamically updates when user
presses the update dynamically button in report dialog.String getPageTitle()
void setDefaultReportDialog(Object reportDialog)
reportDialog - the report dialog to be used in engine.BasicReportStoreDefinition generaReportStoreDefinition(String pageTitle)
pageTitle - the title of pageList getDefaultTemplates()
List of templatesvoid buildOptions()
String getReportEngineName()
String getXMLTemplate() throws IOException
IOExceptionHashtable getColumnWidth()
boolean checkLibraries()
PreviewDialog showPreviewDialog(Component c, String title, TableModel m, String template, URL base, ReportProcessor rp) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, String xMLTemplate, URL base) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, ReportProcessor rp) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc, ReportProcessor rp) throws Exception
ExceptionPreviewDialog showPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc, ReportProcessor rp, PageFormat pf) throws Exception
ExceptionPreviewDialog getPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, ReportProcessor r) throws Exception
ExceptionPreviewDialog getPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base) throws Exception
ExceptionPreviewDialog getPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc) throws Exception
ExceptionPreviewDialog getPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc, ReportProcessor r) throws Exception
ExceptionPreviewDialog getPreviewDialog(Component c, String title, TableModel m, URL xMLTemplate, URL base, String[] order, boolean[] asc, ReportProcessor r, PageFormat pf) throws Exception
ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.