Class JRBaseSubreportReturnValue

    • Field Detail

      • subreportVariable

        protected java.lang.String subreportVariable
        The name of the subreport variable to be copied.
      • toVariable

        protected java.lang.String toVariable
        The name of the master variable where the value should be copied.
      • calculationValue

        protected CalculationEnum calculationValue
        The calculation type.
      • incrementerFactoryClassName

        protected java.lang.String incrementerFactoryClassName
        The incrementer factory class name.
    • Constructor Detail

      • JRBaseSubreportReturnValue

        protected JRBaseSubreportReturnValue()
    • Method Detail

      • getFromVariable

        public java.lang.String getFromVariable()
        Returns the name of the variable whose value should be copied.
        Specified by:
        getFromVariable in interface VariableReturnValue
        Returns:
        the name of the variable whose value should be copied.
      • getToVariable

        public java.lang.String getToVariable()
        Returns the name of the master report variable where the value should be copied.
        Specified by:
        getToVariable in interface CommonReturnValue
        Returns:
        the name of the master report variable where the value should be copied.
      • getCalculation

        public CalculationEnum 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:
        getCalculation in interface CommonReturnValue
        Returns:
        the calculation type.
      • getIncrementerFactoryClassName

        public java.lang.String 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:
        getIncrementerFactoryClassName in interface CommonReturnValue
        Returns:
        the incrementer factory class name.
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface JRCloneable
        Overrides:
        clone in class java.lang.Object