public interface JREvaluation
evaluationTime
attribute)
that lets you decide the exact moment you want the text field expression to be evaluated,
avoiding the default behavior in which the expression is evaluated immediately when the
current report section is generated.
The evaluationTime
attribute can have one of the following values (see getEvaluationTimeValue()
):
Now
- The expression is evaluated when the current band is filled.Report
- The expression is evaluated when the end of the report is reached.Page
- The expression is evaluated when the end of the current page is reachedColumn
- The expression is evaluated when the end of the current column is reachedGroup
- The expression is evaluated when the group specified by the evaluationGroup
attribute (see getEvaluationGroup()
) changesAuto
- Each variable participating in the expression is evaluated at a time corresponding
to its reset type. Fields are evaluated Now
. This evaluation type should be used for expressions
that combine values evaluated at different times, like the percentage out of a totalNow
. In the example
presented previously, you could easily specify evaluationTime="Page"
for the text
field placed in the page header section, so that it displays the value of the sum variable
only when reaching the end of the current page.Modifier and Type | Method and Description |
---|---|
JRGroup |
getEvaluationGroup()
Gets the evaluation group for this text field.
|
EvaluationTimeEnum |
getEvaluationTimeValue()
Gets the evaluation time for this text field.
|
EvaluationTimeEnum getEvaluationTimeValue()
JRExpression
JRGroup getEvaluationGroup()
EvaluationTimeEnum.GROUP
Copyright © 2016. All rights reserved.