Class DateConverter
java.lang.Object
com.evolveum.midpoint.gui.impl.component.input.converter.DateConverter
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.convert.IConverter<Date>
,org.apache.wicket.util.io.IClusterable
public class DateConverter
extends Object
implements org.apache.wicket.util.convert.IConverter<Date>
Converter for Date to String. Converter need pattern. We can define a boolean whether the time zone is used.
- See Also:
-
Constructor Summary
ConstructorDescriptionDateConverter
(String dateTimePattern, boolean useTimeZone) DateConverter
(List<String> dateTimePattern) DateConverter
(List<String> dateTimePattern, boolean useTimeZone) -
Method Summary
Modifier and TypeMethodDescriptionconvertToObject
(String value, Locale locale) convertToString
(Date date, Locale locale)
-
Constructor Details
-
DateConverter
-
DateConverter
-
DateConverter
-
-
Method Details
-
convertToObject
public Date convertToObject(String value, Locale locale) throws org.apache.wicket.util.convert.ConversionException - Specified by:
convertToObject
in interfaceorg.apache.wicket.util.convert.IConverter<Date>
- Throws:
org.apache.wicket.util.convert.ConversionException
-
convertToString
- Specified by:
convertToString
in interfaceorg.apache.wicket.util.convert.IConverter<Date>
-