public class TotalPageSumFunction extends TotalGroupSumFunction implements PageEventListener
group
parameter is specified. If the specified group spans a page break, the sum will be reset with the
new page and sum only the items for the group from the subsequent page.Constructor and Description |
---|
TotalPageSumFunction()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
Expression |
getInstance()
Return a completly separated copy of this function.
|
Object |
getValue()
Return the current function value.
|
void |
groupFinished(ReportEvent event)
If this is the group associated with the function, store away the final value
|
void |
pageFinished(ReportEvent event)
Handles the pageFinishedEvent.
|
void |
pageStarted(ReportEvent event)
Handles the pageStartedEvent.
|
clone, getCrosstabFilterGroup, getField, getGroup, groupStarted, itemsAdvanced, reportInitialized, setCrosstabFilterGroup, setField, setGroup, summaryRowSelection
itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted
getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted
getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
public void groupFinished(ReportEvent event)
groupFinished
in interface ReportListener
groupFinished
in class AbstractFunction
event
- the event.public void pageStarted(ReportEvent event)
pageStarted
in interface PageEventListener
event
- the report event.public void pageFinished(ReportEvent event)
pageFinished
in interface PageEventListener
event
- the report event.public Object getValue()
TotalGroupSumFunction
The value depends (obviously) on the function implementation. For example, a page counting function will return the current page number.
getValue
in interface Expression
getValue
in class TotalGroupSumFunction
public Expression getInstance()
getInstance
in interface Expression
getInstance
in class TotalGroupSumFunction