Class TimeBaseFormatter

java.lang.Object
org.openxava.formatters.TimeBaseFormatter
All Implemented Interfaces:
IFormatter
Direct Known Subclasses:
SQLTimeFormatter, StringTimeFormatter

public class TimeBaseFormatter extends Object implements IFormatter
Author:
Ivan Martín
  • Constructor Details

    • TimeBaseFormatter

      public TimeBaseFormatter()
  • Method Details

    • format

      public String format(javax.servlet.http.HttpServletRequest request, Object time)
      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