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.
        Returns:
        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).
        Parameters:
        format - the new format string.
      • getNullValue

        public String getNullValue()
        Returns the value displayed by the field when the data source value is null.
        Returns:
        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.
        Parameters:
        nullValue - the value that represents null.
      • getValue

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