|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, elementGroup, elementId, expressionEvaluator, filler, initStyle, mergedProperties, originProvider, parent, printWhenGroupChanges, staticProperties, templates |
Constructor Summary | |
---|---|
protected |
JRFillSubreport(JRBaseFiller filler,
JRSubreport subreport,
JRFillObjectFactory factory)
|
Method Summary | |
---|---|
protected void |
cancelSubreportFill()
|
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 JRTemplateElement |
createElementTemplate()
|
protected DatasetExpressionEvaluator |
createEvaluator()
|
protected JRSubreportReturnValue |
createHelperReturnValue(JRSubreportReturnValue returnValue,
java.lang.String nameSuffix,
CalculationEnum calculation)
|
protected void |
evaluate(byte evaluation)
|
protected java.util.Map<java.lang.String,java.lang.Object> |
evaluateParameterValues(byte evaluation)
|
protected JasperReport |
evaluateReport(byte evaluation)
|
protected void |
evaluateSubreport(byte evaluation)
|
protected JRPrintElement |
fill()
|
protected void |
fillSubreport()
|
JRExpression |
getConnectionExpression()
|
protected int |
getContentsStretchHeight()
|
JRExpression |
getDataSourceExpression()
|
JRExpression |
getExpression()
|
protected JRTemplateRectangle |
getJRTemplateRectangle()
|
ModeEnum |
getModeValue()
Returns the element transparency mode. |
JRSubreportParameter[] |
getParameters()
|
JRExpression |
getParametersMapExpression()
|
static java.util.Map<java.lang.String,java.lang.Object> |
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. |
static java.util.Map<java.lang.String,java.lang.Object> |
getParameterValues(JRBaseFiller filler,
JRFillExpressionEvaluator expressionEvaluator,
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<JRPrintElement> |
getPrintElements()
|
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of subreport copied values. |
protected JRSubreportRunnerFactory |
getRunnerFactory()
|
java.lang.Boolean |
getUsingCache()
Indicates if the engine is loading the current subreport from cache. |
protected void |
initSubreportFiller(DatasetExpressionEvaluator evaluator)
|
java.lang.Boolean |
isOwnUsingCache()
Deprecated. Replaced by getUsingCache() . |
java.lang.Boolean |
isRunToBottom()
Specifies whether the subreport element will consume the entire vertical space available on the report page. |
boolean |
isUsingCache()
Deprecated. Replaced by getUsingCache() . |
protected DatasetExpressionEvaluator |
loadReportEvaluator()
|
protected boolean |
prepare(int availableHeight,
boolean isOverflow)
|
protected void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element. |
void |
rewind()
|
protected void |
saveReturnVariables()
|
void |
setRunToBottom(java.lang.Boolean runToBottom)
Sets the flag that Specifies whether the subreport element will consume the entire vertical space available on the report page. |
void |
setUsingCache(java.lang.Boolean isUsingCache)
Specifies if the engine should be loading the current subreport from cache. |
void |
subreportPageFilled()
|
boolean |
usesForReturnValue(java.lang.String variableName)
|
boolean |
usingCache()
|
protected void |
validateReport()
|
protected void |
verifyBandHeights()
|
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, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, 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, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable |
---|
getUUID |
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 ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRFillElement
public boolean isUsingCache()
getUsingCache()
.
JRSubreport
isUsingCache
in interface JRSubreport
public boolean usingCache()
public java.lang.Boolean isRunToBottom()
JRSubreport
isRunToBottom
in interface JRSubreport
JRSubreport.setRunToBottom(Boolean)
public void setRunToBottom(java.lang.Boolean runToBottom)
JRSubreport
This flag should be set to true
if the subreport needs to always
print its column and page footers at the bottom of the report page, even when
the subreport data does not stretch to the bottom.
Note that when isFloatColumnFooter
is set for the subreport, the column footers will not be printed at the bottom
of the page even if this flag is set.
setRunToBottom
in interface JRSubreport
runToBottom
- whether the subreport element will consume the entire
space down to the bottom of the pagepublic 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 JRTemplateElement createElementTemplate()
createElementTemplate
in class JRFillElement
protected java.util.Collection<JRPrintElement> getPrintElements()
public void subreportPageFilled()
protected void evaluate(byte evaluation) throws JRException
evaluate
in class JRFillElement
JRException
protected JasperReport evaluateReport(byte evaluation) throws JRException
JRException
protected void evaluateSubreport(byte evaluation) throws JRException
JRException
protected java.util.Map<java.lang.String,java.lang.Object> evaluateParameterValues(byte evaluation) throws JRException
JRException
protected DatasetExpressionEvaluator loadReportEvaluator() throws JRException
JRException
protected DatasetExpressionEvaluator createEvaluator() throws JRException
JRException
protected void initSubreportFiller(DatasetExpressionEvaluator evaluator) throws JRException
JRException
protected void saveReturnVariables()
public static java.util.Map<java.lang.String,java.lang.Object> 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
public static java.util.Map<java.lang.String,java.lang.Object> getParameterValues(JRBaseFiller filler, JRFillExpressionEvaluator expressionEvaluator, JRExpression parametersMapExpression, JRDatasetParameter[] subreportParameters, byte evaluation, boolean ignoreNullExpressions, boolean removeResourceBundle, boolean removeFormatFactory) throws JRException
filler
- report fillerexpressionEvaluator
- expression evaluatorparametersMapExpression
- 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 availableHeight, boolean isOverflow) throws JRException
prepare
in class JRFillElement
JRException
public void rewind() throws JRException
rewind
in class JRFillElement
JRException
protected void cancelSubreportFill() throws JRException
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, CalculationEnum 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 validateReport() throws JRException
JRException
protected void verifyBandHeights() throws JRException
JRException
protected void resolveElement(JRPrintElement element, byte evaluation)
JRFillElement
resolveElement
in class JRFillElement
element
- the elementevaluation
- the evaluation typepublic java.lang.Boolean isOwnUsingCache()
getUsingCache()
.
JRSubreport
isOwnUsingCache
in interface JRSubreport
public java.lang.Boolean getUsingCache()
JRSubreport
getUsingCache
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 JRSubreportRunnerFactory getRunnerFactory() throws JRException
JRException
protected int getContentsStretchHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |