Class CalendarConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.CalendarConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Calendar>
,IClusterable
public class CalendarConverter extends Object implements IConverter<Calendar>
Converts toCalendar
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendarConverter()
Construct.CalendarConverter(IConverter<Date> dateConverter)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calendar
convertToObject(String value, Locale locale)
Converts the givenString
valueString
convertToString(Calendar value, Locale locale)
Converts the given value to a string.
-
-
-
Constructor Detail
-
CalendarConverter
public CalendarConverter()
Construct.
-
CalendarConverter
public CalendarConverter(IConverter<Date> dateConverter)
Construct.- Parameters:
dateConverter
- delegated converter, not null
-
-
Method Detail
-
convertToObject
public Calendar convertToObject(String value, Locale locale)
Description copied from interface:IConverter
Converts the givenString
value- Specified by:
convertToObject
in interfaceIConverter<Calendar>
- Parameters:
value
- The string value to convertlocale
- The locale used to convert the value- Returns:
- The converted value
-
convertToString
public String convertToString(Calendar value, Locale locale)
Description copied from interface:IConverter
Converts the given value to a string.- Specified by:
convertToString
in interfaceIConverter<Calendar>
- Parameters:
value
- The value to convertlocale
- The locale used to convert the value- Returns:
- The converted string value
-
-