org.pentaho.reporting.engine.classic.core.function
Class TotalPageItemCountFunction
java.lang.Object
org.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.function.TotalItemCountFunction
org.pentaho.reporting.engine.classic.core.function.TotalPageItemCountFunction
- All Implemented Interfaces:
- Serializable, Cloneable, EventListener, PageEventListener, ReportListener, AggregationFunction, Expression, Function
public class TotalPageItemCountFunction
- extends TotalItemCountFunction
- implements PageEventListener
A report function that counts the total number of items contained in groups in a report. If no groupname is given,
all items of the report are counted.
Like all Total-Functions, this function produces a precomputed grand total. The function's result is precomputed once
and will not change later. Printing the result of this function in a group header returns the same value as printed
in the group-footer.
The ItemCount can be used to produce a running row-count for a group or report.
To count the number of groups in a report, use the TotalGroupCountFunction.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression |
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime |
TotalPageItemCountFunction
public TotalPageItemCountFunction()
pageStarted
public void pageStarted(ReportEvent event)
- Handles the pageStartedEvent.
- Specified by:
pageStarted
in interface PageEventListener
- Parameters:
event
- the report event.
pageFinished
public void pageFinished(ReportEvent event)
- Handles the pageFinishedEvent.
- Specified by:
pageFinished
in interface PageEventListener
- Parameters:
event
- the report event.