|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.function.AbstractFunction
org.jfree.report.function.GroupCountFunction
org.jfree.report.function.TotalGroupCountFunction
A report function that counts the total of groups in a report. If a null-groupname is given, all groups are counted.
A group can be defined using the property "group". If the group property is not set, all group starts get counted.
| Field Summary |
| Fields inherited from class org.jfree.report.function.GroupCountFunction |
GROUP_PROPERTY, PARENTGROUP_PROPERTY |
| Fields inherited from interface org.jfree.report.function.Expression |
AUTOACTIVATE_PROPERTY |
| Constructor Summary | |
TotalGroupCountFunction()
Default constructor. |
|
| Method Summary | |
protected int |
getCount()
Returns the current group count value. |
Expression |
getInstance()
Return a completly separated copy of this function. |
void |
groupStarted(ReportEvent event)
Receives notification that a new group is about to start. |
void |
reportInitialized(ReportEvent event)
Receives notification that a new report is about to start. |
protected void |
setCount(int count)
Defines the current group count value. |
| Methods inherited from class org.jfree.report.function.GroupCountFunction |
getGroup, getParentGroup, getValue, setGroup, setParentGroup |
| Methods inherited from class org.jfree.report.function.AbstractFunction |
clone, getDataRow, getDependencyLevel, getName, getProperties, getProperty, getProperty, groupFinished, initialize, isActive, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted, setDataRow, setDependencyLevel, setName, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TotalGroupCountFunction()
| Method Detail |
public void reportInitialized(ReportEvent event)
reportInitialized in interface ReportListenerreportInitialized in class GroupCountFunctionevent - the current report event received.public void groupStarted(ReportEvent event)
groupStarted in interface ReportListenergroupStarted in class GroupCountFunctionevent - the current report event received.protected int getCount()
getCount in class GroupCountFunctionprotected void setCount(int count)
setCount in class GroupCountFunctioncount - the curernt group count.public Expression getInstance()
getInstance in interface ExpressiongetInstance in class AbstractFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||