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

Examples of org.pentaho.reporting.engine.classic.core.util.TypedTableModel


   */
  public IndexDataGeneratorFunction()
  {
    this.pageFunction = new PageFunction();
    this.indexSeparator = ".";
    this.model = new TypedTableModel();
    this.dataFormula = new FormulaExpression();
    this.dataStorage = new TreeMap();
  }
View Full Code Here


   * @return a copy of this function.
   */
  public Expression getInstance()
  {
    final IndexDataGeneratorFunction instance = (IndexDataGeneratorFunction) super.getInstance();
    instance.model = new TypedTableModel();
    instance.pageFunction = (PageFunction) pageFunction.getInstance();
    instance.dataFormula = (FormulaExpression) dataFormula.getInstance();
    instance.dataStorage = new TreeMap();
    instance.initialized = false;
    return instance;
View Full Code Here

  public TocDataGeneratorFunction()
  {
    this.groups = new ArrayList();
    this.pageFunction = new PageFunction();
    this.indexSeparator = ".";
    this.model = new TypedTableModel();
    this.titleFormula = new FormulaExpression();
    this.dependencyLevel = LayoutProcess.LEVEL_COLLECT;
  }
View Full Code Here

   * @return a copy of this function.
   */
  public Expression getInstance()
  {
    final TocDataGeneratorFunction instance = (TocDataGeneratorFunction) super.getInstance();
    instance.model = new TypedTableModel();
    instance.titleFormula = (FormulaExpression) titleFormula.getInstance();
    instance.pageFunction = (PageFunction) pageFunction.getInstance();
    instance.groups = (ArrayList) groups.clone();
    instance.groupCount = null;
    instance.groupValues = null;
View Full Code Here

    columnNames[3] = "item-key";
    columnTypes[0] = Object.class;
    columnTypes[1] = String.class;
    columnTypes[2] = Integer[].class;
    columnTypes[3] = String.class;
    final TypedTableModel sampleModel = new TypedTableModel(columnNames, columnTypes);

    final CompoundDataFactory compoundDataFactory = new CompoundDataFactory();
    compoundDataFactory.add(new TableDataFactory("design-time-data", sampleModel));
    setQuery("design-time-data");
    setDataFactory(compoundDataFactory);
View Full Code Here

    for (int i = 0; i < 10; i++)
    {
      columnNames[i + 4] = "group-value-" + i;
      columnTypes[i + 4] = Object.class;
    }
    final TypedTableModel sampleModel = new TypedTableModel(columnNames, columnTypes);

    final CompoundDataFactory compoundDataFactory = new CompoundDataFactory();
    compoundDataFactory.add(new TableDataFactory("design-time-data", sampleModel));
    setQuery("design-time-data");
    setDataFactory(compoundDataFactory);
View Full Code Here

   *
   * @throws SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    data = new TypedTableModel(definitionReadHandler.getNames(), definitionReadHandler.getTypes(), rows.size());
    for (int row = 0; row < rows.size(); row++)
    {
      final InlineTableRowReadHandler handler = (InlineTableRowReadHandler) rows.get(row);
      final Object[] data = (Object[]) handler.getObject();
      for (int column = 0; column < data.length; column++)
View Full Code Here

  {
  }

  public TableModel createMainQuery()
  {
    final TypedTableModel model = new TypedTableModel(new String[]{"ID", "TEXT"}, new Class[]{Integer.class, String.class}, 0);
    model.addRow(new Object[]{new Integer(0), "Hello World"});
    model.addRow(new Object[]{new Integer(1), "Your DataFactory works perfectly."});
    return model;
  }
View Full Code Here

    return model;
  }

  public TableModel createSubQuery(Integer parameter)
  {
    final TypedTableModel model = new TypedTableModel(new String[]{"ID", "NUMBER", "DESCRIPTION"},
        new Class[]{Integer.class, String.class, String.class}, 0);
    if (ZERO.equals(parameter))
    {
      model.addRow(new Object[]{parameter, new Integer(0), "Look, you got a new dataset."});
      model.addRow(new Object[]{parameter, new Integer(1), "So Subreport queries work too.."});
      return model;
    }
    else
    {
      model.addRow(new Object[]{parameter, new Integer(0), "Ahh, another query-parameter, another table."});
      model.addRow(new Object[]{parameter, new Integer(1), "Subreports can use parameters to control what data is returned."});
      return model;
    }

  }
View Full Code Here

  private SimpleDateFormat format;

  public CdaResponseParser()
  {
    format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.US);
    model = new TypedTableModel();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.TypedTableModel

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.