Class MessageType

    • Field Detail

    • Constructor Detail

      • MessageType

        public MessageType()
    • Method Detail

      • getValue

        public Object getValue​(ExpressionRuntime runtime,
                               ReportElement element)
        Returns the current value for the data source.
        Specified by:
        getValue in interface DataSource
        Parameters:
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element - the element from which to read attribute.
        Returns:
        the value.
      • getDesignValue

        public Object getDesignValue​(ExpressionRuntime runtime,
                                     ReportElement element)
        Description copied from interface: ElementType
        Compute a design-time value. This value will be displayed when editing the element in the Pentaho Report Designer. If there is not enough data available to produce a sensible output, return a mock-object so that the user can interact with the element in a sensible fashion.

        When the element is called, all style and attribute expressions have been resolved and can be accessed via the normal static style and attribute accessor methods. If the content of your element depends on style information, the fully computed style must be retrieved via the .Element#getComputedStyle() method. The local style-sheet for the element may not have all information.

        Specified by:
        getDesignValue in interface ElementType
        Parameters:
        runtime - the expression runtime holding the current report state.
        element - the element.
        Returns:
        the computed value.
      • configureDesignTimeDefaults

        public void configureDesignTimeDefaults​(ReportElement element,
                                                Locale locale)
        Description copied from interface: ElementType
        Compute the design-time defaults that should be applied to an element after it was created by a design-tool. Only declare explicit values. If you assume defaults when an attribute or style is undefined, then there is no need to set it here.

        Any value set here will be treated as user-defined value afterwards and will be explicitly stored in the XML files.

        Specified by:
        configureDesignTimeDefaults in interface ElementType
        Overrides:
        configureDesignTimeDefaults in class AbstractElementType
        Parameters:
        element - the element that should be configured.
        locale - the locale.