Class SqlTimeConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<D>
-
- org.apache.wicket.util.convert.converter.AbstractDateConverter<Time>
-
- org.apache.wicket.util.convert.converter.SqlTimeConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Time>
,IClusterable
public class SqlTimeConverter extends AbstractDateConverter<Time>
Converts toTime
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlTimeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Time
createDateLike(long date)
Creates a new instance of D out of the passed date(time) as longDateFormat
getDateFormat(Locale locale)
protected Class<Time>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractDateConverter
convertToObject, convertToString
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Constructor Detail
-
SqlTimeConverter
public SqlTimeConverter()
-
-
Method Detail
-
createDateLike
protected Time createDateLike(long date)
Description copied from class:AbstractDateConverter
Creates a new instance of D out of the passed date(time) as long- Specified by:
createDateLike
in classAbstractDateConverter<Time>
- Parameters:
date
- the date(time) in millis since Epoch- Returns:
- a new instance of the specific type D
-
getDateFormat
public DateFormat getDateFormat(Locale locale)
- Overrides:
getDateFormat
in classAbstractDateConverter<Time>
- Returns:
- Returns the date format.
-
getTargetType
protected Class<Time> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<Time>
- Returns:
- The target type of this type converter
-
-