org.loom.converter.date
Class DateConverter
java.lang.Object
org.loom.converter.AbstractConverter
org.loom.converter.AbstractStringConverter
org.loom.converter.AbstractFormatConverter
org.loom.converter.date.DateConverter
- All Implemented Interfaces:
- Converter, FormInputDecorator
public final class DateConverter
- extends AbstractFormatConverter
Converter for java.util.Date
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT_KEY
public static final java.lang.String DATE_FORMAT_KEY
- the date format key
- See Also:
- Constant Field Values
DATE_TIME_FORMAT_KEY
public static final java.lang.String DATE_TIME_FORMAT_KEY
- the date + time format key
- See Also:
- Constant Field Values
TIME_FORMAT_KEY
public static final java.lang.String TIME_FORMAT_KEY
- time without date format key
- See Also:
- Constant Field Values
DateConverter
public DateConverter(java.lang.Class<?> dateClass,
java.lang.String dateFormatKey,
java.lang.Class<? extends AbstractDateFormatAdapter<?>> formatAdapterClass)
createFormat
protected java.text.Format createFormat(MessagesRepository messagesRepository)
- Description copied from class:
AbstractFormatConverter
- Creates a new format instance. Format instances may be different per locale and will be cached in the MessagesRepository
- Specified by:
createFormat
in class AbstractFormatConverter
decorate
public void decorate(FormInputTag t)
- Description copied from class:
AbstractConverter
- Add CSS class extracted from this converter return type (number, string, file) to the tag.
- Specified by:
decorate
in interface FormInputDecorator
- Overrides:
decorate
in class AbstractConverter