public class JRDesignSubreport extends JRDesignElement implements JRSubreport
Modifier and Type | Field and Description |
---|---|
protected JRExpression |
connectionExpression |
protected JRExpression |
dataSourceExpression |
static String |
EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER |
protected JRExpression |
expression |
protected Boolean |
isUsingCache |
protected Map<String,JRSubreportParameter> |
parametersMap |
protected JRExpression |
parametersMapExpression |
static String |
PROPERTY_CONNECTION_EXPRESSION |
static String |
PROPERTY_DATASOURCE_EXPRESSION |
static String |
PROPERTY_EXPRESSION |
static String |
PROPERTY_PARAMETERS |
static String |
PROPERTY_PARAMETERS_MAP_EXPRESSION |
static String |
PROPERTY_RETURN_VALUES |
protected List<JRSubreportReturnValue> |
returnValues
Values to be copied from the subreport into the master report.
|
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_Y
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
Constructor and Description |
---|
JRDesignSubreport(JRDefaultStyleProvider defaultStyleProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(JRSubreportParameter subreportParameter) |
void |
addReturnValue(JRSubreportReturnValue returnValue)
Adds a return value to the subreport.
|
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
JRExpression |
getConnectionExpression() |
JRExpression |
getDataSourceExpression() |
JRExpression |
getExpression() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
OverflowType |
getOverflowType() |
JRSubreportParameter[] |
getParameters() |
Map<String,JRSubreportParameter> |
getParametersMap() |
JRExpression |
getParametersMapExpression() |
JRSubreportReturnValue[] |
getReturnValues()
Returns the list of values to be copied from the subreport into the master.
|
List<JRSubreportReturnValue> |
getReturnValuesList()
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 |
isRunToBottom()
Specifies whether the subreport element will consume the entire vertical
space available on the report page.
|
JRSubreportParameter |
removeParameter(String name) |
boolean |
removeReturnValue(JRSubreportReturnValue returnValue)
Removes a return value from the subreport.
|
void |
setConnectionExpression(JRExpression connectionExpression) |
void |
setDataSourceExpression(JRExpression dataSourceExpression) |
void |
setExpression(JRExpression expression) |
void |
setOverflowType(OverflowType overflowType) |
void |
setParametersMapExpression(JRExpression parametersMapExpression) |
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) |
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setY
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
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
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
public static final String EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
public static final String PROPERTY_CONNECTION_EXPRESSION
public static final String PROPERTY_DATASOURCE_EXPRESSION
public static final String PROPERTY_EXPRESSION
public static final String PROPERTY_PARAMETERS_MAP_EXPRESSION
public static final String PROPERTY_PARAMETERS
public static final String PROPERTY_RETURN_VALUES
protected Boolean isUsingCache
protected Map<String,JRSubreportParameter> parametersMap
protected List<JRSubreportReturnValue> returnValues
protected JRExpression parametersMapExpression
protected JRExpression connectionExpression
protected JRExpression dataSourceExpression
protected JRExpression expression
public JRDesignSubreport(JRDefaultStyleProvider defaultStyleProvider)
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
public JRExpression getParametersMapExpression()
getParametersMapExpression
in interface JRSubreport
public void setParametersMapExpression(JRExpression parametersMapExpression)
public JRSubreportParameter[] getParameters()
getParameters
in interface JRSubreport
public Map<String,JRSubreportParameter> getParametersMap()
public void addParameter(JRSubreportParameter subreportParameter) throws JRException
JRException
public JRSubreportParameter removeParameter(String name)
public JRExpression getConnectionExpression()
getConnectionExpression
in interface JRSubreport
public void setConnectionExpression(JRExpression connectionExpression)
public JRExpression getDataSourceExpression()
getDataSourceExpression
in interface JRSubreport
public void setDataSourceExpression(JRExpression dataSourceExpression)
public JRExpression getExpression()
getExpression
in interface JRSubreport
public void setExpression(JRExpression expression)
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public void addReturnValue(JRSubreportReturnValue returnValue)
returnValue
- the return value to be added.public JRSubreportReturnValue[] getReturnValues()
getReturnValues
in interface JRSubreport
public List<JRSubreportReturnValue> getReturnValuesList()
JRSubreportReturnValue
objectspublic boolean removeReturnValue(JRSubreportReturnValue returnValue)
returnValue
- the return value to be removedtrue
if the return value was found and removedpublic Boolean getUsingCache()
JRSubreport
getUsingCache
in interface JRSubreport
public void setUsingCache(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 Boolean isRunToBottom()
JRSubreport
isRunToBottom
in interface JRSubreport
JRSubreport.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 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 Object clone()
clone
in interface JRCloneable
clone
in class JRDesignElement
Copyright © 2019 TIBCO Software Inc.. All rights reserved.