Class LocalDateFormatter

java.lang.Object
org.openxava.formatters.LocalDateFormatter
All Implemented Interfaces:
IFormatter

public class LocalDateFormatter extends Object implements IFormatter
LocalDate formatter with multilocale support.

Although it does some refinement for Spanish, Catalan, Polish, Croatian and French, it supports formatting on locale basis.

Since:
6.1
Author:
Javier Paniza
  • Constructor Details

    • LocalDateFormatter

      public LocalDateFormatter()
  • Method Details

    • format

      public String format(javax.servlet.http.HttpServletRequest request, Object date)
      Description copied from interface: IFormatter
      From a object return a String to render in HTML.
      Specified by:
      format in interface IFormatter
    • parse

      public Object parse(javax.servlet.http.HttpServletRequest request, String string) throws ParseException
      Description copied from interface: IFormatter
      From a String obtained from a HTTP request return a java object.
      Specified by:
      parse in interface IFormatter
      Throws:
      ParseException