public class StandardSubreportPartComponent extends java.lang.Object implements java.io.Serializable, SubreportPartComponent, JRChangeEventsSupport
SubreportPartComponent implementation.| Modifier and Type | Field and Description |
|---|---|
protected JRExpression |
expression |
protected java.util.Map<java.lang.String,JRSubreportParameter> |
parametersMap |
protected JRExpression |
parametersMapExpression |
protected java.util.List<JRSubreportReturnValue> |
returnValues
Values to be copied from the subreport into the master report.
|
protected java.lang.Boolean |
usingCache |
| Constructor and Description |
|---|
StandardSubreportPartComponent() |
StandardSubreportPartComponent(SubreportPartComponent subreport,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(JRSubreportParameter subreportParameter) |
void |
addReturnValue(JRSubreportReturnValue returnValue)
Adds a return value to the subreport.
|
java.lang.Object |
clone() |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
JRExpression |
getExpression() |
JRSubreportParameter[] |
getParameters() |
java.util.Map<java.lang.String,JRSubreportParameter> |
getParametersMap() |
JRExpression |
getParametersMapExpression() |
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of values to be copied from the subreport into the master.
|
java.util.List<JRSubreportReturnValue> |
getReturnValuesList()
Returns the list of values to be copied from the subreport into the master.
|
java.lang.Boolean |
getUsingCache()
Indicates if the engine is loading the current subreport from cache.
|
JRSubreportParameter |
removeParameter(java.lang.String name) |
boolean |
removeReturnValue(JRSubreportReturnValue returnValue)
Removes a return value from the subreport.
|
void |
setExpression(JRExpression expression) |
void |
setParametersMapExpression(JRExpression parametersMapExpression) |
void |
setUsingCache(java.lang.Boolean usingCache)
Specifies if the engine should be loading the current subreport from cache.
|
protected java.lang.Boolean usingCache
protected java.util.Map<java.lang.String,JRSubreportParameter> parametersMap
protected java.util.List<JRSubreportReturnValue> returnValues
protected JRExpression parametersMapExpression
protected JRExpression expression
public StandardSubreportPartComponent()
public StandardSubreportPartComponent(SubreportPartComponent subreport, JRBaseObjectFactory factory)
public java.lang.Boolean getUsingCache()
SubreportPartComponentgetUsingCache in interface SubreportPartComponentpublic void setUsingCache(java.lang.Boolean usingCache)
SubreportPartComponentIf 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.
setUsingCache in interface SubreportPartComponentpublic JRExpression getParametersMapExpression()
getParametersMapExpression in interface SubreportPartComponentpublic void setParametersMapExpression(JRExpression parametersMapExpression)
public JRSubreportParameter[] getParameters()
getParameters in interface SubreportPartComponentpublic java.util.Map<java.lang.String,JRSubreportParameter> getParametersMap()
public void addParameter(JRSubreportParameter subreportParameter) throws JRException
JRExceptionpublic JRSubreportParameter removeParameter(java.lang.String name)
public void addReturnValue(JRSubreportReturnValue returnValue)
returnValue - the return value to be added.public JRSubreportReturnValue[] getReturnValues()
getReturnValues in interface SubreportPartComponentpublic java.util.List<JRSubreportReturnValue> getReturnValuesList()
JRSubreportReturnValue objectspublic boolean removeReturnValue(JRSubreportReturnValue returnValue)
returnValue - the return value to be removedtrue if the return value was found and removedpublic JRExpression getExpression()
getExpression in interface SubreportPartComponentpublic void setExpression(JRExpression expression)
public java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Objectpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupport© 2001-2014 TIBCO Software Inc. www.jaspersoft.com