public class JRFillSubreport extends JRFillElement implements JRSubreport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_NO_REWINDABLE_DATA_SOURCE |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_PROPERTY_NOT_SET |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_SOURCE_CLASS |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_SECTION_TYPE |
protected JRPrintPage |
printPage |
static java.lang.String |
PROPERTY_SUBREPORT_GENERATE_RECTANGLE |
protected FillerSubreportParent |
subFillerParent |
static java.lang.String |
SUBREPORT_GENERATE_RECTANGLE_ALWAYS |
protected JRBaseFiller |
subreportFiller |
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, expressionEvaluator, fillContainerContext, filler, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, styleProviders, templates
Modifier | Constructor and Description |
---|---|
protected |
JRFillSubreport(JRBaseFiller filler,
JRSubreport subreport,
JRFillObjectFactory factory) |
protected |
JRFillSubreport(JRFillSubreport subreport,
JRFillCloneFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelSubreportFill() |
void |
collectExpressions(JRExpressionCollector collector) |
JRFillCloneable |
createClone(JRFillCloneFactory factory)
Creates a working clone of itself.
|
protected JRTemplateElement |
createElementTemplate() |
protected DatasetExpressionEvaluator |
createEvaluator() |
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 void |
evictReportEvaluator() |
protected JRPrintElement |
fill() |
protected void |
fillSubreport() |
protected java.lang.String |
generateRectangleOption() |
JRExpression |
getConnectionExpression() |
protected int |
getContentsStretchHeight() |
JRExpression |
getDataSourceExpression() |
JRExpression |
getExpression() |
protected JRTemplateRectangle |
getJRTemplateRectangle() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
OverflowType |
getOverflowType() |
JRSubreportParameter[] |
getParameters() |
JRExpression |
getParametersMapExpression() |
static java.util.Map<java.lang.String,java.lang.Object> |
getParameterValues(BaseReportFiller 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(BaseReportFiller 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() . |
static JasperReport |
loadReport(java.lang.Object source,
BaseReportFiller filler) |
protected DatasetExpressionEvaluator |
loadReportEvaluator() |
protected boolean |
prepare(int availableHeight,
boolean isOverflow) |
protected void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element.
|
void |
rewind() |
protected void |
setBand(JRFillBand band) |
void |
setOverflowType(OverflowType overflowType) |
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 |
usingCache() |
protected void |
validateReport() |
protected void |
verifyBandHeights() |
void |
visit(JRVisitor visitor) |
addDependantElement, addDynamicProperty, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, delayedEvaluate, delayedEvaluationUpdatesTemplate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, evaluateStyle, getBackcolor, getBand, getConditionalStylesContainer, getDefaultStyleProvider, getDependantElements, getDynamicProperties, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getFiller, getForecolor, getGroupElements, getHeight, getInitStyle, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParent, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleNameReference, getTemplate, getUUID, getVariable, getWidth, getX, getY, hasDynamicProperties, hasDynamicProperty, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, initStyleProviders, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, registerTemplate, reset, resolveElement, setAlreadyPrinted, setBackcolor, setConditionalStylesContainer, setCurrentEvaluation, setExpressionEvaluator, setForecolor, setHeight, setMode, setOriginProvider, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchElementToHeight, stretchHeightFinal, transferProperties, transferProperties
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
clone
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
public static final java.lang.String EXCEPTION_MESSAGE_KEY_PROPERTY_NOT_SET
public static final java.lang.String EXCEPTION_MESSAGE_KEY_NO_REWINDABLE_DATA_SOURCE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_SECTION_TYPE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNKNOWN_SOURCE_CLASS
public static final java.lang.String PROPERTY_SUBREPORT_GENERATE_RECTANGLE
public static final java.lang.String SUBREPORT_GENERATE_RECTANGLE_ALWAYS
protected JRBaseFiller subreportFiller
protected FillerSubreportParent subFillerParent
protected JRPrintPage printPage
protected JRFillSubreport(JRBaseFiller filler, JRSubreport subreport, JRFillObjectFactory factory)
protected JRFillSubreport(JRFillSubreport subreport, JRFillCloneFactory factory)
protected void setBand(JRFillBand band)
setBand
in class JRFillElement
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 OverflowType getOverflowType()
getOverflowType
in interface JRSubreport
public void setOverflowType(OverflowType overflowType)
setOverflowType
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 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
public static JasperReport loadReport(java.lang.Object source, BaseReportFiller filler) 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 void evictReportEvaluator()
protected DatasetExpressionEvaluator createEvaluator() throws JRException
JRException
protected void initSubreportFiller(DatasetExpressionEvaluator evaluator) throws JRException
JRException
public static java.util.Map<java.lang.String,java.lang.Object> getParameterValues(BaseReportFiller 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 mapJRException
public static java.util.Map<java.lang.String,java.lang.Object> getParameterValues(BaseReportFiller 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 mapJRException
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
protected java.lang.String generateRectangleOption()
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public JRSubreportReturnValue[] getReturnValues()
JRSubreport
getReturnValues
in interface JRSubreport
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 cloneprotected JRSubreportRunnerFactory getRunnerFactory() throws JRException
JRException
protected int getContentsStretchHeight()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com