|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.AbstractFunction
org.pentaho.reporting.engine.classic.core.function.ItemSumFunction
org.pentaho.reporting.engine.classic.core.function.ConditionalItemSumFunction
public class ConditionalItemSumFunction
A item sum function that only sums up the current value, if the value read from the conditionField is the same as the value from the conditionValue property.
Constructor Summary | |
---|---|
ConditionalItemSumFunction()
Deprecated. Default Constructor. |
Method Summary | |
---|---|
String |
getConditionField()
Deprecated. Returns the name of the data-row column from where to read the comparison value for the condition. |
Object |
getConditionValue()
Deprecated. Returns the static comparison value for the condition. |
void |
itemsAdvanced(ReportEvent event)
Deprecated. Receives notification that a row of data is being processed. |
void |
setConditionField(String conditionField)
Deprecated. Defines the name of the data-row column from where to read the comparison value for the condition. |
void |
setConditionValue(Object conditionValue)
Deprecated. Defines the static comparison value for the condition. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.ItemSumFunction |
---|
getField, getGroup, getInstance, getValue, groupStarted, reportInitialized, setField, setGroup |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction |
---|
groupFinished, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.event.ReportListener |
---|
groupFinished, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted |
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 |
Constructor Detail |
---|
public ConditionalItemSumFunction()
Method Detail |
---|
public String getConditionField()
public void setConditionField(String conditionField)
conditionField
- a field name.public Object getConditionValue()
public void setConditionValue(Object conditionValue)
conditionValue
- the static value.public void itemsAdvanced(ReportEvent event)
itemsAdvanced
in interface ReportListener
itemsAdvanced
in class ItemSumFunction
event
- Information about the event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |