public class JRBaseSubreport extends JRBaseElement implements JRSubreport
| Modifier and Type | Field and Description |
|---|---|
protected JRExpression |
connectionExpression |
protected JRExpression |
dataSourceExpression |
protected JRExpression |
expression |
protected Boolean |
isUsingCache |
protected JRSubreportParameter[] |
parameters |
protected JRExpression |
parametersMapExpression |
static String |
PROPERTY_OVERFLOW_TYPE |
static String |
PROPERTY_RUN_TO_BOTTOM |
static String |
PROPERTY_USING_CACHE |
protected JRSubreportReturnValue[] |
returnValues
Values to be copied from the subreport into the master report.
|
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, 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, stretchTypeValue, uuid, width, x, y| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseSubreport(JRSubreport subreport,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
JRExpression |
getConnectionExpression() |
JRExpression |
getDataSourceExpression() |
JRExpression |
getExpression() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
OverflowType |
getOverflowType() |
JRSubreportParameter[] |
getParameters() |
JRExpression |
getParametersMapExpression() |
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of values to be copied from the subreport into the master.
|
Boolean |
getUsingCache()
Indicates if the engine is loading the current subreport from cache.
|
Boolean |
isOwnUsingCache()
Deprecated.
Replaced by
getUsingCache(). |
Boolean |
isRunToBottom()
Specifies whether the subreport element will consume the entire vertical
space available on the report page.
|
boolean |
isUsingCache()
Deprecated.
Replaced by
getUsingCache(). |
void |
setOverflowType(OverflowType overflowType) |
void |
setRunToBottom(Boolean runToBottom)
Sets the flag that Specifies whether the subreport element will consume the
entire vertical space available on the report page.
|
void |
setUsingCache(Boolean isUsingCache)
Specifies if the engine should be loading the current subreport from cache.
|
void |
visit(JRVisitor visitor) |
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXgetBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDpublic static final String PROPERTY_USING_CACHE
public static final String PROPERTY_RUN_TO_BOTTOM
public static final String PROPERTY_OVERFLOW_TYPE
protected Boolean isUsingCache
protected JRExpression parametersMapExpression
protected JRSubreportParameter[] parameters
protected JRExpression connectionExpression
protected JRExpression dataSourceExpression
protected JRExpression expression
protected JRSubreportReturnValue[] returnValues
protected JRBaseSubreport(JRSubreport subreport, JRBaseObjectFactory factory)
public ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRBaseElementpublic boolean isUsingCache()
getUsingCache().JRSubreportisUsingCache in interface JRSubreportpublic JRExpression getParametersMapExpression()
getParametersMapExpression in interface JRSubreportpublic JRSubreportParameter[] getParameters()
getParameters in interface JRSubreportpublic JRExpression getConnectionExpression()
getConnectionExpression in interface JRSubreportpublic JRExpression getDataSourceExpression()
getDataSourceExpression in interface JRSubreportpublic JRExpression getExpression()
getExpression in interface JRSubreportpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void visit(JRVisitor visitor)
visit in interface JRVisitablepublic JRSubreportReturnValue[] getReturnValues()
getReturnValues in interface JRSubreportpublic Boolean isOwnUsingCache()
getUsingCache().JRSubreportisOwnUsingCache in interface JRSubreportpublic Boolean getUsingCache()
JRSubreportgetUsingCache in interface JRSubreportpublic void setUsingCache(Boolean isUsingCache)
JRSubreportIf 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 JRSubreportpublic Boolean isRunToBottom()
JRSubreportisRunToBottom in interface JRSubreportJRSubreport.setRunToBottom(Boolean)public void setRunToBottom(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 JRSubreportrunToBottom - whether the subreport element will consume the entire
space down to the bottom of the pagepublic OverflowType getOverflowType()
getOverflowType in interface JRSubreportpublic void setOverflowType(OverflowType overflowType)
setOverflowType in interface JRSubreportpublic Object clone()
clone in interface JRCloneableclone in class JRBaseElementCopyright © 2017. All rights reserved.