Examples of TableDataFactory


Examples of edu.villanova.studs.poker.transport.TableDataFactory

     *         calling method to know how to deserialize and check for errors.
     */
    public byte[] getResults( byte[] in, int flag ){
        //Create the factories used to process the input and generate
        //appropriate concrete classes needed to execute calculations.
        TableDataFactory tdFactory = new TableDataFactory();
        CalcEngineFactory calcFactory = new CalcEngineFactory();       
       
        //Create the objects used to store the results...
        //This is the class the holds all results (or errors) for serialization
        CalculateResults results = new CalculateResults();
        //Holds the results for each individual player if there are no errors
        PlayerResults[] playerResults;
       
        //The table data factory is responsible for deserializing the input
        //array and returning the appropriate concrete Table Data implementation
        TableDataIntf td = tdFactory.createTableData( in, flag );
       
        //The calc engine factory uses the table data instance to determine the
        //appropriate calc engine implementation to use
        calcEngine = calcFactory.createCalcEngine( td );
       
View Full Code Here

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

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

   * @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

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


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

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

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

   *          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

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

    };

    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

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

      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

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

    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

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

      {

        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

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

    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
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.