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