Interface InternalDemoHandler

    • Method Detail

      • getDemoName

        String getDemoName()
        Returns the display name of the demo.
        Specified by:
        getDemoName in interface DemoHandler
        Returns:
        the name.
      • setController

        void setController​(DemoController controler)
        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.
        Parameters:
        controler - the controler.
      • getController

        DemoController getController()
        Returns the demo controler for this demo. The demo controler is supplied by the user of the demo handler.
        Returns:
        the demo controler for this demo handler.
      • createReport

        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.
      • getDemoDescriptionSource

        URL getDemoDescriptionSource()
        Returns the URL of the HTML document describing this demo.
        Returns:
        the demo description.
      • getPresentationComponent

        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.