public interface IDisplayConverter
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object |
displayToCanonicalValue(ILayerCell cell,
IConfigRegistry configRegistry,
Object displayValue)
Convert from display value to value in the backing data structure.
|
Object |
displayToCanonicalValue(Object displayValue)
Convert from display value to value in the backing data structure.
|
Object canonicalToDisplayValue(Object canonicalValue)
canonicalValue - The data value from the backing data.Object displayToCanonicalValue(Object displayValue)
NOTE:
The type the display value is converted to must match the type in
the setter of the backing bean/row object
displayValue - The display value that should be converted to the data value
that matches the backing data.Object canonicalToDisplayValue(ILayerCell cell, IConfigRegistry configRegistry, Object canonicalValue)
Note that on returning a different type than String,
toString() will be called on the returned object to render
the value for displaying.
cell - The ILayerCell whose canonical value should be
converted.configRegistry - The IConfigRegistry of the NatTable to which the
ILayerCell belongs.canonicalValue - The data value from the backing data.Object displayToCanonicalValue(ILayerCell cell, IConfigRegistry configRegistry, Object displayValue)
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.
cell - The ILayerCell whose canonical value should be
converted.configRegistry - The IConfigRegistry of the NatTable to which the
ILayerCell belongs.displayValue - The display value that should be converted to the data value
that matches the backing data.Copyright © 2019. All rights reserved.