Package org.openxava.formatters
Class TimeFormatter
java.lang.Object
org.openxava.formatters.TimeFormatter
- All Implemented Interfaces:
IFormatter
Time formatter with multilocale support.
- Author:
- Chungyen Tsai
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFrom a object return aStringto render in HTML.From aStringobtained from a HTTP request return a java object.protected StringreformatTime(String string) protected StringreformatTime(String string, boolean parsing)
-
Constructor Details
-
TimeFormatter
public TimeFormatter()
-
-
Method Details
-
format
Description copied from interface:IFormatterFrom a object return aStringto render in HTML.- Specified by:
formatin interfaceIFormatter
-
parse
public Object parse(javax.servlet.http.HttpServletRequest request, String string) throws ParseException Description copied from interface:IFormatterFrom aStringobtained from a HTTP request return a java object.- Specified by:
parsein interfaceIFormatter- Throws:
ParseException
-
reformatTime
-
reformatTime
-