org.eclipse.nebula.widgets.nattable.data.convert
Class DefaultBooleanDisplayConverter
java.lang.Object
org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
org.eclipse.nebula.widgets.nattable.data.convert.DefaultBooleanDisplayConverter
- All Implemented Interfaces:
- IDisplayConverter
public class DefaultBooleanDisplayConverter
- extends DisplayConverter
Data type converter for a Check Box. Assumes that the data value is stored as
a boolean.
Method Summary |
Object |
canonicalToDisplayValue(Object canonicalValue)
Convert backing data value to value to be displayed Typically converted
to a String for display. |
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 |
DefaultBooleanDisplayConverter
public DefaultBooleanDisplayConverter()
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
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
- Specified by:
canonicalToDisplayValue
in class DisplayConverter
Copyright © 2015. All rights reserved.