Examples of JStatusBar


Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

   *
   * @return <code>true</code> if the input is valid, <code>false</code> otherwise
   */
  protected boolean performValidate()
  {
    final JStatusBar statusBar = controller.getStatusBar();
    statusBar.clear();

    return true;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

    resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
        ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    previewAction = new PreviewAction();
    closeAction = new CloseAction();
    aboutAction = new AboutAction();
    statusBar = new JStatusBar();
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    addWindowListener(new CloseHandler());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

   *
   * @return <code>true</code> if the input is valid, <code>false</code> otherwise
   */
  protected boolean performValidate()
  {
    final JStatusBar statusBar = controller.getStatusBar();
    statusBar.clear();

    return true;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

    resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
        ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    previewAction = new PreviewAction();
    closeAction = new CloseAction();
    aboutAction = new AboutAction();
    statusBar = new JStatusBar();
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    addWindowListener(new CloseHandler());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

  /**
   * Initialisation.
   */
  private void initConstructor()
  {
    statusBar = new JStatusBar();
    setTitle(getResources().getString("htmlexportdialog.dialogtitle")); //$NON-NLS-1$
    initialize();
    clear();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

    previewPane = new PreviewPane();
    previewPane.setDeferredRepagination(true);
    addComponentListener(new TriggerPaginationListener(previewPane));

    statusBar = new JStatusBar(previewPane.getIconTheme());

    pageLabel = new JLabel();

    final Configuration configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
    final boolean progressBarEnabled = "true".equals(configuration //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

    public void propertyChange(final PropertyChangeEvent evt)
    {
      final String propertyName = evt.getPropertyName();
      final PreviewPane previewPane = getPreviewPane();
      final JStatusBar statusBar = getStatusBar();
      if (PreviewPane.MENU_PROPERTY.equals(propertyName))
      {
        // Update the menu
        final JMenu[] menus = previewPane.getMenu();
        updateMenu(menus);
        return;
      }

      if (PreviewPane.TITLE_PROPERTY.equals(propertyName))
      {
        setTitle(previewPane.getTitle());
        return;
      }

      if (PreviewPane.STATUS_TEXT_PROPERTY.equals(propertyName)
          || PreviewPane.STATUS_TYPE_PROPERTY.equals(propertyName))
      {
        statusBar.setStatus(previewPane.getStatusType(), previewPane.getStatusText());
        return;
      }

      if (PreviewPane.ICON_THEME_PROPERTY.equals(propertyName))
      {
        statusBar.setIconTheme(previewPane.getIconTheme());
        return;
      }

      if (PreviewPane.PAGINATING_PROPERTY.equals(propertyName))
      {
        if (Boolean.TRUE.equals(evt.getNewValue()))
        {
          pageLabel.setVisible(false);
          statusBar.setStatus(StatusType.INFORMATION, messages.getString(
              "PreviewDialog.USER_PAGINATING")); //$NON-NLS-1$
          if (progressBar != null)
          {
            previewPane.addReportProgressListener(progressBar);
            progressBar.setOnlyPagination(true);
            progressBar.setVisible(true);
            progressBar.revalidate();
          }
          if (progressDialog != null)
          {
            previewPane.addReportProgressListener(progressDialog);
            LibSwingUtil.centerDialogInParent(progressDialog);
            progressDialog.setOnlyPagination(true);
            progressDialog.setVisible(true);
          }
        }
        else
        {
          pageLabel.setVisible(true);
          statusBar.setStatus(StatusType.NONE, ""); //$NON-NLS-1$
          if (progressBar != null)
          {
            progressBar.setOnlyPagination(false);
            progressBar.setVisible(false);
            previewPane.removeReportProgressListener(progressBar);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

   * Initialisation.
   */
  private void initConstructor()
  {
    actionSelectFile = new ActionSelectFile(getResources());
    statusBar = new JStatusBar();
    setTitle(getResources().getString("excelexportdialog.dialogtitle")); //$NON-NLS-1$
    initialize();
    clear();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

   * Initialisation.
   */
  private void initConstructor()
  {
    actionSelectFile = new ActionSelectFile(getResources());
    statusBar = new JStatusBar();
    setTitle(getResources().getString("excelexportdialog.dialogtitle")); //$NON-NLS-1$
    initialize();
    clear();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.JStatusBar

  /**
   * Initialisation.
   */
  private void initConstructor()
  {
    statusBar = new JStatusBar();
    setTitle(getResources().getString("htmlexportdialog.dialogtitle")); //$NON-NLS-1$
    initialize();
    clear();
  }
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.