Package org.pentaho.reporting.designer.core.editor

Examples of org.pentaho.reporting.designer.core.editor.ReportRenderContext


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

    for (int i = 0; i < filteredArray.length; i++)
    {
      final ReportRenderContext reportRenderContext = filteredArray[i];
      if (CloseReportAction.performCloseReport(getReportDesignerContext(), reportRenderContext) == false)
      {
        return;
      }
    }
View Full Code Here


                                               final int column)
  {
    removeAll();

    final TableModel tableModel = table.getModel();
    final ReportRenderContext reportContext = getReportContext();
    final String valueRole;
    final String[] extraFields;
    if (reportContext != null)
    {
      if (tableModel instanceof ElementMetaDataTableModel)
View Full Code Here

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

  {
    final int contextCount = context.getReportRenderContextCount();
    final ArrayList<ReportRenderContext> contexts = new ArrayList<ReportRenderContext>(contextCount);
    for (int i = 0; i < contextCount; i++)
    {
      final ReportRenderContext renderContext = context.getReportRenderContext(i);
      if (renderContext == activeContext)
      {
        continue;
      }
      if (ModelUtility.isDescendant(renderContext.getReportDefinition(), activeContext.getReportDefinition()) == false)
      {
        contexts.add(renderContext);
      }
    }


    final ReportRenderContext[] contextArray = contexts.toArray(new ReportRenderContext[contexts.size()]);
    final ReportRenderContext[] filteredArray =
        CloseReportAction.filterSubreports(getReportDesignerContext(), contextArray);

    for (int i = 0; i < filteredArray.length; i++)
    {
      final ReportRenderContext reportRenderContext = filteredArray[i];
      if (CloseReportAction.performCloseReport(getReportDesignerContext(), reportRenderContext) == false)
      {
        return;
      }
    }
View Full Code Here

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

    final int contextCount = context.getReportRenderContextCount();
    final ArrayList<ReportRenderContext> contexts = new ArrayList<ReportRenderContext>(contextCount);
    final AbstractReportDefinition parentReportDefinition = activeContext.getReportDefinition();
    for (int i = 0; i < contextCount; i++)
    {
      final ReportRenderContext renderContext = context.getReportRenderContext(i);
      final AbstractReportDefinition childReportDefinition = renderContext.getReportDefinition();
      if (parentReportDefinition != childReportDefinition &&
          ModelUtility.isDescendant(parentReportDefinition, childReportDefinition))
      {
        contexts.add(renderContext);
      }
    }

    for (int i = 0; i < contexts.size(); i++)
    {
      // there are only subreports here ..
      final ReportRenderContext renderContext = contexts.get(i);
      CloseReportAction.performUnconditionalClose(getReportDesignerContext(), renderContext);
    }
  }
View Full Code Here

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

    for (int i = 0; i < filteredArray.length; i++)
    {
      final ReportRenderContext reportRenderContext = filteredArray[i];
      if (CloseReportAction.performCloseReport(getReportDesignerContext(), reportRenderContext) == false)
      {
        return;
      }
    }
View Full Code Here

    }

    final int contextCount = context.getReportRenderContextCount();
    for (int i = 0; i < contextCount; i += 1)
    {
      final ReportRenderContext contextAt = context.getReportRenderContext(i);
      if (parentReport == contextAt.getReportDefinition())
      {
        return contextAt;
      }
    }
    return null;
View Full Code Here

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

    for (int i = 0; i < filteredArray.length; i++)
    {
      final ReportRenderContext reportRenderContext = filteredArray[i];
      if (reportRenderContext.isChanged() == false)
      {
        CloseReportAction.performUnconditionalClose(getReportDesignerContext(), reportRenderContext);
      }
    }
  }
View Full Code Here

    if (element instanceof SubReport)
    {
      final int contextCount = designerContext.getReportRenderContextCount();
      for (int i = 0; i < contextCount; i++)
      {
        final ReportRenderContext rrc = designerContext.getReportRenderContext(i);
        if (rrc.getReportDefinition() == element)
        {
          designerContext.setActiveDocument(rrc);
          return;
        }
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.ReportRenderContext

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.