Class DefaultDisplayConverter

java.lang.Object
org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
org.eclipse.nebula.widgets.nattable.data.convert.DefaultDisplayConverter
All Implemented Interfaces:
IDisplayConverter

public class DefaultDisplayConverter extends DisplayConverter
  • Constructor Details

    • DefaultDisplayConverter

      public DefaultDisplayConverter()
  • Method Details

    • canonicalToDisplayValue

      public Object canonicalToDisplayValue(Object sourceValue)
      Description copied from interface: IDisplayConverter
      Convert backing data value to value to be displayed. Typically converts to a String for display.
      Specified by:
      canonicalToDisplayValue in interface IDisplayConverter
      Specified by:
      canonicalToDisplayValue in class DisplayConverter
      Parameters:
      sourceValue - The data value from the backing data.
      Returns:
      The converted value to display.
    • displayToCanonicalValue

      public Object displayToCanonicalValue(Object destinationValue)
      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:
      destinationValue - 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.