Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » function » [javadoc | source]
org.jfree.report.function
public class: TotalCalculationFunction [javadoc | source]
java.lang.Object
   org.jfree.report.function.AbstractExpression
      org.jfree.report.function.AbstractFunction
         org.jfree.report.function.TotalCalculationFunction

All Implemented Interfaces:
    Function, Expression, Serializable

A report function that stores the result of a calculation for a group or the complete report. This function can be used to convert simple running-functions into total-functions by wrapping them up. The wrapped up function will be evaluated as usual and the result at the end of the report and/or end of the group will be stored in the TotalCalculationFunction.
Constructor:
 public TotalCalculationFunction() 
Method from org.jfree.report.function.TotalCalculationFunction Summary:
getField,   getGroup,   getInstance,   getValue,   groupFinished,   groupStarted,   reportFinished,   reportInitialized,   setField,   setGroup
Methods from org.jfree.report.function.AbstractFunction:
groupFinished,   groupStarted,   itemsAdvanced,   itemsFinished,   itemsStarted,   reportDone,   reportFinished,   reportInitialized,   reportStarted
Methods from org.jfree.report.function.AbstractExpression:
clone,   getDataRow,   getDependencyLevel,   getInstance,   getName,   getReportConfiguration,   getResourceBundleFactory,   getRuntime,   isActive,   isDeepTraversing,   isPreserve,   setActive,   setDependencyLevel,   setName,   setPreserve,   setRuntime
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.function.TotalCalculationFunction Detail:
 public String getField() 
    Returns the field used by the function. The field name corresponds to a column name in the report's data-row.
 public String getGroup() 
    Returns the name of the group to be totalled.
 public Expression getInstance() 
 public Object getValue() 
    Return the current expression value.

    The value depends (obviously) on the expression implementation.

 public  void groupFinished(ReportEvent event) 
    Receives notification that a group has finished.
 public  void groupStarted(ReportEvent event) 
    Receives notification that a group has started.
 public  void reportFinished(ReportEvent event) 
    Receives notification that the report has finished.
 public  void reportInitialized(ReportEvent event) 
    Receives notification that the report has started.
 public  void setField(String field) 
    Sets the field name for the function. The field name corresponds to a column name in the report's data-row.
 public  void setGroup(String group) 
    Defines the name of the group to be totalled. If the name is null, all groups are totalled.