| |
|
| net.sf.jasperreports.engine.JRTextField
All known Subclasses: net.sf.jasperreports.engine.base.JRBaseTextField, net.sf.jasperreports.engine.design.JRDesignTextField, net.sf.jasperreports.engine.fill.JRFillTextField,
JRTextField | public interface JRTextField extends JRTextElement,JRAnchor,JRHyperlink(Code) | | An abstract representation of a report static text. It provides functionality for static texts.
author: Teodor Danciu (teodord@users.sourceforge.net) version: $Id: JRTextField.java 1489 2006-11-14 20:38:10Z teodord $ |
getEvaluationTime | public byte getEvaluationTime()(Code) | | Gets the evaluation time for this text field.
one of the evaluation time constants in JRExpression |
getExpression | public JRExpression getExpression()(Code) | | Gets the expression for this field. The result obtained after evaluating this expression will be dispayed as
the field text.
|
getPattern | public String getPattern()(Code) | | Gets the pattern used for this text field. The pattern will be used in a SimpleDateFormat for dates
and a DecimalFormat for numeric text fields. The pattern format must follow one of these two classes
formatting rules, as specified in the JDK API docs.
a string containing the pattern. |
isBlankWhenNull | public boolean isBlankWhenNull()(Code) | | Indicates whether an empty string will be displayed if the field's expression evaluates to null .
true if an empty string will be displayed instead of null values, false otherwise |
isStretchWithOverflow | public boolean isStretchWithOverflow()(Code) | | Specifies whether the text field will stretch vertically if its text does not fit in one line.
true if the text field will stretch vertically, false otherwise |
setBlankWhenNull | public void setBlankWhenNull(boolean isBlank)(Code) | | Specifies whether an empty string sholuld be displayed if the field's expression evaluates to null .
Parameters: isBlank - true if an empty string will be displayed instead of null values, false otherwise |
setBlankWhenNull | public void setBlankWhenNull(Boolean isBlank)(Code) | | |
setPattern | public void setPattern(String pattern)(Code) | | Sets the pattern used for this text field. The pattern will be used in a SimpleDateFormat for dates
and a DecimalFormat for numeric text fields. The pattern format must follow one of these two classes
formatting rules, as specified in the JDK API docs. If the pattern is incorrect, the exception thrown by formatter
classes will be rethrown by the JasperReports fill engine.
|
setStretchWithOverflow | public void setStretchWithOverflow(boolean isStretchWithOverflow)(Code) | | Set to true if the text field should stretch vertically if its text does not fit in one line.
|
|
|
|