| |
|
| java.lang.Object org.jfree.report.function.AbstractExpression org.jfree.report.function.AbstractFunction org.jfree.report.function.TotalItemCountFunction
All known Subclasses: org.jfree.report.function.TotalPageItemCountFunction,
TotalItemCountFunction | public class TotalItemCountFunction extends AbstractFunction (Code) | | 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 |
TotalItemCountFunction | public TotalItemCountFunction()(Code) | | Default constructor.
|
getGroup | public String getGroup()(Code) | | Returns the name of the group to be totalled.
the group name. |
getInstance | public Expression getInstance()(Code) | | Return a completly separated copy of this function. The copy does no longer share any
changeable objects with the original function.
a copy of this function. |
getValue | public Object getValue()(Code) | | Returns the number of items counted (so far) by the function. This is either the
number of items in the report, or the group (if a group has been defined for the
function).
The item count. |
groupStarted | public void groupStarted(ReportEvent event)(Code) | | Receives notification that a group has started.
Parameters: event - the event. |
itemsAdvanced | public void itemsAdvanced(ReportEvent event)(Code) | | Receives notification that a row of data is being processed.
Parameters: event - the event. |
reportInitialized | public void reportInitialized(ReportEvent event)(Code) | | Receives notification that the report has started.
Parameters: event - the event. |
setGroup | public void setGroup(String group)(Code) | | Defines the name of the group to be totalled. If the name is null, all groups are
totalled.
Parameters: group - the group name. |
|
|
|