jasperreport生成pdf_jasperreport 导出excel_jasperreport json(50)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

Page 56

Text Field Expression

We have already talked about the text field expression. There is nothing more to say about it except

that it is introduced by the <textFieldExpression> element and can return values from only a

limited range of classes listed below:

java.lang.Boolean

java.lang.Byte

java.util.Date

java.sql.Timestamp

java.lang.Double

java.lang.Float

java.lang.Integer

java.lang.Long

java.lang.Short

java.math.BigDecimal

java.lang.String

If the text field expression class is not specified using the class attribute, it is assumed to be

java.lang.String, by default.

8.2 Graphic Elements

The second major category of report elements, besides text elements that we have seen, are the graphic

elements. In this category we have lines, rectangles and images.

They all have some properties in common and those are grouped under the attributes of the

<graphicElement> tag.

XML Syntax

<!ELEMENT graphicElement EMPTY>

<!ATTLIST graphicElement

stretchType (NoStretch | RelativeToTallestObject |

RelativeToBandHeight) "NoStretch"

pen (None | Thin | 1Point | 2Point | 4Point | Dotted) #IMPLIED

fill (Solid) "Solid"

>

Stretch Behavior

The stretchType attribute of a graphic element can be used to customize the stretch behavior of the

element when on the same report section there are text fields that stretch themselves because their text

content is too large to fit in the original text field height.

When stretchable text fields are present on a report section, the height of the report section itself will be


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-50.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...