Java Doc for JFreeReportComponent.java in  » Report » pentaho-report » org » pentaho » plugin » jfreereport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » pentaho report » org.pentaho.plugin.jfreereport 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.pentaho.plugin.jfreereport.AbstractJFreeReportComponent
   org.pentaho.plugin.jfreereport.JFreeReportComponent

All known Subclasses:   org.pentaho.plugin.jfreereport.ReportWizardSpecComponent,
JFreeReportComponent
public class JFreeReportComponent extends AbstractJFreeReportComponent (Code)
The JFreeReportComponent provides a simple-to-use frontend for the reporting process.

This component will execute JFreeReport reports in one of two different modes:

sqlMode = true

This means that the JFreeReport component is expected to execute an SQL query, wrap the resulting SQL Resultset in a TableModel, and use that to execute a report whose definition is in the file system. In this mode, the action-sequence definition must contain the following elements: In the resource-definition section, there must be a resource called "report-definition" which defines the location of the jfreereport xml document.

In the component-definition sction, there must be the following entries:

  • A "query" parameter which contains an SQL query.
  • Either for connecting to the SQL datasource:
    • A "jndi" parameter (with the jndi name of the datasource)
    • or The database parameters "driver", "user-id", "password" and "connection" so that a database connection can be established for running the afore-mentioned "query".

sqlMode = false

This means that the JFreeReport component is expected to execute a report that exists in a .jar file (like the reporting demo reports) along with the TableModel class that provides the data for the report. In this mode, the action-sequence definition must contain the following elements: In the resource-definition section, there must be a resource called "report-jar" that points to the .jar file that contains the report .xml file, and the TableModel implementation.

In the component-definition section, there must be two entries:

  • "report-location" - This is the location of the report .xml document (e.g. org/jfree/report/demo/report1.xml)
  • "class-location" - This is the package-qualified class that implements TableModel (e.g. org.jfree.report.demo.SampleData1).

author:
   mbatchel



Constructor Summary
public  JFreeReportComponent()
    

Method Summary
protected  JFreeReportcreateReport(String reportDefinition)
    
public  voiddone()
    
public  booleanexecuteAction()
     This method gets called from the outside.
protected  booleanexecuteReportAction()
    
protected  IContentItemgetContentItem(String mimeType, String extension)
    
protected  PentahoTableDataFactorygetDataFactory()
    
public  LoggetLogger()
    
public  JFreeReportgetReport()
    
public  booleaninit()
    
protected  booleaninitAndValidate(IComponent component)
    
public  booleanprint(JFreeReport report, String jobName, String printerName)
    
public  booleanvalidateAction()
     We cannot validate the parameters of all components, as the required parameters might not have been created.
public  booleanvalidateSystemSettings()
    
protected  booleanwriteCsv(JFreeReport report, OutputStream outputStream, int yieldRate)
    
public  booleanwriteHtml(JFreeReport report, OutputStream outputStream, int yieldRate, String htmlContentHandlerUrlPattern)
    
protected  booleanwritePdf(JFreeReport report, OutputStream outputStream, int yieldRate)
    
protected  booleanwriteRtf(JFreeReport report, OutputStream outputStream, int yieldRate)
    
protected  booleanwriteSwingPreview(JFreeReport report)
    
protected  booleanwriteXls(JFreeReport report, OutputStream outputStream, int yieldRate)
    
protected  booleanwriteXml(JFreeReport report, OutputStream outputStream)
    


Constructor Detail
JFreeReportComponent
public JFreeReportComponent()(Code)




Method Detail
createReport
protected JFreeReport createReport(String reportDefinition) throws ResourceException, IOException(Code)



done
public void done()(Code)



executeAction
public boolean executeAction()(Code)
This method gets called from the outside. Based upon our mode call the correct function.



executeReportAction
protected boolean executeReportAction()(Code)



getContentItem
protected IContentItem getContentItem(String mimeType, String extension)(Code)



getDataFactory
protected PentahoTableDataFactory getDataFactory() throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception(Code)



getLogger
public Log getLogger()(Code)



getReport
public JFreeReport getReport() throws Exception(Code)



init
public boolean init()(Code)



initAndValidate
protected boolean initAndValidate(IComponent component)(Code)



