org.jfree.report.demo.opensource
Class OpenSourceXMLDemoHandler

java.lang.Object
  |
  +--org.jfree.report.demo.helper.AbstractDemoHandler
        |
        +--org.jfree.report.demo.helper.AbstractXmlDemoHandler
              |
              +--org.jfree.report.demo.opensource.OpenSourceXMLDemoHandler
Direct Known Subclasses:
InternalFrameDemoHandler

public class OpenSourceXMLDemoHandler
extends AbstractXmlDemoHandler

A simple JFreeReport demonstration. The generated report lists some free and open source software projects for the Java programming language.

Author:
David Gilbert

Constructor Summary
OpenSourceXMLDemoHandler()
          Constructs the demo application.
 
Method Summary
 JFreeReport createReport()
          Creates the report.
 java.net.URL getDemoDescriptionSource()
          Returns the URL of the HTML document describing this demo.
 java.lang.String getDemoName()
          Returns the display name of the demo.
 javax.swing.JComponent getPresentationComponent()
          Returns the presentation component for this demo.
 java.net.URL getReportDefinitionSource()
          Returns the URL of the XML definition for this report.
 
Methods inherited from class org.jfree.report.demo.helper.AbstractXmlDemoHandler
getPreviewHandler, parseReport
 
Methods inherited from class org.jfree.report.demo.helper.AbstractDemoHandler
createDefaultTable, getControler, setControler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSourceXMLDemoHandler

public OpenSourceXMLDemoHandler()
Constructs the demo application.
Method Detail

getDemoName

public java.lang.String getDemoName()
Description copied from interface: InternalDemoHandler
Returns the display name of the demo.
Tags copied from interface: InternalDemoHandler
Returns:
the name.

createReport

public JFreeReport 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.
Tags copied from interface: InternalDemoHandler
Returns:
the fully initialized JFreeReport object.
Throws:
ReportDefinitionException - if an error occured preventing the report definition.

getPresentationComponent

public javax.swing.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.
Tags copied from interface: InternalDemoHandler
Returns:
the presentation component, never null.

getDemoDescriptionSource

public java.net.URL getDemoDescriptionSource()
Description copied from interface: InternalDemoHandler
Returns the URL of the HTML document describing this demo.
Tags copied from interface: InternalDemoHandler
Returns:
the demo description.

getReportDefinitionSource

public java.net.URL getReportDefinitionSource()
Description copied from interface: XmlDemoHandler
Returns the URL of the XML definition for this report.
Tags copied from interface: XmlDemoHandler
Returns:
the URL of the report definition.