Examples of removeSubreport()


Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      final AbstractRootLevelBand re = (AbstractRootLevelBand) parent;
      final SubReport report = (SubReport) data;
      final int index = ModelUtility.findSubreportIndexOf(re, report);
      if (index != -1)
      {
        re.removeSubreport(report);
      }
      if (veElement.getParent() == null)
      {
        // remove was a success ...
        return new BandedSubreportEditUndoEntry(re.getObjectID(), index, report, null);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      for (int i = 1; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(0, sr);

          return new CompoundUndoEntry
                  (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                          new BandedSubreportEditUndoEntry(re.getObjectID(), 0, null, sr));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      for (int i = 1; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(i - 1, sr);

          return new CompoundUndoEntry
              (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                  new BandedSubreportEditUndoEntry(re.getObjectID(), i - 1, null, sr));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

  {
    final AbstractRootLevelBand elementById = (AbstractRootLevelBand)
        ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    if (newElement != null)
    {
      elementById.removeSubreport(newElement);
    }
    if (oldElement != null)
    {
      elementById.addSubReport(position, oldElement);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

  {
    final AbstractRootLevelBand elementById = (AbstractRootLevelBand)
        ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    if (oldElement != null)
    {
      elementById.removeSubreport(oldElement);
    }
    if (newElement != null)
    {
      elementById.addSubReport(position, newElement);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      for (int i = 0; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(i + 1, sr);

          return new CompoundUndoEntry
              (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                  new BandedSubreportEditUndoEntry(re.getObjectID(), i - 1, null, sr));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      for (int i = 0; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(sr);

          return new CompoundUndoEntry
              (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                  new BandedSubreportEditUndoEntry(re.getObjectID(), re.getElementCount() - 1, null, sr));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

          for (int i = 0; i < reports.length; i++)
          {
            final SubReport report = reports[i];
            if (report == realOriginal)
            {
              rlb.removeSubreport(report);
              rlb.addSubReport(i, (SubReport) def);
              return;
            }
          }
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

          for (int i = 0; i < reports.length; i++)
          {
            final SubReport report = reports[i];
            if (report == realOriginal)
            {
              rlb.removeSubreport(report);
              rlb.addSubReport(i, (SubReport) def);
              return;
            }
          }
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand.removeSubreport()

      for (int i = 1; i < count; i++)
      {
        final SubReport sr = re.getSubReport(i);
        if (sr == element)
        {
          re.removeSubreport(sr);
          re.addSubReport(i - 1, sr);

          return new CompoundUndoEntry
              (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                  new BandedSubreportEditUndoEntry(re.getObjectID(), i - 1, null, sr));
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.