Class LabelTemplate

    • Constructor Detail

      • LabelTemplate

        public LabelTemplate()
        Creates a new label template.
    • Method Detail

      • setContent

        public void setContent​(String content)
        Sets the text for the label.
        Parameters:
        content - the text.
      • getContent

        public String getContent()
        Returns the text for the label.
        Returns:
        The text.
      • getNullValue

        public String getNullValue()
        Returns the string that represents null.
        Returns:
        The string that represents null.
      • setNullValue

        public void setNullValue​(String nullValue)
        Sets the string that represents null.
        Parameters:
        nullValue - the string.
      • 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.