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

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


    // 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);
View Full Code Here


      // 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)
    {
View Full Code Here

    {
      return;
    }

    final PreviewDialog previewDialog = new PreviewDialog(report);
    previewDialog.pack();
    previewDialog.setModal(true);
    previewDialog.setVisible(true);
  }

  public void testReportFlow() throws Exception
View Full Code Here

      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)
View Full Code Here

    report.setDataFactory(new TableDataFactory
        ("default", createData()));

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

  /**
   * Creates a small dataset to use in a report.  JFreeReport always reads data from a <code>TableModel</code>
View Full Code Here

      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)
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)
View Full Code Here

    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

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

      {
        final MasterReport report = new MasterReport();
        report.getReportHeader().addSubReport((SubReport) element);
        dialog.setReportJob(report);
      }
      dialog.pack();
      LibSwingUtil.centerDialogInParent(dialog);
      dialog.setVisible(true);
    }
    catch (Exception e)
    {
View Full Code Here

  protected void showRelationalDialog()
  {
    PreviewDialog dialog = new PreviewDialog(configureReport(createRelationalReport(createTableModel()), true));
    dialog.setModal(true);
    dialog.pack();
    LibSwingUtil.centerFrameOnScreen(dialog);
    dialog.setVisible(true);
  }

  protected void showRelationalGeneratorDialog()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.