Class MessageFieldTemplate

    • Constructor Detail

      • MessageFieldTemplate

        public MessageFieldTemplate()
        Creates a new string field template.
    • Method Detail

      • getFormat

        public String getFormat()
        Returns the format string used in the message format filter. This is a raw value which contains untranslated references to column names. It cannot be used directly in java.text.MessageFormat objects.
        the format string.
      • setFormat

        public void setFormat​(String format)
        Redefines the format string for the message format. The assigned message format string must be given as raw value, where column references are given in the format $(COLNAME).
        format - the new format string.
      • getNullValue

        public String getNullValue()
        Returns the value displayed by the field when the data source value is null.
        A value to represent null.
      • setNullValue

        public void setNullValue​(String nullValue)
        Sets the value displayed by the field when the data source value is null.
        nullValue - the value that represents null.
      • getValue

        public Object getValue​(ExpressionRuntime runtime,
                               ReportElement element)
        Returns the current value for the data source.
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element -
        the value.