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(TableTestUtil.createDataItem("outer-header-field", 100, 20));
    group0.getFooter().addElement(TableTestUtil.createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
View Full Code Here


    group0.getFooter().addElement(TableTestUtil.createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
    group1.setName("inner-group");
    group1.addField("g1");
    group1.getHeader().addElement(TableTestUtil.createDataItem("inner-header-field", 100, 20));
    group1.getFooter().addElement(TableTestUtil.createDataItem("inner-footer-field", 100, 20));
    group1.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    report.getItemBand().addElement(TableTestUtil.createDataItem("detail-field", 100, 20));
View Full Code Here

    report.getStyle().setStyleProperty(ElementStyleKeys.POS_X, 100f);
    report.getStyle().setStyleProperty(ElementStyleKeys.POS_Y, 20f);

    final RelationalGroup group0 = (RelationalGroup) report.getGroup(0);
    group0.setName("outer-group");
    group0.addField("g0");
    group0.getHeader().addElement(TableTestUtil.createDataItem("outer-header-field", 100, 20));
    group0.getFooter().addElement(TableTestUtil.createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
View Full Code Here

    group0.getFooter().addElement(TableTestUtil.createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
    group1.setName("inner-group");
    group1.addField("g1");
    group1.getHeader().addElement(TableTestUtil.createDataItem("inner-header-field", 100, 20));
    group1.getFooter().addElement(TableTestUtil.createDataItem("inner-footer-field", 100, 20));
    group1.getStyle().setStyleProperty(ElementStyleKeys.WIDOWS, 2);

    report.getItemBand().addElement(TableTestUtil.createDataItem("detail-field", 100, 20));
View Full Code Here

    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));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
View Full Code Here

    group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    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(createDataItem("detail-field", 100, 20));
    report.getItemBand().getParentSection().getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    group1.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
View Full Code Here

    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));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
View Full Code Here

    group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    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(createDataItem("detail-field", 100, 20));
    report.getItemBand().getParentSection().getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
    group1.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
View Full Code Here

    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));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    final RelationalGroup group1 = (RelationalGroup) report.getGroup(1);
View Full Code Here

    group0.getFooter().addElement(createDataItem("outer-footer-field", 100, 20));
    group0.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);

    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.ORPHANS, 200);
    group1.getStyle().setStyleProperty(ElementStyleKeys.ORPHANS, 2);
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.