|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRExtendedIncrementer
Extended incrementer interface.
The JRIncrementer
has been
kept for backward compatibility.
The crosstab calculation engine requires extended incrementers. An incrementer implementing
JRIncrementer
can be used for report
variables only.
Method Summary | |
---|---|
java.lang.Object |
combine(JRCalculable calculable,
JRCalculable calculableValue,
AbstractValueProvider valueProvider)
Combines two calculated values into one. |
boolean |
ignoresNullValues()
Specifies whether null values are ignored by this incrementer. |
java.lang.Object |
increment(JRCalculable calculable,
java.lang.Object expressionValue,
AbstractValueProvider valueProvider)
Increments a calculable object with a value. |
java.lang.Object |
initialValue()
Returns the initial value for this calculation. |
Methods inherited from interface net.sf.jasperreports.engine.fill.JRIncrementer |
---|
increment |
Method Detail |
---|
java.lang.Object increment(JRCalculable calculable, java.lang.Object expressionValue, AbstractValueProvider valueProvider) throws JRException
calculable
- the calculableexpressionValue
- the valuevalueProvider
- value provider
JRException
java.lang.Object initialValue()
This method should return a neutral value for this calculation (e.g. 0 for sum, 1 for product, etc) or a default value if no neutral value exists.
java.lang.Object combine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider) throws JRException
calculable
- the first calculated valuecalculableValue
- the second calculated valuevalueProvider
- the value provider used for the helper variables
JRException
boolean ignoresNullValues()
null
values are ignored by this incrementer.
If null
values are ignored, the caller can chose to skip
incrementing a calculation with a null
value.
null
values are ignored by this incrementer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |