Examples of SubReport


Examples of org.pentaho.reporting.engine.classic.core.SubReport

    {
      final AbstractRootLevelBand re = (AbstractRootLevelBand) reportElement;
      final int count = re.getSubReportCount();
      for (int i = 1; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(0, sr);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport

    {
      final AbstractRootLevelBand re = (AbstractRootLevelBand) reportElement;
      final int count = re.getSubReportCount();
      for (int i = 1; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(i - 1, sr);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport

    final int position = ModelUtility.findIndexOf(parent, insertElement);
    if (position == -1)
    {
      if (insertElement instanceof SubReport && parent instanceof RootLevelBand)
      {
        final SubReport subReport = (SubReport) insertElement;
        final RootLevelBand arb = (RootLevelBand) parent;
        final int subreportPosition = ModelUtility.findSubreportIndexOf(arb, subReport);
        if (subreportPosition == -1)
        {
          throw new IllegalStateException
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport

      if (result == JOptionPane.CLOSED_OPTION || result == 2)
      {
        return null;
      }

      final SubReport subReport = new SubReport();
      subReport.setRootGroup((Group) masterReport.getRootGroup().derive());
      subReport.setReportFooter((ReportFooter) masterReport.getReportFooter().derive());
      subReport.setReportHeader((ReportHeader) masterReport.getReportHeader().derive());
      subReport.setPageFooter((PageFooter) masterReport.getPageFooter().derive());
      subReport.setPageHeader((PageHeader) masterReport.getPageHeader().derive());
      subReport.setWatermark((Watermark) masterReport.getWatermark().derive());
      subReport.setDataFactory(masterReport.getDataFactory().derive());
      masterReport.copyInto(subReport);

      final ReportParameterDefinition parameterDefinition = masterReport.getParameterDefinition();
      for (final ParameterDefinitionEntry entry : parameterDefinition.getParameterDefinitions())
      {
        subReport.addInputParameter(entry.getName(), entry.getName());
      }
      subReport.addInputParameter("*", "*");

      subReport.setElementType(SubReportType.INSTANCE);
      if (result == 0)
      {
        // inline
        subReport.setAttribute
            (ReportDesignerBoot.DESIGNER_NAMESPACE, InsertationUtil.SUBREPORT_BANDED_HINT, Boolean.FALSE);
      }
      else if (result == 1)
      {
        // banded
        subReport.setAttribute
            (ReportDesignerBoot.DESIGNER_NAMESPACE, InsertationUtil.SUBREPORT_BANDED_HINT, Boolean.TRUE);
      }
      return subReport;
    }

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.