org.openxava.formatters
Class DateTimeSeparatedFormatter

java.lang.Object
  extended by org.openxava.formatters.DateTimeSeparatedFormatter
All Implemented Interfaces:
IMultipleValuesFormatter

public class DateTimeSeparatedFormatter
extends java.lang.Object
implements IMultipleValuesFormatter

Date and time formatter with multilocale support.

Although it does some refinement in Spanish case, it support formatting on locale basis.

Author:
Jos� Luis Santiago, Javier Paniza

Constructor Summary
DateTimeSeparatedFormatter()
           
 
Method Summary
 java.lang.String[] format(HttpServletRequest request, java.lang.Object date)
          From a object return a String [] to render in HTML.
 java.lang.Object parse(HttpServletRequest request, java.lang.String[] strings)
          From a String [] obtained from a HTTP request return a java object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeSeparatedFormatter

public DateTimeSeparatedFormatter()
Method Detail

format

public java.lang.String[] format(HttpServletRequest request,
                                 java.lang.Object date)
                          throws java.lang.Exception
Description copied from interface: IMultipleValuesFormatter
From a object return a String [] to render in HTML.

Specified by:
format in interface IMultipleValuesFormatter
Throws:
java.lang.Exception

parse

public java.lang.Object parse(HttpServletRequest request,
                              java.lang.String[] strings)
                       throws java.lang.Exception
Description copied from interface: IMultipleValuesFormatter
From a String [] obtained from a HTTP request return a java object.

Specified by:
parse in interface IMultipleValuesFormatter
Throws:
java.lang.Exception