public class TotalCalculationFunction extends AbstractFunction
Constructor and Description |
---|
TotalCalculationFunction()
Constructs a new function.
|
Modifier and Type | Method and Description |
---|---|
String |
getCrosstabFilterGroup() |
String |
getField()
Returns the field used by the function.
|
String |
getGroup()
Returns the name of the group to be totalled.
|
Expression |
getInstance()
Return a completly separated copy of this function.
|
Object |
getValue()
Return the current expression value.
|
void |
groupStarted(ReportEvent event)
Receives notification that a group has started.
|
void |
itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed.
|
void |
reportInitialized(ReportEvent event)
Receives notification that the report has started.
|
void |
setCrosstabFilterGroup(String crosstabFilterGroup) |
void |
setField(String field)
Sets the field name for the function.
|
void |
setGroup(String group)
Defines the name of the group to be totalled.
|
void |
summaryRowSelection(ReportEvent event)
A crosstab specific event notifying crosstab-aware functions to select the result for the summary row cell that
will be printed next.
|
groupFinished, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
public TotalCalculationFunction()
Initially the function has no name...be sure to assign one before using the function.
public void reportInitialized(ReportEvent event)
reportInitialized
in interface ReportListener
reportInitialized
in class AbstractFunction
event
- the event.public void groupStarted(ReportEvent event)
groupStarted
in interface ReportListener
groupStarted
in class AbstractFunction
event
- the event.public void itemsAdvanced(ReportEvent event)
itemsAdvanced
in interface ReportListener
itemsAdvanced
in class AbstractFunction
event
- the event.public void summaryRowSelection(ReportEvent event)
AbstractFunction
summaryRowSelection
in interface ReportListener
summaryRowSelection
in class AbstractFunction
event
- The report event.public String getGroup()
public void setGroup(String group)
group
- the group name.public String getField()
public void setField(String field)
field
- the field name.public Object getValue()
The value depends (obviously) on the expression implementation.
public String getCrosstabFilterGroup()
public void setCrosstabFilterGroup(String crosstabFilterGroup)
public Expression getInstance()
AbstractExpression
getInstance
in interface Expression
getInstance
in class AbstractExpression
Copyright © 2017 Hitachi Vantara. All rights reserved.