Class StandardSubreportPartComponent
java.lang.Object
net.sf.jasperreports.parts.subreport.StandardSubreportPartComponent
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,PartComponent,SubreportPartComponent
public class StandardSubreportPartComponent
extends Object
implements Serializable, SubreportPartComponent, JRChangeEventsSupport
Standard
SubreportPartComponent implementation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected Map<String, JRSubreportParameter> protected JRExpressionprotected List<JRSubreportReturnValue> Values to be copied from the subreport into the master report.protected Boolean -
Constructor Summary
ConstructorsConstructorDescriptionStandardSubreportPartComponent(SubreportPartComponent subreport, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(JRSubreportParameter subreportParameter) voidaddReturnValue(JRSubreportReturnValue returnValue) Adds a return value to the subreport.clone()Returns the property change support object for this instance.Returns the list of values to be copied from the subreport into the master.Returns the list of values to be copied from the subreport into the master.Indicates if the engine is loading the current subreport from cache.removeParameter(String name) booleanremoveReturnValue(JRSubreportReturnValue returnValue) Removes a return value from the subreport.voidsetExpression(JRExpression expression) voidsetParametersMapExpression(JRExpression parametersMapExpression) voidsetUsingCache(Boolean usingCache) Specifies if the engine should be loading the current subreport from cache.
-
Field Details
-
usingCache
-
parametersMap
-
returnValues
Values to be copied from the subreport into the master report. -
parametersMapExpression
-
expression
-
-
Constructor Details
-
StandardSubreportPartComponent
public StandardSubreportPartComponent() -
StandardSubreportPartComponent
public StandardSubreportPartComponent(SubreportPartComponent subreport, JRBaseObjectFactory factory)
-
-
Method Details
-
getUsingCache
Description copied from interface:SubreportPartComponentIndicates 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:
getUsingCachein interfaceSubreportPartComponent- 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
Description copied from interface:SubreportPartComponentSpecifies 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:
setUsingCachein interfaceSubreportPartComponent
-
getParametersMapExpression
- Specified by:
getParametersMapExpressionin interfaceSubreportPartComponent
-
setParametersMapExpression
-
getParameters
- Specified by:
getParametersin interfaceSubreportPartComponent
-
getParametersMap
-
addParameter
- Throws:
JRException
-
removeParameter
-
addReturnValue
Adds a return value to the subreport.- Parameters:
returnValue- the return value to be added.
-
getReturnValues
Returns the list of values to be copied from the subreport into the master.- Specified by:
getReturnValuesin interfaceSubreportPartComponent- Returns:
- the list of values to be copied from the subreport into the master.
-
getReturnValuesList
Returns the list of values to be copied from the subreport into the master.- Returns:
- list of
JRSubreportReturnValueobjects
-
removeReturnValue
Removes a return value from the subreport.- Parameters:
returnValue- the return value to be removed- Returns:
trueif the return value was found and removed
-
getExpression
- Specified by:
getExpressionin interfaceSubreportPartComponent
-
setExpression
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-