Class ComponentFillSubreport
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillElement
-
- net.sf.jasperreports.engine.fill.JRFillSubreport
-
- net.sf.jasperreports.components.subreport.fill.ComponentFillSubreport
-
- All Implemented Interfaces:
Cloneable
,DynamicPropertiesHolder
,JRFillCloneable
,JRChild
,JRCloneable
,JRCommonElement
,JRElement
,JRIdentifiable
,JRPropertiesHolder
,JRStyleContainer
,JRStyleSetter
,JRSubreport
,JRVisitable
public class ComponentFillSubreport extends JRFillSubreport
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillSubreport
EXCEPTION_MESSAGE_KEY_NO_REWINDABLE_DATA_SOURCE, EXCEPTION_MESSAGE_KEY_PROPERTY_NOT_SET, EXCEPTION_MESSAGE_KEY_UNKNOWN_SOURCE_CLASS, EXCEPTION_MESSAGE_KEY_UNSUPPORTED_SECTION_TYPE, printPage, PROPERTY_SUBREPORT_GENERATE_RECTANGLE, subFillerParent, SUBREPORT_GENERATE_RECTANGLE_ALWAYS, subreportFiller
-
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultPopulateTemplateStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, EXCEPTION_MESSAGE_KEY_INVALID_BOOKMARK_LEVEL, expressionEvaluator, exprStyle, fillContainerContext, filler, hasDynamicPopulateTemplateStyle, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, staticTransferProperties, styleProviders, templates
-
Fields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
-
-
Constructor Summary
Constructors Modifier Constructor Description ComponentFillSubreport(ComponentFillSubreport fillSubreport, JRFillCloneFactory factory)
protected
ComponentFillSubreport(FillContext fillContext, JRSubreport subreport, JRFillObjectFactory factory, JasperReport jasperReport, BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory)
-
Method Summary
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillSubreport
collectExpressions, createElementTemplate, evaluate, evictReportEvaluator, fill, fillSubreport, generateRectangleOption, getConnectionExpression, getDataSourceExpression, getExpression, getJRTemplateRectangle, getMode, getOverflowType, getParameters, getParametersMapExpression, getParameterValues, getParameterValues, getReport, getReportLocation, getReportName, getReportSource, getReturnValues, getRunnerFactory, getUsingCache, initSubreportFiller, isRunToBottom, isSplitTypePreventInhibited, loadReport, loadReportEvaluator, loadReportSource, prepare, resolveElement, rewind, setBand, setOverflowType, setRunToBottom, setUsingCache, subreportPageFilled, usingCache, validateReport, verifyBandHeights, visit
-
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElement
addDependantElement, addDynamicProperty, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, delayedEvaluate, delayedEvaluationUpdatesTemplate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, evaluateStyle, getBackcolor, getBand, getBookmarkLevel, getCollapsedHeightAbove, getCollapsedHeightBelow, getConditionalStylesContainer, getDefaultStyleProvider, getDependantElements, getDynamicProperties, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTime, getField, getFiller, getForecolor, getGroupElements, getHeight, getInitStyle, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getParent, getParentProperties, getPositionType, getPrepareHeight, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchType, getStyle, getStyleExpression, getStyleNameReference, getStyleResolver, getTemplate, getTimeZone, 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, setCollapsedHeightAbove, setCollapsedHeightBelow, setConditionalStylesContainer, setCurrentEvaluation, setExpressionEvaluator, setForecolor, setHeight, setMode, setOriginProvider, setPositionType, setPrepareHeight, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchElementToContainer, stretchElementToElementGroup, stretchElementToHeight, toPopulateTemplateStyle, transferProperties, transferProperties
-
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.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, getElementGroup, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Constructor Detail
-
ComponentFillSubreport
protected ComponentFillSubreport(FillContext fillContext, JRSubreport subreport, JRFillObjectFactory factory, JasperReport jasperReport, BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory)
-
ComponentFillSubreport
public ComponentFillSubreport(ComponentFillSubreport fillSubreport, JRFillCloneFactory factory)
-
-
Method Detail
-
getJasperReport
public JasperReport getJasperReport()
-
createFillerParent
protected FillerSubreportParent createFillerParent(DatasetExpressionEvaluator evaluator) throws JRException
- Overrides:
createFillerParent
in classJRFillSubreport
- Throws:
JRException
-
evaluateReportSource
protected JasperReportSource evaluateReportSource(byte evaluation) throws JRException
- Overrides:
evaluateReportSource
in classJRFillSubreport
- Throws:
JRException
-
createEvaluator
protected DatasetExpressionEvaluator createEvaluator() throws JRException
- Overrides:
createEvaluator
in classJRFillSubreport
- Throws:
JRException
-
evaluateSubreport
public void evaluateSubreport(byte evaluation) throws JRException
- Overrides:
evaluateSubreport
in classJRFillSubreport
- Throws:
JRException
-
evaluateParameterValues
protected Map<String,Object> evaluateParameterValues(byte evaluation) throws JRException
- Overrides:
evaluateParameterValues
in classJRFillSubreport
- Throws:
JRException
-
isReorderBandElements
protected boolean isReorderBandElements()
- Overrides:
isReorderBandElements
in classJRFillSubreport
-
copyConnectionParameter
protected void copyConnectionParameter(Map<String,Object> parameterValues)
-
copyResourceBundleParameter
protected void copyResourceBundleParameter(Map<String,Object> parameterValues)
-
prepareSubreport
protected FillPrepareResult prepareSubreport(int availableHeight, boolean isOverflow) throws JRException
- Throws:
JRException
-
getPrintElements
protected Collection<JRPrintElement> getPrintElements()
- Overrides:
getPrintElements
in classJRFillSubreport
-
getContentsStretchHeight
protected int getContentsStretchHeight()
- Overrides:
getContentsStretchHeight
in classJRFillSubreport
-
cancelSubreportFill
public void cancelSubreportFill() throws JRException
- Overrides:
cancelSubreportFill
in classJRFillSubreport
- Throws:
JRException
-
createClone
public JRFillCloneable createClone(JRFillCloneFactory factory)
Description copied from interface:JRFillCloneable
Creates a working clone of itself.- Specified by:
createClone
in interfaceJRFillCloneable
- Overrides:
createClone
in classJRFillSubreport
- Parameters:
factory
- the clone factory to use while creating the clone- Returns:
- a working clone of itself
-
registerReportStyles
protected void registerReportStyles(List<JRStyle> styles)
- Overrides:
registerReportStyles
in classJRFillSubreport
-
getPrintContentsWidth
protected int getPrintContentsWidth()
- Overrides:
getPrintContentsWidth
in classJRFillSubreport
-
-