print
public boolean print(JFreeReport report, String jobName, String printerName)(Code)



validateAction
public boolean validateAction()(Code)
We cannot validate the parameters of all components, as the required parameters might not have been created.



validateSystemSettings
public boolean validateSystemSettings()(Code)



writeCsv
protected boolean writeCsv(JFreeReport report, OutputStream outputStream, int yieldRate)(Code)



writeHtml
public boolean writeHtml(JFreeReport report, OutputStream outputStream, int yieldRate, String htmlContentHandlerUrlPattern)(Code)



writePdf
protected boolean writePdf(JFreeReport report, OutputStream outputStream, int yieldRate)(Code)



writeRtf
protected boolean writeRtf(JFreeReport report, OutputStream outputStream, int yieldRate)(Code)



writeSwingPreview
protected boolean writeSwingPreview(JFreeReport report)(Code)



writeXls
protected boolean writeXls(JFreeReport report, OutputStream outputStream, int yieldRate)(Code)



writeXml
protected boolean writeXml(JFreeReport report, OutputStream outputStream)(Code)



Fields inherited from org.pentaho.plugin.jfreereport.AbstractJFreeReportComponent
final public static String DATACOMPONENT_CLASSLOCINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_DATAINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_DEFAULTINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_JARINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_MDXCLASS(Code)(Java Doc)
final public static String DATACOMPONENT_MDXSOURCE(Code)(Java Doc)
final public static String DATACOMPONENT_REPORTTEMP_DATAFACTORY(Code)(Java Doc)
final public static String DATACOMPONENT_REPORTTEMP_DATAINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_REPORTTEMP_OBJINPUT(Code)(Java Doc)
final public static String DATACOMPONENT_SOURCE(Code)(Java Doc)
final public static String DATACOMPONENT_SQLCLASS(Code)(Java Doc)
final public static String DATACOMPONENT_SQLSOURCE(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_CSV(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_HTML(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_PDF(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_RTF(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_SWING(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_XLS(Code)(Java Doc)
final public static String REPORTALLCONTENT_OUTPUTTYPE_XML(Code)(Java Doc)
final public static String REPORTDIRECTORYHTML_DATADIR(Code)(Java Doc)
final public static String REPORTDIRECTORYHTML_TARGETFILE(Code)(Java Doc)
final public static String REPORTGENERATEDEFN_REPORTDEFN(Code)(Java Doc)
final public static String REPORTGENERATEDEFN_REPORTSPECINPUT(Code)(Java Doc)
final public static String REPORTGENERATEDEFN_REPORTTEMP_PERFQRY(Code)(Java Doc)
final public static String REPORTGENERATESTREAM_REPORT_OUTPUT(Code)(Java Doc)
final public static String REPORTGENERATE_PRIORITYINPUT(Code)(Java Doc)
final public static String REPORTGENERATE_PRIORITYLOWER(Code)(Java Doc)
final public static String REPORTGENERATE_PRIORITYLOWEST(Code)(Java Doc)
final public static String REPORTGENERATE_PRIORITYNORMAL(Code)(Java Doc)
final public static String REPORTGENERATE_YIELDRATE(Code)(Java Doc)
final public static String REPORTHTML_CONTENTHANDLER(Code)(Java Doc)
final public static String REPORTLOAD_REPORTLOC(Code)(Java Doc)
final public static String REPORTLOAD_RESOURCENAME(Code)(Java Doc)
final public static String REPORTLOAD_RESURL(Code)(Java Doc)
final public static String REPORTPARAMCOMPONENT_PRIVATEREPORT_OUTPUT(Code)(Java Doc)
final public static String REPORTSWING_MODAL(Code)(Java Doc)
final public static String REPORTSWING_PARENTDIALOG(Code)(Java Doc)
final public static String REPORTSWING_PROGRESSBAR(Code)(Java Doc)
final public static String REPORTSWING_PROGRESSDIALOG(Code)(Java Doc)
final public static String REPORTSWING_REPORTCONTROLLER(Code)(Java Doc)
final public static String REPORTVALIDATECOMPONENT_REPORTTEMP_UI_NEEDED(Code)(Java Doc)
final public static String WORKBOOK_PARAM(Code)(Java Doc)


www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.