org.jfree.report.demo.bookstore
Class BookstoreDemo
java.lang.Object
|
+--org.jfree.report.demo.helper.AbstractDemoHandler
|
+--org.jfree.report.demo.helper.AbstractXmlDemoHandler
|
+--org.jfree.report.demo.bookstore.BookstoreDemo
- public class BookstoreDemo
- extends AbstractXmlDemoHandler
A demo showing how to print simple invoices. Other invoice-like reports
can be found in the package org.jfree.report.demo.invoice.
- Author:
- Thomas Morgner
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BookstoreDemo
public BookstoreDemo()
- Default constructor.
getDemoName
public java.lang.String getDemoName()
- Returns the display name of the demo.
- Returns:
- the name.
createReport
public JFreeReport createReport()
throws ReportDefinitionException
- Creates the report. This calls the standard parse method and then assigns
the table model to the report.
- Returns:
- the fully initialized JFreeReport object.
- Throws:
- ReportDefinitionException - if an error occured preventing the
report definition.
getDemoDescriptionSource
public java.net.URL getDemoDescriptionSource()
- Returns the URL of the HTML document describing this demo.
- Returns:
- the demo description.
getPresentationComponent
public javax.swing.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.
getReportDefinitionSource
public java.net.URL getReportDefinitionSource()
- Returns the URL of the XML definition for this report.
- Returns:
- the URL of the report definition.
main
public static void main(java.lang.String[] args)
throws ReportDefinitionException
- Entry point for running the demo application...
- Parameters:
args - ignored.