Package org.pentaho.reporting.engine.classic.core.modules.gui.base

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewDialog


    final BookstoreDemo handler = new BookstoreDemo();

//    HtmlReportUtil.createDirectoryHTML(handler.createReport(), "/tmp/report.html");
//    ExcelReportUtil.createXLS(handler.createReport(), "/tmp/report.xls");
    final MasterReport report = handler.createReport();
    final PreviewDialog dialog = new PreviewDialog();
    dialog.setReportJob(report);
    dialog.setSize(500, 500);
    dialog.setModal(true);
    dialog.setVisible(true);
    System.exit(0);
//
//    final SimpleDemoFrame frame = new SimpleDemoFrame(handler);
//    frame.init();
//    frame.pack();
View Full Code Here


  {
    // initialize JFreeReport
    ClassicEngineBoot.getInstance().start();

    final CountryReportSecurityXMLDemoHandler handler = new CountryReportSecurityXMLDemoHandler();
    PreviewDialog dialog = new PreviewDialog();
    dialog.pack();
    dialog.setVisible(true);
//    final SimpleDemoFrame frame = new SimpleDemoFrame(handler);
//    frame.init();
//    frame.pack();
//    RefineryUtilities.centerFrameOnScreen(frame);
//    frame.setVisible(true);
View Full Code Here

      tableModel.addComponent(frame);
      report.setDataFactory(new TableDataFactory("default", tableModel));

      // Important: The dialog must be modal, so that we know, when the report
      // processing is finished.
      final PreviewDialog previewDialog = new PreviewDialog(report, this, true);
      previewDialog.setToolbarFloatable(true);
      previewDialog.pack();
      LibSwingUtil.positionFrameRandomly(previewDialog);
      previewDialog.setVisible(true);
    }
    catch (Exception e)
    {
      logger.error("Failed to parse the report definition", e);
    }
View Full Code Here

  {
    try
    {
      final MasterReport report = handler.createReport();

      final PreviewDialog frame = new PreviewDialog(report);
      frame.setToolbarFloatable(true);
      frame.setReportController(new LocaleSelectionReportController());
      frame.pack();
      LibSwingUtil.positionFrameRandomly(frame);
      frame.setVisible(true);
      frame.requestFocus();
    }
    catch (ReportDefinitionException e)
    {
      AbstractDemoFrame.showExceptionDialog(handler.getPresentationComponent(), "report.definitionfailure", e);
    }
View Full Code Here

    if (GraphicsEnvironment.isHeadless())
    {
      return;
    }

    final PreviewDialog previewDialog = new PreviewDialog(report);
    previewDialog.pack();
    previewDialog.setModal(true);
    previewDialog.setVisible(true);
  }
View Full Code Here

  {
    // initialize JFreeReport
    ClassicEngineBoot.getInstance().start();

    final FontDemo handler = new FontDemo();
    PreviewDialog dialog = new PreviewDialog(handler.createReport());
    dialog.setSize(500, 300);
    dialog.setModal(true);
    dialog.setVisible(true);
    System.exit(0);
//    PdfReportUtil.createPDF(handler.createReport(), "/tmp/exporte.pdf");

//    final SimpleDemoFrame frame = new SimpleDemoFrame(handler);
//    frame.init();
View Full Code Here

  {
    final MasterReport report = createReportDefinition();
    report.setDataFactory(new TableDataFactory
        ("default", createData()));

    final PreviewDialog preview = new PreviewDialog(report);
    preview.addWindowListener(new DefaultCloseHandler());
    preview.pack();
    preview.setVisible(true);
  }
View Full Code Here

  {
    try
    {
      final MasterReport report = handler.createReport();

      final PreviewDialog frame = new PreviewDialog(report);
      frame.setToolbarFloatable(true);
      frame.setReportController(new DemoReportController());
      frame.pack();
      LibSwingUtil.positionFrameRandomly(frame);
      frame.setVisible(true);
      frame.requestFocus();
    }
    catch (ReportDefinitionException e)
    {
      logger.error("Unable to create the report; report definition contained errors.", e);
      AbstractDemoFrame.showExceptionDialog(handler.getPresentationComponent(), "report.definitionfailure", e);
View Full Code Here

    try
    {
      final MasterReport report = handler.createReport();

      final PreviewDialog frame = new PreviewDialog(report);
      frame.pack();
      LibSwingUtil.positionFrameRandomly(frame);
      frame.setVisible(true);
      frame.requestFocus();
    }
    catch (ReportDefinitionException e)
    {
      logger.error("Unable to create the report; report definition contained errors.", e);
      AbstractDemoFrame.showExceptionDialog(handler.getPresentationComponent(), "report.definitionfailure", e);
View Full Code Here

  public static void main(String[] args) throws ReportDefinitionException
  {
    ClassicEngineBoot.getInstance().start();
    SimpleInvoiceDemoHandler handler = new SimpleInvoiceDemoHandler();
    final MasterReport report = handler.createReport();
    final PreviewDialog dialog = new PreviewDialog();
    dialog.setReportJob(report);
    dialog.setSize(500, 500);
    dialog.setModal(true);
    dialog.setVisible(true);
    System.exit(0);

  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.