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 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();
    SwingUtil.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.data.ProgressDialogEnabled")) // NON-NLS
    {
      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("plaintext-export.progressdialog.message")); //$NON-NLS-1$
    progressDialog.pack();
    SwingUtil.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.plaintext.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 Component parent = context.getView().getParent();
    if (parent instanceof Dialog)
    {
      progressDialog = new ReportProgressDialog((Dialog) parent);
    }
    else if (parent instanceof Frame)
    {
      progressDialog = new ReportProgressDialog((Frame) parent);
    }
    else
    {
      progressDialog = new ReportProgressDialog();
    }
    progressDialog.pack();

    progressBar = new ReportProgressBar();
    progressBar.setVisible(false);
View Full Code Here

    final MasterReport reportElement = getActiveContext().getContextRoot();
    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.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();
      }

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

    final MasterReport reportElement = getActiveContext().getContextRoot();
    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.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();
      }

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

    final MasterReport reportElement = getActiveContext().getContextRoot();
    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.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();
      }

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

    final MasterReport reportElement = getActiveContext().getContextRoot();
    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.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();
      }

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

    final MasterReport reportElement = getActiveContext().getContextRoot();
    final Component parent = getReportDesignerContext().getView().getParent();
    final Window window = LibSwingUtil.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();
      }

      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.