Examples of TableDataFactory


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

  public void test268() throws ReportProcessingException, IOException, ReportDefinitionException
  {
    final MasterReport report = parseReport(getReportDefinitionSource());

    final TableDataFactory tdf = new TableDataFactory();
    tdf.addTable("default", new DefaultTableModel(10, 10));
    tdf.addTable("SubQ1", new DefaultTableModel(11, 10));
    report.setDataFactory(tdf);
   
    final PageFormat pageFormat = report.getPageDefinition().getPageFormat(0);
//    pageFormat.setOrientation(PageFormat.LANDSCAPE);
    report.setPageDefinition(new SimplePageDefinition(pageFormat));
View Full Code Here

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

  }

  public MasterReport createReport() throws ReportDefinitionException
  {
    MasterReport report = parseReport();
    report.setDataFactory(new TableDataFactory
        ("default", data));
    return report;
  }
View Full Code Here

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


    report.getReportHeader().addElement(rectangleElementFactory.createElement());
    report.getReportHeader().addElement(labelElement);

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

    ClassicEngineBoot.getInstance().start();
    PreviewFrame preview = new PreviewFrame(report);
    preview.pack();
View Full Code Here

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

        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "ItemBand"));
    report.getItemBand().addElement
        (TextFieldElementFactory.createStringElement(null, new Rectangle2D.Float(200, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "-", "RowIndicator"));
    report.setDataFactory(new TableDataFactory
        ("default", createTest2Model()));
    return report;
  }
View Full Code Here

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

  public void testPre112() throws ReportProcessingException, IOException, ReportDefinitionException
  {
    ClassicEngineBoot.getInstance().start();
//     String outputFilename = getReportOutputPath() + "/report-282.html"; //$NON-NLS-1$
    final MasterReport report = parseReport(getReportDefinitionSource());
    report.setDataFactory(new TableDataFactory(report.getQuery(), new DefaultTableModel(10, 10)));
    //HtmlReportUtil.createStreamHTML(report, outputFilename);
    TestSystem.showPreview(report);
    assertTrue(true);
  }
View Full Code Here

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

    tableModel.setValueAt("CC", 5, 1);

    final URL in = ObjectUtilities.getResource(URLNAME, Pre85ReportTest.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

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

    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt(new JLabel("Value row = " + row), row, 0);
    }

    report.setDataFactory(new TableDataFactory ("default", tableModel));
   performExportTest(report, "AWT Component processing");
  }
View Full Code Here

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

  private static MasterReport createDemoReport(List tables) throws ReportDataFactoryException
  {
    MasterReport report = new MasterReport();

    // Creates new TableDataFactory where all report data is to be stored.
    TableDataFactory tableDataFactory = new TableDataFactory();

    // Adds all JTables to TableDataFactory with name "table" + index. This
    // name is referred later.
    for (int a = 0; a < tables.size(); a++)
    {
      final TableModel jtable = (TableModel) tables.get(a);
      tableDataFactory.addTable("table" + a, jtable);
      tableDataFactory.queryData("table" + a, null);
    }
    report.setDataFactory(tableDataFactory);
    report.setName("Raportti");

    PageFormatFactory pfFact = PageFormatFactory.getInstance();
View Full Code Here

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

      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
      e.printStackTrace(System.err);
      System.exit(1);
      return;
    }
    report.setDataFactory(new TableDataFactory
        ("default", createData())); //$NON-NLS-1$
    try
    {
      HtmlReportUtil.createStreamHTML(report, System.getProperty("user.home") //$NON-NLS-1$
          + "/object-reference.html"); //$NON-NLS-1$
View Full Code Here

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

      System.err.println("File: " + REFERENCE_REPORT); //$NON-NLS-1$
      e.printStackTrace(System.err);
      System.exit(1);
      return;
    }
    report.setDataFactory(new TableDataFactory
        ("default", createData())); //$NON-NLS-1$
    try
    {
      HtmlReportUtil.createStreamHTML(report, System.getProperty("user.home") //$NON-NLS-1$
          + "/datasource-reference.html"); //$NON-NLS-1$
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.