Examples of addMasterReport()


Examples of org.pentaho.reporting.designer.core.ReportDesignerContext.addMasterReport()

    report.getReportHeader().addElement(elementX);

    // setup a dummy environment that simulates the setup of a full prd
    final ReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    final ReportRenderContext activeContext = rdc.getReportRenderContext(0);
    rdc.setActiveDocument(activeContext);
    assertNotNull(activeContext);

    // use the style editor panel in isolation to make the whole process debuggable ..
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext.addMasterReport()

        return;
      }

      if (def instanceof MasterReport)
      {
        reportDesignerContext1.addMasterReport((MasterReport) def);
      }
      else if (def instanceof SubReport)
      {
        // todo: Undo entries ...
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext.addMasterReport()

      {
        // ignore, its not that important ..
        DebugLog.log("Failed to created default translation entry", ex);
      }

      designerContext.addMasterReport(def);
    }
    catch (ReportProcessingException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext.addMasterReport()

        return;
      }

      if (def instanceof MasterReport)
      {
        reportDesignerContext1.addMasterReport((MasterReport) def);
      }
      else if (def instanceof SubReport)
      {
        // todo: Undo entries ...
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext.addMasterReport()

      {
        // ignore, its not that important ..
        DebugLog.log("Failed to created default translation entry", ex);
      }

      designerContext.addMasterReport(def);
    }
    catch (ReportProcessingException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.testsupport.TestReportDesignerContext.addMasterReport()

    final MasterReport report = new MasterReport();
    final CrosstabElement element = new CrosstabElement();
    report.getReportHeader().addElement(element);

    final TestReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    rdc.addSubReport((ReportDocumentContext) rdc.getDocumentContext(0), element);
    rdc.setActiveDocument(rdc.getDocumentContext(1));
    final ReportDocumentContext activeContext = rdc.getActiveContext();
    Assert.assertNotNull(activeContext);
    Assert.assertEquals(activeContext.getReportDefinition(), element);
View Full Code Here

Examples of org.pentaho.reporting.designer.testsupport.TestReportDesignerContext.addMasterReport()

    final MasterReport report = new MasterReport();
    final SubReport element = new SubReport();
    report.getReportHeader().addElement(element);

    final TestReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    rdc.addSubReport((ReportDocumentContext) rdc.getDocumentContext(0), element);
    rdc.setActiveDocument(rdc.getDocumentContext(1));
    final ReportDocumentContext activeContext = rdc.getActiveContext();
    Assert.assertNotNull(activeContext);
    Assert.assertEquals(activeContext.getReportDefinition(), element);
View Full Code Here

Examples of org.pentaho.reporting.designer.testsupport.TestReportDesignerContext.addMasterReport()

    final MasterReport report = new MasterReport();
    report.setRootGroup(new CrosstabGroup());

    final TestReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    rdc.setActiveDocument(rdc.getDocumentContext(0));
    final ReportDocumentContext activeContext = rdc.getActiveContext();
    Assert.assertNotNull(activeContext);
    Assert.assertEquals(activeContext.getReportDefinition(), report);
View Full Code Here

Examples of org.pentaho.reporting.designer.testsupport.TestReportDesignerContext.addMasterReport()

    final MasterReport report = new MasterReport();
    CrosstabGroup rootGroup = new CrosstabGroup();
    report.setRootGroup(rootGroup);

    final TestReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    rdc.setActiveDocument(rdc.getDocumentContext(0));
    final ReportDocumentContext activeContext = rdc.getActiveContext();
    Assert.assertNotNull(activeContext);
    Assert.assertEquals(activeContext.getReportDefinition(), report);
View Full Code Here

Examples of org.pentaho.reporting.designer.testsupport.TestReportDesignerContext.addMasterReport()

    final CrosstabElement element = new CrosstabElement();
    Group rootGroup = element.getRootGroup();
    report.getReportHeader().addElement(element);

    final TestReportDesignerContext rdc = new TestReportDesignerContext();
    rdc.addMasterReport(report);
    rdc.addSubReport((ReportDocumentContext) rdc.getDocumentContext(0), element);
    rdc.setActiveDocument(rdc.getDocumentContext(1));
    final ReportDocumentContext activeContext = rdc.getActiveContext();
    Assert.assertNotNull(activeContext);
    Assert.assertEquals(activeContext.getReportDefinition(), element);
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.