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

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


    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

   */
  private RelationalGroup createContinentGroup()
  {
    final RelationalGroup continentGroup = new RelationalGroup();
    continentGroup.setName("Continent Group");
    continentGroup.addField("Continent");

    final GroupHeader header = new GroupHeader();
    header.getStyle().setStyleProperty(TextStyleKeys.FONT, "Monospaced");
    header.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
    header.getStyle().setStyleProperty(TextStyleKeys.BOLD, Boolean.TRUE);
View Full Code Here

   */
  private RelationalGroup createContinentGroup()
  {
    final RelationalGroup continentGroup = new RelationalGroup();
    continentGroup.setName("Continent Group");
    continentGroup.addField("Continent");

    final GroupHeader header = new GroupHeader();
    header.getStyle().setStyleProperty(TextStyleKeys.FONT, "Monospaced");
    header.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
    header.getStyle().setStyleProperty(TextStyleKeys.BOLD, Boolean.TRUE);
View Full Code Here

    private void setupGroup(final MasterReport report)
    {
      final RelationalGroup group = new RelationalGroup();
      group.setName("Category Group");
      group.addField("Category");

      final GroupHeader gh = group.getHeader();
      gh.setRepeat(true);
      gh.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(26));
View Full Code Here

  private void setupGroup(final MasterReport report)
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("Category Group");
    group.addField("Category");

    final GroupHeader gh = group.getHeader();
    gh.setRepeat(true);
    gh.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(26));
View Full Code Here

  private void configurePeopleGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("person-group");
    group.addField("person.name");

    LabelElementFactory labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Name:");
View Full Code Here

  private void configureRecordGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("record-group");
    group.addField("person.name");
    group.addField("recordType");

    report.addGroup(group);
  }
View Full Code Here

  private void configureRecordGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("record-group");
    group.addField("person.name");
    group.addField("recordType");

    report.addGroup(group);
  }

  private void configurePageHeader()
View Full Code Here

    mdef.addParameterDefinition(new PlainParameter("Rows", String.class));
    report.setParameterDefinition(mdef);
    report.getParameterValues().put("Rows", "ALL");

    final RelationalGroup group = new RelationalGroup();
    group.addField("Rows");
    report.setRootGroup(group);
    report.addExpression(new ValidateExpression());

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