Package net.sf.jasperreports.engine.base
Class JRBaseSubreportReturnValue
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseSubreportReturnValue
- All Implemented Interfaces:
Serializable,Cloneable,CommonReturnValue,JRCloneable,JRSubreportReturnValue,VariableReturnValue
- Direct Known Subclasses:
JRDesignSubreportReturnValue
public class JRBaseSubreportReturnValue
extends Object
implements JRSubreportReturnValue, Serializable
Base implementation of
JRSubreportReturnValue.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CalculationEnumThe calculation type.protected StringThe incrementer factory class name.protected StringThe name of the subreport variable to be copied.protected StringThe name of the master variable where the value should be copied. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJRBaseSubreportReturnValue(JRSubreportReturnValue returnValue, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the calculation type.Returns the name of the variable whose value should be copied.Returns the incrementer factory class name.Returns the name of the master report variable where the value should be copied.
-
Field Details
-
subreportVariable
The name of the subreport variable to be copied. -
toVariable
The name of the master variable where the value should be copied. -
calculation
The calculation type. -
incrementerFactoryClassName
The incrementer factory class name.
-
-
Constructor Details
-
JRBaseSubreportReturnValue
protected JRBaseSubreportReturnValue() -
JRBaseSubreportReturnValue
protected JRBaseSubreportReturnValue(JRSubreportReturnValue returnValue, JRBaseObjectFactory factory)
-
-
Method Details
-
getFromVariable
Returns the name of the variable whose value should be copied.- Specified by:
getFromVariablein interfaceVariableReturnValue- Returns:
- the name of the variable whose value should be copied.
-
getToVariable
Returns the name of the master report variable where the value should be copied.- Specified by:
getToVariablein interfaceCommonReturnValue- Returns:
- the name of the master report variable where the value should be copied.
-
getCalculation
Returns the calculation type.When copying the value from the subreport, a formula can be applied such that sum, maximum, average and so on can be computed.
- Specified by:
getCalculationin interfaceCommonReturnValue- Returns:
- the calculation type.
-
getIncrementerFactoryClassName
Returns the incrementer factory class name.The factory will be used to increment the value of the master report variable with the value from the subreport.
- Specified by:
getIncrementerFactoryClassNamein interfaceCommonReturnValue- Returns:
- the incrementer factory class name.
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-