Package org.openxava.formatters
Class LocalDateTimeFormatter
- java.lang.Object
-
- org.openxava.formatters.DateTimeBaseFormatter
-
- org.openxava.formatters.LocalDateTimeFormatter
-
- All Implemented Interfaces:
IFormatter
public class LocalDateTimeFormatter extends DateTimeBaseFormatter implements IFormatter
Time formatter with multilocale support.- Since:
- v7.4
- Author:
- Chungyen Tsai
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimeFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(javax.servlet.http.HttpServletRequest request, java.lang.Object date)
From a object return aString
to render in HTML.java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, java.lang.String string)
From aString
obtained from a HTTP request return a java object.-
Methods inherited from class org.openxava.formatters.DateTimeBaseFormatter
getDateTimeSeparator, getExtendedDateTimeFormats, isDashFormat, isDotFormat, isExtendedFormat, isZhFormat, isZhFormatAndJavaIs21orBetter, isZhFormatAndJavaLessThan9
-
-
-
-
Method Detail
-
format
public java.lang.String format(javax.servlet.http.HttpServletRequest request, java.lang.Object date)
Description copied from interface:IFormatter
From a object return aString
to render in HTML.- Specified by:
format
in interfaceIFormatter
-
parse
public java.lang.Object parse(javax.servlet.http.HttpServletRequest request, java.lang.String string) throws java.text.ParseException
Description copied from interface:IFormatter
From aString
obtained from a HTTP request return a java object.- Specified by:
parse
in interfaceIFormatter
- Throws:
java.text.ParseException
-
-