Class JRDesignSubreport
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
net.sf.jasperreports.engine.design.JRDesignSubreport
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRChild,JRCloneable,JRCommonElement,JRElement,JRIdentifiable,JRPropertiesHolder,JRStyleContainer,JRSubreport,JRVisitable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected JRExpressionstatic final Stringprotected JRExpressionprotected Booleanprotected Map<String, JRSubreportParameter> protected JRExpressionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected List<JRSubreportReturnValue> Values to be copied from the subreport into the master report.Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElement
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_STYLE_EXPRESSION, PROPERTY_YFields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, parentStyleNameReference, positionType, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchType, styleExpression, uuid, width, x, yFields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(JRSubreportParameter subreportParameter) voidaddReturnValue(JRSubreportReturnValue returnValue) Adds a return value to the subreport.clone()voidcollectExpressions(JRExpressionCollector collector) getMode()Returns the element transparency mode.Returns the list of values to be copied from the subreport into the master.Returns the list of values to be copied from the subreport into the master.Indicates if the engine is loading the current subreport from cache.Specifies whether the subreport element will consume the entire vertical space available on the report page.removeParameter(String name) booleanremoveReturnValue(JRSubreportReturnValue returnValue) Removes a return value from the subreport.voidsetConnectionExpression(JRExpression connectionExpression) voidsetDataSourceExpression(JRExpression dataSourceExpression) voidsetExpression(JRExpression expression) voidsetOverflowType(OverflowType overflowType) voidsetParametersMapExpression(JRExpression parametersMapExpression) voidsetRunToBottom(Boolean runToBottom) Sets the flag that Specifies whether the subreport element will consume the entire vertical space available on the report page.voidsetUsingCache(Boolean isUsingCache) Specifies if the engine should be loading the current subreport from cache.voidMethods inherited from class net.sf.jasperreports.engine.design.JRDesignElement
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleExpression, setStyleNameReference, setYMethods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchType, getStyle, getStyleExpression, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setUUID, setWidth, setXMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setModeMethods 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, setXMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
- See Also:
-
PROPERTY_CONNECTION_EXPRESSION
- See Also:
-
PROPERTY_DATASOURCE_EXPRESSION
- See Also:
-
PROPERTY_EXPRESSION
- See Also:
-
PROPERTY_PARAMETERS_MAP_EXPRESSION
- See Also:
-
PROPERTY_PARAMETERS
- See Also:
-
PROPERTY_RETURN_VALUES
- See Also:
-
isUsingCache
-
parametersMap
-
returnValues
Values to be copied from the subreport into the master report. -
parametersMapExpression
-
connectionExpression
-
dataSourceExpression
-
expression
-
-
Constructor Details
-
JRDesignSubreport
-
-
Method Details
-
getMode
Description copied from interface:JRCommonElementReturns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.- Specified by:
getModein interfaceJRCommonElement- Overrides:
getModein classJRBaseElement
-
getParametersMapExpression
- Specified by:
getParametersMapExpressionin interfaceJRSubreport
-
setParametersMapExpression
-
getParameters
- Specified by:
getParametersin interfaceJRSubreport
-
getParametersMap
-
addParameter
- Throws:
JRException
-
removeParameter
-
getConnectionExpression
- Specified by:
getConnectionExpressionin interfaceJRSubreport
-
setConnectionExpression
-
getDataSourceExpression
- Specified by:
getDataSourceExpressionin interfaceJRSubreport
-
setDataSourceExpression
-
getExpression
- Specified by:
getExpressionin interfaceJRSubreport
-
setExpression
-
collectExpressions
- Specified by:
collectExpressionsin interfaceJRElement
-
visit
- Specified by:
visitin interfaceJRVisitable
-
addReturnValue
Adds a return value to the subreport.- Parameters:
returnValue- the return value to be added.
-
getReturnValues
Returns the list of values to be copied from the subreport into the master.- Specified by:
getReturnValuesin interfaceJRSubreport- Returns:
- the list of values to be copied from the subreport into the master.
-
getReturnValuesList
Returns the list of values to be copied from the subreport into the master.- Returns:
- list of
JRSubreportReturnValueobjects
-
removeReturnValue
Removes a return value from the subreport.- Parameters:
returnValue- the return value to be removed- Returns:
trueif the return value was found and removed
-
getUsingCache
Description copied from interface:JRSubreportIndicates if the engine is loading the current subreport from cache. Implementations of this method return the actual value for the internal flag that was explicitly set on this subreport.- Specified by:
getUsingCachein interfaceJRSubreport- Returns:
- Boolean.TRUE if the subreport should be loaded from cache, Boolean.FALSE otherwise or null in case the flag was never explicitly set on this subreport element
-
setUsingCache
Description copied from interface:JRSubreportSpecifies if the engine should be loading the current subreport from cache. If set to Boolean.TRUE, the reporting engine will try to recognize previously loaded subreports using their specified source. For example, it will recognize an subreport if the subreport source is a file name that it has already loaded, or if it is the same URL.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.
- Specified by:
setUsingCachein interfaceJRSubreport
-
isRunToBottom
Description copied from interface:JRSubreportSpecifies whether the subreport element will consume the entire vertical space available on the report page.- Specified by:
isRunToBottomin interfaceJRSubreport- Returns:
- whether the subreport element will consume the entire space down to the bottom of the page
- See Also:
-
setRunToBottom
Description copied from interface:JRSubreportSets the flag that Specifies whether the subreport element will consume the entire vertical space available on the report page.This flag should be set to
trueif 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
isFloatColumnFooteris set for the subreport, the column footers will not be printed at the bottom of the page even if this flag is set.- Specified by:
setRunToBottomin interfaceJRSubreport- Parameters:
runToBottom- whether the subreport element will consume the entire space down to the bottom of the page
-
getOverflowType
- Specified by:
getOverflowTypein interfaceJRSubreport
-
setOverflowType
- Specified by:
setOverflowTypein interfaceJRSubreport
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRDesignElement
-