Class SubReportDemo
java.lang.Object
org.pentaho.reporting.engine.classic.demo.util.AbstractDemoHandler
org.pentaho.reporting.engine.classic.demo.util.AbstractXmlDemoHandler
org.pentaho.reporting.engine.classic.demo.ancient.demo.subreport.SubReportDemo
- All Implemented Interfaces:
DemoHandler
,InternalDemoHandler
,XmlDemoHandler
The MultiReportDemo combines data from multiple table models into one single report.
For a detailed explaination of the demo have a look at the file file'.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.reporting.engine.classic.core.MasterReport
Creates the report.Returns the URL of the HTML document describing this demo.Returns the display name of the demo.Returns the presentation component for this demo.Returns the URL of the XML definition for this report.static void
Methods inherited from class org.pentaho.reporting.engine.classic.demo.util.AbstractXmlDemoHandler
getPreviewHandler, parseReport
Methods inherited from class org.pentaho.reporting.engine.classic.demo.util.AbstractDemoHandler
createDefaultTable, getController, setController
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.reporting.engine.classic.demo.util.InternalDemoHandler
getController, setController
-
Constructor Details
-
SubReportDemo
public SubReportDemo()
-
-
Method Details
-
getDemoName
Description copied from interface:InternalDemoHandler
Returns the display name of the demo.- Returns:
- the name.
-
createReport
public org.pentaho.reporting.engine.classic.core.MasterReport createReport() throws ReportDefinitionExceptionDescription copied from interface:InternalDemoHandler
Creates the report. For XML reports, this will most likely call the ReportGenerator, while API reports may use this function to build and return a new, fully initialized report object.- Returns:
- the fully initialized JFreeReport object.
- Throws:
ReportDefinitionException
- if an error occured preventing the report definition.
-
getDemoDescriptionSource
Description copied from interface:InternalDemoHandler
Returns the URL of the HTML document describing this demo.- Returns:
- the demo description.
-
getPresentationComponent
Description copied from interface:InternalDemoHandler
Returns the presentation component for this demo. This component is shown before the real report generation is started. Ususally it contains a JTable with the demo data and/or input components, which allow to configure the report.- Returns:
- the presentation component, never null.
-
getReportDefinitionSource
Description copied from interface:XmlDemoHandler
Returns the URL of the XML definition for this report.- Returns:
- the URL of the report definition.
-
main
public static void main(String[] args) throws org.pentaho.reporting.engine.classic.core.ReportProcessingException, IOException, ReportDefinitionException, org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException - Throws:
org.pentaho.reporting.engine.classic.core.ReportProcessingException
IOException
ReportDefinitionException
org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException
-