net.sf.jasperreports.engine.fill
Class JRAbstractExtendedIncrementer
java.lang.Object
net.sf.jasperreports.engine.fill.JRAbstractExtendedIncrementer
- All Implemented Interfaces:
- JRExtendedIncrementer, JRIncrementer
public abstract class JRAbstractExtendedIncrementer
- extends Object
- implements JRExtendedIncrementer
Base class for extended incrementers.
- Version:
- $Id: JRAbstractExtendedIncrementer.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRAbstractExtendedIncrementer
public JRAbstractExtendedIncrementer()
increment
public Object increment(JRFillVariable variable,
Object expressionValue,
AbstractValueProvider valueProvider)
throws JRException
- This implementation simply calls
increment(JRCalculable, Object, AbstractValueProvider).
- Specified by:
increment in interface JRIncrementer
- Throws:
JRException
combine
public Object combine(JRCalculable calculable,
JRCalculable calculableValue,
AbstractValueProvider valueProvider)
throws JRException
- This implementation calls
increment(calculable, calculableValue.getValue(), valueProvider).
- Specified by:
combine in interface JRExtendedIncrementer
- Parameters:
calculable - the first calculated valuecalculableValue - the second calculated valuevalueProvider - the value provider used for the helper variables
- Returns:
- the combined value
- Throws:
JRException
ignoresNullValues
public boolean ignoresNullValues()
- This implementation returns
true.
Incrementer implementations can override this to specify that
null values should not be ignored.
- Specified by:
ignoresNullValues in interface JRExtendedIncrementer
- Returns:
- whether
null values are ignored by this incrementer
Copyright © 2012. All Rights Reserved.