Examples of BandedSubreportEditUndoEntry


Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        re.removeSubreport(report);
      }
      if (veElement.getParent() == null)
      {
        // remove was a success ...
        return new BandedSubreportEditUndoEntry(re.getObjectID(), index, report, null);
      }
    }

    if (parent instanceof Band)
    {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        {
          re.removeSubreport(sr);
          re.addSubReport(0, sr);

          return new CompoundUndoEntry
                  (new BandedSubreportEditUndoEntry(re.getObjectID(), i, sr, null),
                          new BandedSubreportEditUndoEntry(re.getObjectID(), 0, null, sr));
        }
      }
    }

    final Band parentBand = (Band) reportElement;
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        {
          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));
        }
      }
    }

    final Band parentBand = (Band) reportElement;
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

          throw new IllegalStateException
              ("Assert Failed: A newly inserted section must have a position within its parent.");
        }
        else
        {
          return new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport);
        }
      }
      else
      {
        throw new IllegalStateException("A newly inserted section must have a position within its parent.");
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

          final AbstractRootLevelBand arb = (AbstractRootLevelBand) parent;

          final ReportDocumentContext context = dragContext.getRenderContext();
          final UndoManager undo = context.getUndo();
          undo.addChange(Messages.getString("SubreportReportElementDragHandler.UndoEntry"),
              new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport));
          arb.addSubReport(subReport);
        }
      }
      else
      {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        {
          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));
        }
      }
    }

    final int count = reportElement.getElementCount() - 1;
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        {
          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));
        }
      }
    }

    final int count = reportElement.getElementCount() - 1;
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

        else
        {
          final AbstractRootLevelBand arb = (AbstractRootLevelBand) parent;
          final UndoManager undo = context.getUndo();
          undo.addChange(Messages.getString("CrosstabReportElementDragHandler.UndoEntry"),
              new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport));
          arb.addSubReport(subReport);
        }
      }
      else
      {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

          final AbstractRootLevelBand arb = (AbstractRootLevelBand) parent;

          final ReportDocumentContext context = dragContext.getRenderContext();
          final UndoManager undo = context.getUndo();
          undo.addChange(Messages.getInstance().getString("TocElementDragHandler.UndoEntry"),
              new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport));
          arb.addSubReport(subReport);
        }
      }
      else
      {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.undo.BandedSubreportEditUndoEntry

          final AbstractRootLevelBand arb = (AbstractRootLevelBand) parent;

          final ReportDocumentContext context = dragContext.getRenderContext();
          final UndoManager undo = context.getUndo();
          undo.addChange(Messages.getInstance().getString("TocElementDragHandler.UndoEntry"),
              new BandedSubreportEditUndoEntry(parent.getObjectID(), arb.getSubReportCount(), null, subReport));
          arb.addSubReport(subReport);
        }
      }
      else
      {
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.