|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
net.sf.jasperreports.engine.design.JRDesignSubreport
Field Summary | |
protected JRExpression |
connectionExpression
|
protected JRExpression |
dataSourceExpression
|
protected JRExpression |
expression
|
protected java.lang.Boolean |
isUsingCache
|
protected java.util.Map |
parametersMap
|
protected JRExpression |
parametersMapExpression
|
protected java.util.List |
returnValues
Values to be copied from the subreport into the master report. |
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
backcolor, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y |
Fields inherited from interface net.sf.jasperreports.engine.JRElement |
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT |
Constructor Summary | |
JRDesignSubreport()
|
Method Summary | |
void |
addParameter(JRSubreportParameter subreportParameter)
|
void |
addReturnValue(JRSubreportReturnValue returnValue)
Adds a return value to the subreport. |
void |
collectExpressions(JRExpressionCollector collector)
|
JRExpression |
getConnectionExpression()
|
JRChild |
getCopy(JRAbstractObjectFactory factory)
|
JRExpression |
getDataSourceExpression()
|
JRExpression |
getExpression()
|
JRSubreportParameter[] |
getParameters()
|
java.util.Map |
getParametersMap()
|
JRExpression |
getParametersMapExpression()
|
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of values to be copied from the subreport into the master. |
java.util.List |
getReturnValuesList()
Returns the list of values to be copied from the subreport into the master. |
java.lang.Boolean |
isOwnUsingCache()
Indicates if the engine is loading the current subreport from cache. |
boolean |
isUsingCache()
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 |
setConnectionExpression(JRExpression connectionExpression)
|
void |
setDataSourceExpression(JRExpression dataSourceExpression)
|
void |
setExpression(JRExpression expression)
|
void |
setParametersMapExpression(JRExpression parametersMapExpression)
|
void |
setUsingCache(boolean isUsingCache)
Specifies if the engine should be loading the current subreport from cache. |
void |
setUsingCache(java.lang.Boolean isUsingCache)
Specifies if the engine should be loading the current subreport from cache. |
void |
writeXml(JRXmlWriter xmlWriter)
|
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElement |
setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setY |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Field Detail |
protected java.lang.Boolean isUsingCache
protected java.util.Map parametersMap
protected java.util.List returnValues
protected JRExpression parametersMapExpression
protected JRExpression connectionExpression
protected JRExpression dataSourceExpression
protected JRExpression expression
Constructor Detail |
public JRDesignSubreport()
Method Detail |
public boolean isUsingCache()
JRSubreport
isUsingCache
in interface JRSubreport
public void setUsingCache(boolean isUsingCache)
JRSubreport
For subreports that have expressions returning java.lang.String objects as the subreport source, representing file names, URLs or classpath resources, the default value for this flag is true.
setUsingCache
in interface JRSubreport
public JRExpression getParametersMapExpression()
getParametersMapExpression
in interface JRSubreport
public void setParametersMapExpression(JRExpression parametersMapExpression)
public JRSubreportParameter[] getParameters()
getParameters
in interface JRSubreport
public java.util.Map getParametersMap()
public void addParameter(JRSubreportParameter subreportParameter) throws JRException
JRException
public JRSubreportParameter removeParameter(java.lang.String name)
public JRExpression getConnectionExpression()
getConnectionExpression
in interface JRSubreport
public void setConnectionExpression(JRExpression connectionExpression)
public JRExpression getDataSourceExpression()
getDataSourceExpression
in interface JRSubreport
public void setDataSourceExpression(JRExpression dataSourceExpression)
public JRExpression getExpression()
getExpression
in interface JRSubreport
public void setExpression(JRExpression expression)
public JRChild getCopy(JRAbstractObjectFactory factory)
getCopy
in interface JRChild
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void writeXml(JRXmlWriter xmlWriter)
writeXml
in interface JRChild
public void addReturnValue(JRSubreportReturnValue returnValue)
returnValue
- the return value to be added.public JRSubreportReturnValue[] getReturnValues()
getReturnValues
in interface JRSubreport
public java.util.List getReturnValuesList()
JRSubreportReturnValue
objectspublic boolean removeReturnValue(JRSubreportReturnValue returnValue)
returnValue
- the return value to be removed
true
if the return value was found and removedpublic java.lang.Boolean isOwnUsingCache()
JRSubreport
isOwnUsingCache
in interface JRSubreport
public void setUsingCache(java.lang.Boolean isUsingCache)
JRSubreport
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.
setUsingCache
in interface JRSubreport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |