Package org.pentaho.reporting.engine.classic.core

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


    //TODO sollte das Padding des Hintergrundes ber?cksichtigt werden, oder sollte der Hintergrund im Overflow-Bereich nicht erscheinen?
    //element.getStyle().setStyleProperty(ElementStyleKeys.OVERFLOW_X, Boolean.TRUE);

    report.getItemBand().addElement(element);

    report.setDataFactory(new TableDataFactory("default", reportTableModel));

    return report;
  }
View Full Code Here


   * @throws ReportDefinitionException if an error occured preventing the report definition.
   */
  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here


    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(factory.createElement());

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

   *          if an error occured preventing the report definition.
   */
  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

    };

    ClassicEngineBoot.getInstance().start();
    final TableModel dataModel = new DefaultTableModel(data, names);
    MasterReport report = parseReport(getReportDefinitionSource());
    report.setDataFactory(new TableDataFactory
        ("default", dataModel)); //$NON-NLS-1$
    PdfReportUtil.createPDF(report, "PagebreakItemband.pdf"); //$NON-NLS-1$
    assertTrue(true);
  }
View Full Code Here

      data[i][1] = "ROW-" + i + "-1";
      data[i][2] = "ROW-" + i + "-2";
      data[i][3] = IntegerCache.getInteger(i);
      data[i][4] = IntegerCache.getInteger(type);
    }
    jfreeReport.setDataFactory(new TableDataFactory("default", new DefaultTableModel(data, columns)));
    return jfreeReport;
  }
View Full Code Here

    private InternalParameterContext()
    {
      this.resourceManager = new ResourceManager();
      this.resourceManager.registerDefaults();

      dataFactory = new TableDataFactory();
      resourceBundleFactory = new DefaultResourceBundleFactory();
      configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      documentMetaData = new MemoryDocumentMetaData();
      reportEnvironment = new DefaultReportEnvironment(configuration);
View Full Code Here

      {

        this.resourceManager = new ResourceManager();
        this.resourceManager.registerDefaults();

        dataFactory = new TableDataFactory();
        resourceBundleFactory = new DefaultResourceBundleFactory();
        configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
        contentBase = null;
        documentMetaData = new MemoryDocumentMetaData();
        reportEnvironment = new DefaultReportEnvironment(configuration);
View Full Code Here

    final URL image = ObjectUtilities.getResource(IMAGE_URLNAME, Pre83ReportTest.class);
    final URL in = ObjectUtilities.getResource(URLNAME, Pre83ReportTest.class);
    final MasterReport report = ReportGenerator.getInstance().parseReport(in);

    final TableDataFactory tdf = new TableDataFactory("Test Query", tableModel);
    tdf.addTable("default", tableModel);
    report.setDataFactory(tdf);
    assertTrue(FunctionalityTestLib.execGraphics2D(report));
   
  }
View Full Code Here

        final MasterReport report = handler.createReport();
        final DataFactory model = report.getDataFactory();

        // we don't test whether our demo models are serializable :)
        report.setDataFactory(new TableDataFactory
            ("default", new DefaultTableModel()));
        // clear all report properties, which may cause trouble ...
        final ReportProperties p = report.getProperties();
        final Iterator keys = p.keys();
        while (keys.hasNext())
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.TableDataFactory

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.