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

Examples of org.pentaho.reporting.engine.classic.core.ItemBand.addElement()


    report.setQuery("test");
    report.setDataFactory(new TableDataFactory(report.getQuery(), model));
    report.addExpression(itemSumFunction);
    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(createNumberElement(0, "value", "I1"));
    itemBand.addElement(createNumberElement(100, "fn", "I2"));

    final PageFooter pageFooter = report.getPageFooter();
    pageFooter.addElement(createNumberElement(0, "value", "P1"));
    pageFooter.addElement(createNumberElement(100, "fn", "P2"));
    return report;
View Full Code Here


    report.setQuery("query");
    report.setDataFactory(new TableDataFactory(report.getQuery(), createData()));

    ItemBand itemBand = report.getItemBand();
    itemBand.setLayout(BandStyleKeys.LAYOUT_ROW);
    itemBand.addElement(createField("f1", 100, 20));
    itemBand.addElement(createField("f2", 100, 20));
    itemBand.addElement(createField("f3", 100, 20));
    return report;
  }
View Full Code Here

    report.setDataFactory(new TableDataFactory(report.getQuery(), createData()));

    ItemBand itemBand = report.getItemBand();
    itemBand.setLayout(BandStyleKeys.LAYOUT_ROW);
    itemBand.addElement(createField("f1", 100, 20));
    itemBand.addElement(createField("f2", 100, 20));
    itemBand.addElement(createField("f3", 100, 20));
    return report;
  }

  @Test
View Full Code Here

    ItemBand itemBand = report.getItemBand();
    itemBand.setLayout(BandStyleKeys.LAYOUT_ROW);
    itemBand.addElement(createField("f1", 100, 20));
    itemBand.addElement(createField("f2", 100, 20));
    itemBand.addElement(createField("f3", 100, 20));
    return report;
  }

  @Test
  public void testExcel2010Export() throws ReportProcessingException, IOException, InvalidFormatException
View Full Code Here

    final ItemBand itemBand = report.getItemBand();
    final TextFieldElementFactory cfef = new TextFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt("Value row = " + row, row, 0);
View Full Code Here

    final ItemBand itemBand = report.getItemBand();
    final TextFieldElementFactory cfef = new TextFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt("Value row = " + row, row, 0);
View Full Code Here

    //noinspection ConstantConditions
    final GroupDataBody body = (GroupDataBody) innerGroup.getBody();
    final ItemBand band = body.getItemBand();
    band.setLayout("row");
    band.getStyle().setStyleProperty(ElementStyleKeys.INVISIBLE_CONSUMES_SPACE, true);
    band.addElement(createLabel("D: ", 120));
    if (headerPrinted)
    {
      band.addElement(createLabel("Details"));
    }
    for (int d = 0; d < details.size(); d += 1)
View Full Code Here

    band.setLayout("row");
    band.getStyle().setStyleProperty(ElementStyleKeys.INVISIBLE_CONSUMES_SPACE, true);
    band.addElement(createLabel("D: ", 120));
    if (headerPrinted)
    {
      band.addElement(createLabel("Details"));
    }
    for (int d = 0; d < details.size(); d += 1)
    {
      final RelationalDetail relationalDetail = details.get(d);
      band.addElement(createFieldItem(relationalDetail.getField(), null, relationalDetail.getBackground()));
View Full Code Here

      band.addElement(createLabel("Details"));
    }
    for (int d = 0; d < details.size(); d += 1)
    {
      final RelationalDetail relationalDetail = details.get(d);
      band.addElement(createFieldItem(relationalDetail.getField(), null, relationalDetail.getBackground()));
    }
    return rootGroup;
  }

  protected String computeGroupName(final GroupDefinition g)
View Full Code Here

    final Band landScape = new Band();
    landScape.setName("landscape");
    landScape.addElement(noLate);

    final ItemBand band = new ItemBand();
    band.addElement(landScape);

    assertEquals(noLate, FunctionUtilities.findElement(band, "noLate"));
  }
}
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.