|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillElement
net.sf.jasperreports.engine.fill.JRFillSubreport
public class JRFillSubreport
Field Summary | |
---|---|
protected JRBaseFiller |
subreportFiller
|
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement |
---|
band, conditionalStylesContainer, currentEvaluation, defaultStyleProvider, delayedEvaluationsMap, elementGroup, expressionEvaluator, filler, initStyle, parent, printWhenGroupChanges, templates |
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 | |
---|---|
protected |
JRFillSubreport(JRBaseFiller filler,
JRSubreport subreport,
JRFillObjectFactory factory)
|
Method Summary | |
---|---|
void |
collectExpressions(JRExpressionCollector collector)
|
protected void |
copyValue(JRFillSubreportReturnValue returnValue)
|
protected void |
copyValues()
Copies the values from the subreport to the variables of the master report. |
JRFillCloneable |
createClone(JRFillCloneFactory factory)
Creates a working clone of itself. |
protected JRSubreportReturnValue |
createDistinctCountHelperReturnValue(JRSubreportReturnValue returnValue)
|
protected JRSubreportReturnValue |
createHelperReturnValue(JRSubreportReturnValue returnValue,
java.lang.String nameSuffix,
byte calculation)
|
protected void |
evaluate(byte evaluation)
|
protected void |
evaluateSubreport(byte evaluation)
|
protected JRPrintElement |
fill()
|
protected void |
fillSubreport()
|
JRExpression |
getConnectionExpression()
|
JRExpression |
getDataSourceExpression()
|
JRExpression |
getExpression()
|
protected JRTemplateRectangle |
getJRTemplateRectangle()
|
byte |
getMode()
Returns the element transparency mode. |
JRSubreportParameter[] |
getParameters()
|
JRExpression |
getParametersMapExpression()
|
static java.util.Map |
getParameterValues(JRBaseFiller filler,
JRExpression parametersMapExpression,
JRDatasetParameter[] subreportParameters,
byte evaluation,
boolean ignoreNullExpressions,
boolean removeResourceBundle,
boolean removeFormatFactory)
Utility method used for constructing a parameter values map for subreports, sub datasets and crosstabs. |
protected java.util.Collection |
getPrintElements()
|
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of subreport copied values. |
protected static JRSubreportRunnerFactory |
getRunnerFactory()
|
protected void |
initSubreportFiller(JREvaluator evaluator)
|
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. |
protected boolean |
prepare(int availableStretchHeight,
boolean isOverflow)
|
protected void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element. |
void |
rewind()
|
protected void |
saveReturnVariables()
|
void |
setUsingCache(boolean isUsingCache)
Deprecated. Replaced by setUsingCache(Boolean) . |
void |
setUsingCache(java.lang.Boolean isUsingCache)
Specifies if the engine should be loading the current subreport from cache. |
boolean |
usesForReturnValue(java.lang.String variableName)
|
void |
visit(JRVisitor visitor)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
---|
getElementGroup, getHeight, getKey, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getOwnBackcolor, getOwnForecolor, getOwnMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Field Detail |
---|
protected JRBaseFiller subreportFiller
Constructor Detail |
---|
protected JRFillSubreport(JRBaseFiller filler, JRSubreport subreport, JRFillObjectFactory factory)
Method Detail |
---|
public byte getMode()
JRCommonElement
getMode
in interface JRCommonElement
getMode
in class JRFillElement
public boolean isUsingCache()
JRSubreport
isUsingCache
in interface JRSubreport
public void setUsingCache(boolean isUsingCache)
setUsingCache(Boolean)
.
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 JRSubreportParameter[] getParameters()
getParameters
in interface JRSubreport
public JRExpression getConnectionExpression()
getConnectionExpression
in interface JRSubreport
public JRExpression getDataSourceExpression()
getDataSourceExpression
in interface JRSubreport
public JRExpression getExpression()
getExpression
in interface JRSubreport
protected JRTemplateRectangle getJRTemplateRectangle()
protected java.util.Collection getPrintElements()
protected void evaluate(byte evaluation) throws JRException
evaluate
in class JRFillElement
JRException
protected void evaluateSubreport(byte evaluation) throws JRException
JRException
protected void initSubreportFiller(JREvaluator evaluator) throws JRException
JRException
protected void saveReturnVariables()
public static java.util.Map getParameterValues(JRBaseFiller filler, JRExpression parametersMapExpression, JRDatasetParameter[] subreportParameters, byte evaluation, boolean ignoreNullExpressions, boolean removeResourceBundle, boolean removeFormatFactory) throws JRException
filler
- report fillerparametersMapExpression
- expression that yields bulk parameter values mapsubreportParameters
- list of individual parameter valuesevaluation
- evaluation typeignoreNullExpressions
- whether to ignore individual parameter value expressionsremoveResourceBundle
- whether to remove the REPORT_RESOURCE_BUNDLE
value from the bulk values map
JRException
protected void fillSubreport() throws JRException
JRException
protected boolean prepare(int availableStretchHeight, boolean isOverflow) throws JRException
prepare
in class JRFillElement
JRException
public void rewind() throws JRException
rewind
in class JRFillElement
JRException
protected JRPrintElement fill()
fill
in class JRFillElement
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
protected JRSubreportReturnValue createHelperReturnValue(JRSubreportReturnValue returnValue, java.lang.String nameSuffix, byte calculation)
protected JRSubreportReturnValue createDistinctCountHelperReturnValue(JRSubreportReturnValue returnValue)
public JRSubreportReturnValue[] getReturnValues()
JRSubreport
getReturnValues
in interface JRSubreport
public boolean usesForReturnValue(java.lang.String variableName)
protected void copyValues()
protected void copyValue(JRFillSubreportReturnValue returnValue)
protected void resolveElement(JRPrintElement element, byte evaluation)
JRFillElement
resolveElement
in class JRFillElement
element
- the elementevaluation
- the evaluation typepublic 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
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneable
createClone
in interface JRFillCloneable
factory
- the clone factory to use while creating the clone
protected static JRSubreportRunnerFactory getRunnerFactory() throws JRException
JRException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |