Package org.zkoss.bind.converter
Class FormatedDateConverter
java.lang.Object
org.zkoss.bind.converter.FormatedDateConverter
- All Implemented Interfaces:
Serializable,Converter
Converter to convert String to Date.
- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Field Summary
Fields inherited from interface org.zkoss.bind.Converter
IGNORED_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoerceToBean(Object val, org.zkoss.zk.ui.Component comp, BindContext ctx) Convert String to Date.coerceToUi(Object val, org.zkoss.zk.ui.Component comp, BindContext ctx) Convert Date to String.
-
Constructor Details
-
FormatedDateConverter
public FormatedDateConverter()
-
-
Method Details
-
coerceToUi
Convert Date to String.- Specified by:
coerceToUiin interfaceConverter- Parameters:
val- date to be convertedcomp- associated componentctx- bind context for associateBindingand extra parameter (e.g. format)- Returns:
- the converted String
-
coerceToBean
Convert String to Date.- Specified by:
coerceToBeanin interfaceConverter- Parameters:
val- date in string formcomp- associated componentctx- bind context for associateBindingand extra parameter (e.g. format)- Returns:
- the converted Date
-