public class DefaultDateDisplayConverter extends DisplayConverter
Constructor and Description |
---|
DefaultDateDisplayConverter()
|
DefaultDateDisplayConverter(String dateFormat) |
DefaultDateDisplayConverter(String dateFormat,
TimeZone timeZone) |
DefaultDateDisplayConverter(TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
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
|
canonicalToDisplayValue, displayToCanonicalValue
public DefaultDateDisplayConverter()
public DefaultDateDisplayConverter(TimeZone timeZone)
public DefaultDateDisplayConverter(String dateFormat)
dateFormat
- as specified in SimpleDateFormat
public Object canonicalToDisplayValue(Object canonicalValue)
IDisplayConverter
canonicalToDisplayValue
in interface IDisplayConverter
canonicalToDisplayValue
in class DisplayConverter
public Object displayToCanonicalValue(Object displayValue)
IDisplayConverter
displayToCanonicalValue
in interface IDisplayConverter
displayToCanonicalValue
in class DisplayConverter
Copyright © 2013. All Rights Reserved.