Class TotalGroupCountFunction
- 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.GroupCountFunction
-
- org.pentaho.reporting.engine.classic.core.function.TotalGroupCountFunction
-
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,ReportListener
,Expression
,Function
public class TotalGroupCountFunction extends GroupCountFunction
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.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TotalGroupCountFunction()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getInstance()
Return a completly separated copy of this function.Object
getValue()
Returns the computed value.void
groupStarted(ReportEvent event)
Receives notification that a group has started.void
reportInitialized(ReportEvent event)
Receives notification that the report has started.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.GroupCountFunction
getCount, getGroup, getParentGroup, setCount, setGroup, setParentGroup
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction
groupFinished, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted, summaryRowSelection
-
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
reportInitialized
public void reportInitialized(ReportEvent event)
Receives notification that the report has started.- Specified by:
reportInitialized
in interfaceReportListener
- Overrides:
reportInitialized
in classGroupCountFunction
- Parameters:
event
- the event.
-
groupStarted
public void groupStarted(ReportEvent event)
Receives notification that a group has started.- Specified by:
groupStarted
in interfaceReportListener
- Overrides:
groupStarted
in classGroupCountFunction
- Parameters:
event
- the event.
-
getValue
public Object getValue()
Returns the computed value.- Specified by:
getValue
in interfaceExpression
- Overrides:
getValue
in classGroupCountFunction
- Returns:
- the computed value.
-
getInstance
public Expression getInstance()
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the original function.- Specified by:
getInstance
in interfaceExpression
- Overrides:
getInstance
in classAbstractExpression
- Returns:
- a copy of this function.
-
-