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

Examples of org.pentaho.reporting.engine.classic.core.Group


    collectStylesFromBand(report.getPageHeader());
    collectStylesFromBand(report.getPageFooter());
    collectStylesFromBand(report.getItemBand());
    for (int i = 0; i < report.getGroupCount(); i++)
    {
      final Group g = report.getGroup(i);
      collectStylesFromBand(g.getHeader());
      collectStylesFromBand(g.getFooter());
    }

    return (ElementStyleSheet[])
        reportStyles.toArray(new ElementStyleSheet[reportStyles.size()]);
  }
View Full Code Here


      {
        return;
      }
    }

    final Group group = FunctionUtilities.getCurrentDeepTraverseGroup(event);
    if (group instanceof RelationalGroup == false)
    {
      return;
    }
    final RelationalGroup relationalGroup = (RelationalGroup) group;
View Full Code Here

      {
        return;
      }
    }

    final Group group = FunctionUtilities.getCurrentDeepTraverseGroup(event);
    if (group instanceof RelationalGroup == false)
    {
      return;
    }
View Full Code Here

      {
        return;
      }
    }

    final Group group = FunctionUtilities.getCurrentDeepTraverseGroup(event);
    if (group instanceof RelationalGroup == false)
    {
      return;
    }
View Full Code Here

    assertStyleCollectionConnected (report.getItemBand (), con);

    final int groupCount = report.getGroupCount ();
    for (int i = 0; i < groupCount; i++)
    {
      final Group g = report.getGroup (i);
      assertStyleCollectionConnected (g.getFooter (), con);
      assertStyleCollectionConnected (g.getHeader (), con);
    }
  }
View Full Code Here

  public void testBugPre181 () throws ReportDefinitionException
  {
    final SimplePatientFormDemo demo = new SimplePatientFormDemo();
    final MasterReport report = demo.createReport();
    final Group group = report.getGroupByName("Patient-Group");
    group.getFooter().getStyle().setStyleProperty(BandStyleKeys.FIXED_POSITION, new Float(1000));
    assertTrue(FunctionalityTestLib.execGraphics2D(report));
   
  }
View Full Code Here

      return;
    }
    try
    {
      w.write("<groupheader name=\"");
      final Group g = event.getReport().getGroup(event.getState().getCurrentGroupIndex());
      w.write(entityParser.encodeEntities(g.getName()));
      w.write("\">");
      writeBand(g.getHeader());
      w.write("</groupheader>");
    }
    catch (IOException ioe)
    {
      XMLWriter.logger.error("Error writing the band", ioe);
View Full Code Here

      return;
    }
    try
    {
      w.write("<groupfooter name=\"");
      final Group g = event.getReport().getGroup(event.getState().getCurrentGroupIndex());
      w.write(entityParser.encodeEntities(g.getName()));
      w.write("\">");
      writeBand(g.getFooter());
      w.write("</groupfooter>");
    }
    catch (IOException ioe)
    {
      XMLWriter.logger.error("Error writing the band", ioe);
View Full Code Here

  private int computeRowPosition(final ReportEvent event)
  {
    final ReportState state = event.getState();
    final int groupIndex = state.getCurrentGroupIndex();
    Group group = event.getReport().getGroup(groupIndex);
    int retval = -1;
    while (group instanceof CrosstabRowGroup)
    {
      retval += 1;
      final Section body = group.getParentSection();
      if (body == null)
      {
        throw new IllegalStateException("Invalid report model: Inner Crosstab-group without parent-body");
      }
      group = (Group) body.getParentSection();
View Full Code Here

  private int computeColumnPosition(final ReportEvent event)
  {
    final ReportState state = event.getState();
    final int groupIndex = state.getCurrentGroupIndex();
    Group group = event.getReport().getGroup(groupIndex);
    int retval = -1;
    while (group instanceof CrosstabColumnGroup)
    {
      retval += 1;
      final Section body = group.getParentSection();
      if (body == null)
      {
        throw new IllegalStateException("Invalid report model: Inner Crosstab-group without parent-body");
      }
      group = (Group) body.getParentSection();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.Group

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.