Class SummaryDisplayConverter

  • All Implemented Interfaces:
    IDisplayConverter

    public class SummaryDisplayConverter
    extends DisplayConverter
    Special display converter that will render a default value in case there is no summary value calculated yet. If there is a value calculated, it will be converted using the wrapped display converter.

    By default "..." will be used as default value.

    • Constructor Detail

      • SummaryDisplayConverter

        public SummaryDisplayConverter​(IDisplayConverter wrappedConverter)
        Parameters:
        wrappedConverter - The IDisplayConverter that is wrapped by this GroupBySummaryDisplayConverter. Will be used to convert calculated values.
      • SummaryDisplayConverter

        public SummaryDisplayConverter​(IDisplayConverter wrappedConverter,
                                       Object defaultSummaryValue)
        Parameters:
        wrappedConverter - The IDisplayConverter that is wrapped by this GroupBySummaryDisplayConverter. Will be used to convert calculated values.
        defaultSummaryValue - The value that will be shown in case the summary value is not calculated yet.
    • Method Detail

      • displayToCanonicalValue

        public Object displayToCanonicalValue​(Object displayValue)
        Description copied from interface: IDisplayConverter
        Convert from display value to value in the backing data structure.

        NOTE:
        The type the display value is converted to must match the type in the setter of the backing bean/row object

        Specified by:
        displayToCanonicalValue in interface IDisplayConverter
        Specified by:
        displayToCanonicalValue in class DisplayConverter
        Parameters:
        displayValue - The display value that should be converted to the data value that matches the backing data.
        Returns:
        The converted value to put to the backing data.