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.currentGroupKey, ZERO
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
|
protected boolean |
isPrepareRunLevel(ReportEvent event) |
void |
pageFinished(ReportEvent event)
Handles the pageFinishedEvent.
|
void |
pageStarted(ReportEvent event)
Handles the pageStartedEvent.
|
clear, 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, finalize, 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
protected boolean isPrepareRunLevel(ReportEvent event)
isPrepareRunLevel
in class TotalGroupSumFunction
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
Copyright © 2017 Hitachi Vantara. All rights reserved.