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