Examples of ReportDesignerContext


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

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

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    final RunInspectionTask task = new RunInspectionTask(reportDesignerContext);
    final Thread t = new Thread(task);
    t.setDaemon(true);
    BackgroundCancellableProcessHelper.executeProcessWithCancelDialog(t, task, reportDesignerContext.getView().getParent(),
        "Running Inspections ..", task);
  }
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 WorkspaceSettings theWorkspaceSettings = WorkspaceSettings.getInstance();
    theWorkspaceSettings.setBounds(context.getView().getParent().getBounds());
    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

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

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      return;
    }
    reportDesignerContext.getView().setPreviewVisible(reportDesignerContext.getView().isPreviewVisible() == false);
  }
View Full Code Here

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

    return ReportDesignerView.PREVIEW_VISIBLE_PROPERTY;
  }

  protected boolean recomputeEnabled()
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      setSelected(false);
      return false;
    }
    setSelected(reportDesignerContext.getView().isPreviewVisible());
    return true;
  }
View Full Code Here

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

  private DocumentContextSelectionModel getSelectionModel()
  {
    if (selectionModel == null)
    {
      final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
      final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
      selectionModel = activeContext.getSelectionModel();
    }

    return selectionModel;
  }
View Full Code Here

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

    return otherGroupBodyList;
  }

  public void buildCrosstabLists()
  {
    final ReportDesignerContext reportDesignerContext = getReportDesignerContext();
    if (reportDesignerContext == null)
    {
      return;
    }

    // Clear lists just in case something changed.
    initialize();

    final ReportDocumentContext activeContext = reportDesignerContext.getActiveContext();
    selectionModel = getSelectionModel();

    final AbstractReportDefinition reportDefinition = activeContext.getReportDefinition();
    if (reportDefinition instanceof CrosstabElement)
    {
View Full Code Here

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

        undo.addChange(Messages.getString("SubreportReportElementDragHandler.UndoEntry"),
            new ElementEditUndoEntry(parent.getObjectID(), parent.getElementCount(), null, subReport));
        parent.addElement(subReport);
      }

      final ReportDesignerContext designerContext = dragContext.getDesignerContext();
      final Window window = LibSwingUtil.getWindowAncestor(designerContext.getView().getParent());
      final AbstractReportDefinition reportDefinition = designerContext.getActiveContext().getReportDefinition();

      try
      {
        // Create the new subreport tab and update the active context to point to new subreport.
        subReport.setDataFactory(reportDefinition.getDataFactory());

        final int idx = designerContext.addSubReport(designerContext.getActiveContext(), subReport);
        designerContext.setActiveDocument(designerContext.getReportRenderContext(idx));
      }
      catch (ReportDataFactoryException e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
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 EditGroupsDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new EditGroupsDialog((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();
    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
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.