org.eclipse.nebula.widgets.nattable.data.convert
Class ContextualDisplayConverter

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.data.convert.ContextualDisplayConverter
All Implemented Interfaces:
IDisplayConverter
Direct Known Subclasses:
GroupByDisplayConverter

public abstract class ContextualDisplayConverter
extends Object
implements IDisplayConverter


Constructor Summary
ContextualDisplayConverter()
           
 
Method Summary
abstract  Object canonicalToDisplayValue(ILayerCell cell, IConfigRegistry configRegistry, Object canonicalValue)
          Convert backing data value to value to be displayed.
 Object canonicalToDisplayValue(Object canonicalValue)
          Convert backing data value to value to be displayed Typically converted to a String for display.
abstract  Object displayToCanonicalValue(ILayerCell cell, IConfigRegistry configRegistry, Object displayValue)
          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 Use this method for contextual conversion.
 Object displayToCanonicalValue(Object displayValue)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextualDisplayConverter

public ContextualDisplayConverter()
Method Detail

canonicalToDisplayValue

public Object canonicalToDisplayValue(Object canonicalValue)
Description copied from interface: IDisplayConverter
Convert backing data value to value to be displayed Typically converted to a String for display.

Specified by:
canonicalToDisplayValue in interface IDisplayConverter

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

canonicalToDisplayValue

public abstract Object canonicalToDisplayValue(ILayerCell cell,
                                               IConfigRegistry configRegistry,
                                               Object canonicalValue)
Description copied from interface: IDisplayConverter
Convert backing data value to value to be displayed. Typically converted to a String for display. Use this method for contextual conversion.

Note that on returning a different type than String, toString() will be called on the returned object to render the value for displaying.

Specified by:
canonicalToDisplayValue in interface IDisplayConverter

displayToCanonicalValue

public abstract Object displayToCanonicalValue(ILayerCell cell,
                                               IConfigRegistry configRegistry,
                                               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 Use this method for contextual conversion.

Specified by:
displayToCanonicalValue in interface IDisplayConverter


Copyright © 2015. All rights reserved.