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 CalendarconvertToObject(String value, Locale locale)Converts the givenStringvalueStringconvertToString(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:IConverterConverts the givenStringvalue- Specified by:
convertToObjectin 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:IConverterConverts the given value to a string.- Specified by:
convertToStringin interfaceIConverter<Calendar>- Parameters:
value- The value to convertlocale- The locale used to convert the value- Returns:
- The converted string value
-
-