Class SQLDataSourceDemo
- 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.features.datasource.SQLDataSourceDemo
-
- All Implemented Interfaces:
DemoHandler
,InternalDemoHandler
,XmlDemoHandler
public class SQLDataSourceDemo extends AbstractXmlDemoHandler
Creation-Date: Feb 21, 2007, 4:01:57 PM- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description SQLDataSourceDemo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.reporting.engine.classic.core.MasterReport
createReport()
Creates the report.URL
getDemoDescriptionSource()
Returns the URL of the HTML document describing this demo.String
getDemoName()
Returns the display name of the demo.JComponent
getPresentationComponent()
Returns the presentation component for this demo.URL
getReportDefinitionSource()
Returns the URL of the XML definition for this report.static void
main(String[] args)
-
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
-
-
-
-
Method Detail
-
getDemoName
public String getDemoName()
Returns the display name of the demo.- Returns:
- the name.
-
createReport
public org.pentaho.reporting.engine.classic.core.MasterReport createReport() throws ReportDefinitionException
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.
-
getReportDefinitionSource
public URL getReportDefinitionSource()
Returns the URL of the XML definition for this report.- Returns:
- the URL of the report definition.
-
getDemoDescriptionSource
public URL getDemoDescriptionSource()
Returns the URL of the HTML document describing this demo.- Returns:
- the demo description.
-
getPresentationComponent
public JComponent getPresentationComponent()
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.
-
main
public static void main(String[] args) throws org.pentaho.reporting.engine.classic.core.ReportProcessingException, IOException, ReportDefinitionException, org.pentaho.reporting.libraries.repository.ContentIOException, org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
- Throws:
org.pentaho.reporting.engine.classic.core.ReportProcessingException
IOException
ReportDefinitionException
org.pentaho.reporting.libraries.repository.ContentIOException
org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
-
-