Examples of ReportDesignerContext


Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    putValue(Action.SMALL_ICON, IconLoader.getInstance().getEmptyIcon());
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final ConnectionEditorDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new ConnectionEditorDialog((JDialog) window);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    /**
     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final ReportDesignerContext context = getReportDesignerContext();
      if (context == null)
      {
        throw new IllegalStateException();
      }

      final Window window = LibSwingUtil.getWindowAncestor(NetworkSettingsPanel.this);
      final ShowPasswordsDialog showPasswordsDialog;
      if (window instanceof Dialog)
      {
        showPasswordsDialog = new ShowPasswordsDialog((Dialog) window);
      }
      else if (window instanceof Frame)
      {
        showPasswordsDialog = new ShowPasswordsDialog((Frame) window);
      }
      else
      {
        showPasswordsDialog = new ShowPasswordsDialog();
      }
      showPasswordsDialog.showDialog(context.getGlobalAuthenticationStore());
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return true;
  }

  public void setReportDesignerContext(final ReportDesignerContext context)
  {
    final ReportDesignerContext old = this.reportDesignerContext;
    this.reportDesignerContext = context;
    updateDesignerContext(old, reportDesignerContext);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final int index = context.findActiveContextIndex();
    if (index != -1 && index != context.getReportRenderContextCount() - 1)
    {
      context.setActiveDocument(context.getReportRenderContext(index + 1));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return editor;
  }

  public void setReportDesignerContext(final ReportDesignerContext newContext)
  {
    final ReportDesignerContext oldContext = arrayCellEditor.getReportDesignerContext();
    if (oldContext != null)
    {
      oldContext.removePropertyChangeListener(this.changeHandler);
      final ReportDocumentContext oldActiveContext = getReportRenderContext();
      updateActiveContext(oldActiveContext, null);
    }

    arrayCellEditor.setReportDesignerContext(newContext);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return arrayCellEditor.getReportDesignerContext();
  }

  public ReportDocumentContext getReportRenderContext()
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      return null;
    }
    return reportDesignerContext.getActiveContext();
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    setEnabled(false);
  }

  public void setReportDesignerContext(final ReportDesignerContext context)
  {
    final ReportDesignerContext old = this.reportDesignerContext;
    this.reportDesignerContext = context;
    updateDesignerContext(old, reportDesignerContext);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext designerContext = getReportDesignerContext();
    if (designerContext == null)
    {
      return;
    }
    if (tabIndex >= designerContext.getReportRenderContextCount())
    {
      return;
    }
    designerContext.setActiveDocument(designerContext.getReportRenderContext(tabIndex));
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    putValue(Action.ACCELERATOR_KEY, ActionMessages.getOptionalKeyStroke("ShowExternalStyleDefinitionEditorAction.Accelerator"));
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final StyleDefinitionEditorDialog dialog = StyleDefinitionEditorDialog.createDialog(context.getView().getParent(), context);
    dialog.setStandalone(true);
    dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    dialog.setVisible(true);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    putValue(Action.SELECTED_KEY, selected);
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      return;
    }
    reportDesignerContext.getView().setMessagesVisible(reportDesignerContext.getView().isMessagesVisible() == false);
  }
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.