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

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ReportProgressDialog$ScreenUpdateRunnable


   *
   * @return the progress monitor dialog.
   */
  protected ReportProgressDialog createProgressDialog()
  {
    final ReportProgressDialog progressDialog = super.createProgressDialog();
    progressDialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    progressDialog.setMessage(resources.getString("printing-export.progressdialog.message")); //$NON-NLS-1$
    progressDialog.pack();
    LibSwingUtil.positionFrameRandomly(progressDialog);
    return progressDialog;
  }
View Full Code Here


   * @return true, if the export was successfull, false otherwise.
   */
  public boolean performExport(final MasterReport report)
  {
    // need to connect to the report pane to receive state updates ...
    final ReportProgressDialog progressDialog;
    if ("true".equals(report.getReportConfiguration().getConfigProperty(PrintingPlugin.PROGRESS_DIALOG_ENABLE_KEY,
        "false"))) //$NON-NLS-1$ //$NON-NLS-2$
    {
      progressDialog = createProgressDialog();
      if (report.getTitle() == null)
      {
        progressDialog.setTitle(getResources().getString("ProgressDialog.EMPTY_TITLE"));
      }
      else
      {
        progressDialog.setTitle(getResources().formatMessage("ProgressDialog.TITLE", report.getTitle()));
      }
    }
    else
    {
      progressDialog = null;
View Full Code Here

      progressBar = null;
    }

    if (progressDialogEnabled)
    {
      progressDialog = new ReportProgressDialog(this);
      final MasterReport reportJob = previewPane.getReportJob();
      if (reportJob == null || reportJob.getTitle() == null)
      {
        progressDialog.setTitle(messages.getString("ProgressDialog.EMPTY_TITLE"));
        progressDialog.setMessage(messages.getString("ProgressDialog.EMPTY_TITLE"));
View Full Code Here

   *
   * @return the created dialog.
   */
  protected ReportProgressDialog createProgressDialog()
  {
    final ReportProgressDialog progressDialog = super.createProgressDialog();
    progressDialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    progressDialog.setMessage(resources.getString("cvs-export.progressdialog.message")); //$NON-NLS-1$
    progressDialog.pack();
    LibSwingUtil.positionFrameRandomly(progressDialog);
    return progressDialog;
  }
View Full Code Here

    {
      // user canceled the dialog ...
      return false;
    }

    final ReportProgressDialog progressDialog;
    if (isProgressDialogEnabled(report,
        "org.pentaho.reporting.engine.classic.core.modules.gui.csv.table.ProgressDialogEnabled")) //$NON-NLS-1$
    {
      progressDialog = createProgressDialog();
      if (report.getTitle() == null)
      {
        progressDialog.setTitle(getResources().getString("ProgressDialog.EMPTY_TITLE"));
      }
      else
      {
        progressDialog.setTitle(getResources().formatMessage("ProgressDialog.TITLE", report.getTitle()));
      }
    }
    else
    {
      progressDialog = null;
View Full Code Here

   *
   * @return the progress monitor dialog.
   */
  protected ReportProgressDialog createProgressDialog()
  {
    final ReportProgressDialog progressDialog = super.createProgressDialog();
    progressDialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    progressDialog.setMessage(resources.getString("html-export.progressdialog.message")); //$NON-NLS-1$
    progressDialog.pack();
    LibSwingUtil.positionFrameRandomly(progressDialog);
    return progressDialog;
  }
View Full Code Here

    {
      // user canceled the dialog ...
      return false;
    }

    final ReportProgressDialog progressDialog;
    if (isProgressDialogEnabled(report,
        "org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.ProgressDialogEnabled"))
    {
      progressDialog = createProgressDialog();
      if (report.getTitle() == null)
      {
        progressDialog.setTitle(getResources().getString("ProgressDialog.EMPTY_TITLE"));
      }
      else
      {
        progressDialog.setTitle(getResources().formatMessage("ProgressDialog.TITLE", report.getTitle()));
      }
    }
    else
    {
      progressDialog = null;
View Full Code Here

    final MasterReport reportElement = getActiveContext().getMasterReportElement();
    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    if(PreviewParametersDialog.process(window, reportElement))
    {
      final ReportProgressDialog dialog;
      if (window instanceof JDialog)
      {
        dialog = new ReportProgressDialog((JDialog) window);
      }
      else if (window instanceof JFrame)
      {
        dialog = new ReportProgressDialog((JFrame) window);
      }
      else
      {
        dialog = new ReportProgressDialog();
      }
 
      dialog.pack();
      SwingUtil.centerDialogInParent(dialog);
 
      final Thread t = new Thread(new ExportTask(reportElement, dialog));
      t.setDaemon(true);
      t.start();
View Full Code Here

    final MasterReport reportElement = getActiveContext().getMasterReportElement();
    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    if (PreviewParametersDialog.process(window, reportElement))
    {
      final ReportProgressDialog dialog;
      if (window instanceof JDialog)
      {
        dialog = new ReportProgressDialog((JDialog) window);
      }
      else if (window instanceof JFrame)
      {
        dialog = new ReportProgressDialog((JFrame) window);
      }
      else
      {
        dialog = new ReportProgressDialog();
      }

      dialog.pack();
      SwingUtil.centerDialogInParent(dialog);

      final Thread t = new Thread(new ExportTask(reportElement, dialog));
      t.setDaemon(true);
      t.start();
View Full Code Here

    final MasterReport reportElement = getActiveContext().getMasterReportElement();
    final Component parent = getReportDesignerContext().getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    if (PreviewParametersDialog.process(window, reportElement))
    {
      final ReportProgressDialog dialog;
      if (window instanceof JDialog)
      {
        dialog = new ReportProgressDialog((JDialog) window);
      }
      else if (window instanceof JFrame)
      {
        dialog = new ReportProgressDialog((JFrame) window);
      }
      else
      {
        dialog = new ReportProgressDialog();
      }

      dialog.pack();
      SwingUtil.centerDialogInParent(dialog);

      final Thread t = new Thread(new ExportTask(reportElement, dialog));
      t.setDaemon(true);
      t.start();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ReportProgressDialog$ScreenUpdateRunnable

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.