| |
|
| java.lang.Object org.jfree.report.function.AbstractExpression org.jfree.report.function.AbstractFunction org.jfree.report.function.ItemSumFunction org.jfree.report.function.ConditionalItemSumFunction
ConditionalItemSumFunction | public class ConditionalItemSumFunction extends ItemSumFunction (Code) | | 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.
author: Thomas Morgner |
Method Summary | |
public String | getConditionField() Returns the name of the data-row column from where to read the comparison value for the condition. | public Object | getConditionValue() Returns the static comparison value for the condition. | public void | itemsAdvanced(ReportEvent event) Receives notification that a row of data is being processed. | public void | setConditionField(String conditionField) Defines the name of the data-row column from where to read the comparison value for the condition. | public void | setConditionValue(Object conditionValue) Defines the static comparison value for the condition. |
ConditionalItemSumFunction | public ConditionalItemSumFunction()(Code) | | Default Constructor.
|
getConditionField | public String getConditionField()(Code) | | Returns the name of the data-row column from where to read the comparison value for the condition.
a field name. |
getConditionValue | public Object getConditionValue()(Code) | | Returns the static comparison value for the condition.
the static value. |
itemsAdvanced | public void itemsAdvanced(ReportEvent event)(Code) | | Receives notification that a row of data is being processed.
Parameters: event - Information about the event. |
setConditionField | public void setConditionField(String conditionField)(Code) | | Defines the name of the data-row column from where to read the comparison value for the condition.
Parameters: conditionField - a field name. |
setConditionValue | public void setConditionValue(Object conditionValue)(Code) | | Defines the static comparison value for the condition.
Parameters: conditionValue - the static value. |
|
|
|