Examples of ReportDesignerContext


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

    return ReportDesignerView.MESSAGES_VISIBLE_PROPERTY;
  }

  protected boolean recomputeEnabled()
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      return false;
    }
    setSelected(reportDesignerContext.getView().isMessagesVisible());
    return true;
  }
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 contextCount = context.getReportRenderContextCount();
    final ReportRenderContext[] contextArray = new ReportRenderContext[contextCount];
    for (int i = 0; i < contextCount; i++)
    {
      contextArray[i] = context.getReportRenderContext(i);
    }

    final ReportRenderContext[] filteredArray =
        CloseReportAction.filterSubreports(getReportDesignerContext(), contextArray);

View Full Code Here

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

    if(styleDefinition != null)
    {
      styleDefinition = styleDefinition.clone();
    }

    final ReportDesignerContext context = getReportDesignerContext();
    final StyleDefinitionEditorDialog dialog = StyleDefinitionEditorDialog.createDialog(context.getView().getParent(), context);
    final ElementStyleDefinition elementStyleDefinition = dialog.performEdit(styleDefinition);
    if (elementStyleDefinition == styleDefinition)
    {
      return;
    }
View Full Code Here

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

    }

    private void createPopupMenu(final MouseEvent e)
    {
      final JTree tree = getTree();
      final ReportDesignerContext context = getReportDesignerContext();
      if (context.getActiveContext() == null)
      {
        return;
      }

      final TreePath path = tree.getPathForLocation(e.getX(), e.getY());
View Full Code Here

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

    return reportDesignerContext;
  }

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

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

    if (activeContext == null)
    {
      return;
    }

    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final RowBandingDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new RowBandingDialog((JDialog) window);
View Full Code Here

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

    putValue(Action.MNEMONIC_KEY, ActionMessages.getOptionalMnemonic("ShowAddDataSourcePopupAction.Mnemonic"));
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return;
    }

    final JPopupMenu menu = ContextMenuUtility.createDataSourcePopup(reportDesignerContext1);
    final Object source = e.getSource();
    if (source instanceof Component)
    {
      final Component c = (Component) source;
      menu.show(c, 0, c.getHeight());
    }
    else
    {
      final Component parent = reportDesignerContext1.getView().getParent();
      menu.show(parent, 0, 0);
    }
  }
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 reportDesignerContext1 = getReportDesignerContext();
    if (tabIndex == -1)
    {
      final ReportDocumentContext activeContext = getActiveContext();
      if (activeContext == null)
      {
        return;
      }

      performCloseReport(reportDesignerContext1, activeContext);
    }
    else
    {
      if (tabIndex >= 0 && tabIndex < reportDesignerContext1.getReportRenderContextCount())
      {
        final ReportRenderContext context = reportDesignerContext1.getReportRenderContext(tabIndex);
        performCloseReport(reportDesignerContext1, context);
      }
    }
  }
View Full Code Here

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

    setEnabled(compatibilityLevel < ClassicEngineBoot.computeCurrentVersionId());
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    migrateReport(context);
  }
View Full Code Here

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

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

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return;
    }

    final JPopupMenu menu = reportDesignerContext1.getPopupMenu("popup-Groups");// $NON-NLS$
    final Object source = e.getSource();
    if (source instanceof Component)
    {
      final Component c = (Component) source;
      menu.show(c, 0, c.getHeight());
    }
    else
    {
      final Component parent = reportDesignerContext1.getView().getParent();
      menu.show(parent, 0, 0);
    }
  }
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.