org.jfree.report.structure

Class Group

Implemented Interfaces:
Cloneable, Serializable

public class Group
extends Section

A report group. A group is a repeated section which is bound to an expression.

Default Behaviour

Whether a new group should be started is evaluated by the group's expression. If that expression returns Boolean.TRUE, a new group instance is started. (That expression answers the Questions: 'Does this group instance end here?').

If the group expression is invalid or there is no group expression at all, a group will consume all rows until the datasource is no longer advanceable.

Authors:
David Gilbert
Thomas Morgner

Field Summary

Fields inherited from class org.jfree.report.structure.Element

ID_ATTRIBUTE, NAMESPACE_ATTRIBUTE, NAME_ATTRIBUTE, TYPE_ATTRIBUTE, VIRTUAL_ATTRIBUTE

Constructor Summary

Group()
Constructs a group with no fields, and an empty header and footer.

Method Summary

Object
clone()
Group
getGroup()
Expression
getGroupingExpression()
void
setGroupingExpression(Expression groupingExpression)
String
toString()
Returns a string representation of the group (useful for debugging).

Methods inherited from class org.jfree.report.structure.Section

addNode, addNode, addNodes, addOperationAfter, addOperationBefore, clone, findFirstChild, getElementByName, getNode, getNodeArray, getNodeCount, getNodes, getOperationAfter, getOperationBefore, isRepeat, removeNode, setOperationAfter, setOperationBefore, setRepeat, toString

Methods inherited from class org.jfree.report.structure.Element

addExpression, clone, getAttribute, getAttribute, getAttributeExpression, getAttributeExpression, getAttributeExpressionMap, getAttributeExpressions, getAttributeMap, getAttributeNameSpaces, getAttributes, getDisplayCondition, getExpressions, getId, getLocale, getLocaleFromAttributes, getName, getNamespace, getStyle, getStyleExpression, getStyleExpressions, getType, getVisibility, isEnabled, isVirtual, setAttribute, setAttribute, setAttributeExpression, setAttributeExpression, setDisplayCondition, setEnabled, setExpressions, setId, setName, setNamespace, setStyleExpression, setType, setVirtual, setVisibility

Methods inherited from class org.jfree.report.structure.Node

clone, getDisplayCondition, getGroup, getLocale, getParent, getReport, getRootReport, isEnabled, setParent, updateParent

Constructor Details

Group

public Group()
Constructs a group with no fields, and an empty header and footer.

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Overrides:
clone in interface Section

getGroup

public Group getGroup()
Overrides:
getGroup in interface Node

getGroupingExpression

public Expression getGroupingExpression()

setGroupingExpression

public void setGroupingExpression(Expression groupingExpression)

toString

public String toString()
Returns a string representation of the group (useful for debugging).
Overrides:
toString in interface Section
Returns:
A string.