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

Examples of org.pentaho.reporting.engine.classic.core.RelationalGroup.addField()


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

    final RelationalGroup group0 = (RelationalGroup) report.getGroup(0);
    group0.setName("outer-group");
    group0.addField("g0");
    group0.getHeader().addElement(createDataItem("outer-header-field", 100, 20));
    group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
    group1.setName("inner-group");
    group1.addField("g1");
View Full Code Here


    group0.addField("g0");
    group0.getHeader().addElement(createDataItem("outer-header-field", 100, 20));
    group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
    group1.setName("inner-group");
    group1.addField("g1");
    group1.getHeader().addElement(createDataItem("inner-header-field", 100, 20));
    group1.getFooter().addElement(createDataItem("inner-footer-field", 100, 20));
    report.getItemBand().addElement(createFieldItem("detail-field", 100, 20));
    report.getItemBand().getParentSection().getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, Boolean.TRUE);
    group0.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, Boolean.TRUE);
View Full Code Here

    report.addExpression(new TotalItemCountVerifyFunction());
    report.setDataFactory(new TableDataFactory("default", new AggregateTestDataTableModel()));
    report.setQuery("default");
    final RelationalGroup rootGroup = (RelationalGroup) report.getRootGroup();
    rootGroup.clearFields();
    rootGroup.addField("Continent");
    rootGroup.setName("Continent Group");

    final TotalItemCountFunction f = new TotalItemCountFunction();
    f.setName("continent-total-gc");
    f.setGroup("Continent Group");
View Full Code Here

    assertTrue(gl.size() == 1); // the old instance gets removed and replaced by the new group
    gl.add(new RelationalGroup());
    assertTrue(gl.size() == 1); // the old instance gets removed and replaced by the new group

    final RelationalGroup g2 = new RelationalGroup();
    g2.addField("Test");

    final RelationalGroup g3 = new RelationalGroup();
    g3.addField("Failure");

    // group g2 and g3 are unreleated, g2 is no child or parent of g3
View Full Code Here

    final RelationalGroup g2 = new RelationalGroup();
    g2.addField("Test");

    final RelationalGroup g3 = new RelationalGroup();
    g3.addField("Failure");

    // group g2 and g3 are unreleated, g2 is no child or parent of g3
    gl.add(g2);
    try
    {
View Full Code Here

      for (int i = 0; i < groups.size(); i += 1)
      {
        final GroupDefinition groupDefinition = groups.get(i);
        final RelationalGroup g = new RelationalGroup();
        g.addField(groupDefinition.getGroupField());
        g.setName(computeGroupName(groupDefinition));
        configureGroupHeader(groupDefinition, g, headerPrinted);
        configureGroupFooter(groupDefinition, g, headerPrinted);
        if (rootGroup == null)
        {
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.