| |
|
| java.lang.Object org.jfree.report.filter.MessageFormatFilter
MessageFormatFilter | public class MessageFormatFilter implements DataSource(Code) | | A filter that formats values from a data source to a string representation.
This filter will format objects using a
java.text.MessageFormat to create the string representation for the
number obtained from the datasource.
author: Joerg Schaible author: Thomas Morgner See Also: java.text.MessageFormat |
MessageFormatFilter | public MessageFormatFilter()(Code) | | Default constructor. Uses a general number format for the current locale.
|
getFormatString | public String getFormatString()(Code) | | Returns the format string used in the message format.
the format string. |
getNullString | public String getNullString()(Code) | | Returns the replacement text if one of the referenced fields in the message is null.
the replacement string for null-values. |
getValue | public Object getValue(ExpressionRuntime runtime)(Code) | | Returns the formatted string. The value is read using the data source given and formated using the formatter of
this object. The formating is guaranteed to completly form the object to an string or to return the defined
NullValue.
If format, datasource or object are null, the NullValue is returned.
Parameters: runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value ofthis filter. The formatted value. |
setFormatString | public void setFormatString(String format)(Code) | | Defines the format string for the
java.text.MessageFormat object used in this implementation.
Parameters: format - the message format. |
setNullString | public void setNullString(String nullString)(Code) | | Defines the replacement text that is used, if one of the referenced fields in the message is null.
Parameters: nullString - the replacement string for null-values. |
|
|
|