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 Details

    • DateConverter

      public DateConverter(String dateTimePattern, boolean useTimeZone)
    • DateConverter

      public DateConverter(List<String> dateTimePattern, boolean useTimeZone)
    • DateConverter

      public DateConverter(List<String> dateTimePattern)
  • Method Details

    • convertToObject

      public Date convertToObject(String value, Locale locale) throws org.apache.wicket.util.convert.ConversionException
      Specified by:
      convertToObject in interface org.apache.wicket.util.convert.IConverter<Date>
      Throws:
      org.apache.wicket.util.convert.ConversionException
    • convertToString

      public String convertToString(Date date, Locale locale)
      Specified by:
      convertToString in interface org.apache.wicket.util.convert.IConverter<Date>