Class StandardSubreportPartComponent

    • Field Detail

      • usingCache

        protected java.lang.Boolean usingCache
      • returnValues

        protected java.util.List<JRSubreportReturnValue> returnValues
        Values to be copied from the subreport into the master report.
      • parametersMapExpression

        protected JRExpression parametersMapExpression
    • Constructor Detail

      • StandardSubreportPartComponent

        public StandardSubreportPartComponent()
    • Method Detail

      • getUsingCache

        public java.lang.Boolean getUsingCache()
        Description copied from interface: SubreportPartComponent
        Indicates if the engine is loading the current subreport from cache. Implementations of this method return the actual value for the internal flag that was explicitly set on this subreport.
        Specified by:
        getUsingCache in interface SubreportPartComponent
        Returns:
        Boolean.TRUE if the subreport should be loaded from cache, Boolean.FALSE otherwise or null in case the flag was never explicitly set on this subreport element
      • setUsingCache

        public void setUsingCache​(java.lang.Boolean usingCache)
        Description copied from interface: SubreportPartComponent
        Specifies if the engine should be loading the current subreport from cache. If set to Boolean.TRUE, the reporting engine will try to recognize previously loaded subreports using their specified source. For example, it will recognize an subreport if the subreport source is a file name that it has already loaded, or if it is the same URL.

        If set to null, the engine will rely on some default value which depends on the type of the subreport expression. The cache is turned on by default only for subreports that have java.lang.String objects in their expressions.

        Specified by:
        setUsingCache in interface SubreportPartComponent
      • setParametersMapExpression

        public void setParametersMapExpression​(JRExpression parametersMapExpression)
      • getParametersMap

        public java.util.Map<java.lang.String,​JRSubreportParameter> getParametersMap()
      • addReturnValue

        public void addReturnValue​(JRSubreportReturnValue returnValue)
        Adds a return value to the subreport.
        Parameters:
        returnValue - the return value to be added.
      • removeReturnValue

        public boolean removeReturnValue​(JRSubreportReturnValue returnValue)
        Removes a return value from the subreport.
        Parameters:
        returnValue - the return value to be removed
        Returns:
        true if the return value was found and removed
      • setExpression

        public void setExpression​(JRExpression expression)
      • clone

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