Class OpenSourceDemoApplet

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer

    public class OpenSourceDemoApplet
    extends org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewApplet
    This demo application replicates the report generated by OpenSourceXMLDemoHandler.java, but creates the report in code rather than using an XML report template. The whole report is displayed in an applet.

    To use or adopt that applet to your own needs, just change the getReport() method and your applet should work perfectly ...

    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenSourceDemoApplet

        public OpenSourceDemoApplet()
        Constructs the demo applet.
    • Method Detail

      • init

        public void init()
        Overrides:
        init in class org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewApplet
      • createReport

        public org.pentaho.reporting.engine.classic.core.MasterReport createReport()
        Creates a report definition in code.

        It is more base to read the definition from an XML report template file, but sometimes you might need to create a report dynamically.

        Returns:
        a report.