net.sf.jasperreports.engine
Interface JRGroup

All Superinterfaces:
java.lang.Cloneable, JRCloneable
All Known Implementing Classes:
JRBaseGroup, JRDesignGroup, JRFillGroup

public interface JRGroup
extends JRCloneable

Groups represent a flexible way to organize data on a report. A report group is represented by sequence of consecutive records in the data source that have something in common, like the value of a certain report field for example.

The value of the associated group expression is what makes group records stick together. This value is the thing that they have in common.

Version:
$Id: JRGroup.java 3033 2009-08-27 11:46:22Z teodord $
Author:
Teodor Danciu ([email protected])

Method Summary
 JRVariable getCountVariable()
           
 JRExpression getExpression()
          Gets the expression that defines what records in the group have in common.
 JRBand getGroupFooter()
          Deprecated. Replaced by getGroupFooterSection().
 JRSection getGroupFooterSection()
          Gets the footer section created for this group.
 JRBand getGroupHeader()
          Deprecated. Replaced by getGroupHeaderSection().
 JRSection getGroupHeaderSection()
          Gets the header section created for this group.
 int getMinHeightToStartNewPage()
          Gets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.
 java.lang.String getName()
          Gets the group name
 boolean isReprintHeaderOnEachPage()
          Gets the flag that signals if the group header should be reprinted at the beginning of each page.
 boolean isResetPageNumber()
          Gets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.
 boolean isStartNewColumn()
          Gets the flag that signals if the group header should be printed always on a new column.
 boolean isStartNewPage()
          Gets the flag that signals if the group header should be printed always on a new page.
 void setMinHeightToStartNewPage(int minHeight)
          Gets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.
 void setReprintHeaderOnEachPage(boolean isReprint)
          Sets the flag that signals if the group header should be reprinted at the beginning of each page.
 void setResetPageNumber(boolean isReset)
          Sets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.
 void setStartNewColumn(boolean isStart)
          Sets the flag that signals if the group header should be printed always on a new column.
 void setStartNewPage(boolean isStart)
          Sets the flag that signals if the group header should be printed always on a new page.
 
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
 

Method Detail

getName

java.lang.String getName()
Gets the group name


isStartNewColumn

boolean isStartNewColumn()
Gets the flag that signals if the group header should be printed always on a new column.


setStartNewColumn

void setStartNewColumn(boolean isStart)
Sets the flag that signals if the group header should be printed always on a new column.


isStartNewPage

boolean isStartNewPage()
Gets the flag that signals if the group header should be printed always on a new page.


setStartNewPage

void setStartNewPage(boolean isStart)
Sets the flag that signals if the group header should be printed always on a new page.


isResetPageNumber

boolean isResetPageNumber()
Gets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.


setResetPageNumber

void setResetPageNumber(boolean isReset)
Sets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.


isReprintHeaderOnEachPage

boolean isReprintHeaderOnEachPage()
Gets the flag that signals if the group header should be reprinted at the beginning of each page.


setReprintHeaderOnEachPage

void setReprintHeaderOnEachPage(boolean isReprint)
Sets the flag that signals if the group header should be reprinted at the beginning of each page.


getMinHeightToStartNewPage

int getMinHeightToStartNewPage()
Gets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.


setMinHeightToStartNewPage

void setMinHeightToStartNewPage(int minHeight)
Gets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.


getExpression

JRExpression getExpression()
Gets the expression that defines what records in the group have in common.


getGroupHeader

JRBand getGroupHeader()
Deprecated. Replaced by getGroupHeaderSection().

Gets the header band created for this group.


getGroupHeaderSection

JRSection getGroupHeaderSection()
Gets the header section created for this group.


getGroupFooter

JRBand getGroupFooter()
Deprecated. Replaced by getGroupFooterSection().

Gets the footer band created for this group.


getGroupFooterSection

JRSection getGroupFooterSection()
Gets the footer section created for this group.


getCountVariable

JRVariable getCountVariable()


Copyright © 2010. All Rights Reserved.