Class CSVReaderDemo
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.demo.util.AbstractDemoHandler
-
- org.pentaho.reporting.engine.classic.demo.ancient.demo.csv.CSVReaderDemo
-
- All Implemented Interfaces:
DemoHandler
,InternalDemoHandler
public class CSVReaderDemo extends AbstractDemoHandler
Demo that show how to useCSVTableModelProducer
to generateTableModel
for JFreeReport input data.- See Also:
CSVTableModelProducer
-
-
Constructor Summary
Constructors Constructor Description CSVReaderDemo()
Creates the demo workspace.
-
Method Summary
All 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.void
setController(DemoController controler)
Assigns a demo controler to this demo.-
Methods inherited from class org.pentaho.reporting.engine.classic.demo.util.AbstractDemoHandler
createDefaultTable, getController, getPreviewHandler
-
-
-
-
Method Detail
-
getDemoName
public String 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 ReportDefinitionException
Description 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
public URL getDemoDescriptionSource()
Description copied from interface:InternalDemoHandler
Returns the URL of the HTML document describing this demo.- Returns:
- the demo description.
-
setController
public void setController(DemoController controler)
Description copied from interface:InternalDemoHandler
Assigns a demo controler to this demo. It is guaranteed, that a controler is set, before the presentation component is queried or a report is created.- Specified by:
setController
in interfaceInternalDemoHandler
- Overrides:
setController
in classAbstractDemoHandler
- Parameters:
controler
- the controler.
-
getPresentationComponent
public JComponent 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.
-
-