|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
org.pentaho.reporting.engine.classic.core.filter.templates.MessageFieldTemplate
public class MessageFieldTemplate
The message field template simplifies the on-the-fly creation of strings.
MessageFormatSupport,
Serialized Form| Constructor Summary | |
|---|---|
MessageFieldTemplate()
Creates a new string field template. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones the template. |
String |
getFormat()
Returns the format string used in the message format filter. |
String |
getNullValue()
Returns the value displayed by the field when the data source value is null. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the current value for the data source. |
void |
setFormat(String format)
Redefines the format string for the message format. |
void |
setNullValue(String nullValue)
Sets the value displayed by the field when the data source value is null. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate |
|---|
getInstance, getName, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageFieldTemplate()
| Method Detail |
|---|
public String getFormat()
public void setFormat(String format)
format - the new format string.public String getNullValue()
null.
null.public void setNullValue(String nullValue)
null.
nullValue - the value that represents null.
public Object getValue(ExpressionRuntime runtime,
Element element)
runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element -
public Object clone()
throws CloneNotSupportedException
clone in interface DataSourceclone in class AbstractTemplateCloneNotSupportedException - this should never happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||