org.springframework.binding.format.support
Class SimpleFormatterFactory

java.lang.Object
  extended by org.springframework.binding.format.support.AbstractFormatterFactory
      extended by org.springframework.binding.format.support.SimpleFormatterFactory
All Implemented Interfaces:
FormatterFactory

public class SimpleFormatterFactory
extends AbstractFormatterFactory

Simple FormatterFactory implementation.

Author:
Keith Donald

Constructor Summary
SimpleFormatterFactory()
           
 
Method Summary
 Formatter getCurrencyFormatter()
          Returns a currency number formatter.
 Formatter getDateFormatter(java.lang.String encodedFormat)
          Returns a date formatter for the encoded date format.
 Formatter getDateFormatter(Style style)
          Returns the date format with the specified style for the current locale.
 Formatter getDateTimeFormatter(Style dateStyle, Style timeStyle)
          Returns the date format with the specified styles for the current locale.
 Formatter getNumberFormatter(java.lang.Class numberClass)
          Returns a number formatter for the specified class.
 Formatter getPercentFormatter()
          Returns a percent number formatter.
 Formatter getTimeFormatter(Style style)
          Returns the time format with the specified style for the current locale.
 
Methods inherited from class org.springframework.binding.format.support.AbstractFormatterFactory
getDateFormatter, getDateTimeFormatter, getDefaultDateStyle, getDefaultTimeStyle, getLocale, getTimeFormatter, setDefaultDateStyle, setDefaultTimeStyle, setLocaleContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFormatterFactory

public SimpleFormatterFactory()
Method Detail

getDateFormatter

public Formatter getDateFormatter(Style style)
Description copied from interface: FormatterFactory
Returns the date format with the specified style for the current locale.

Parameters:
style - the style
Returns:
the formatter

getDateTimeFormatter

public Formatter getDateTimeFormatter(Style dateStyle,
                                      Style timeStyle)
Description copied from interface: FormatterFactory
Returns the date format with the specified styles for the current locale.

Parameters:
dateStyle - the date style
timeStyle - the time style
Returns:
the formatter

getTimeFormatter

public Formatter getTimeFormatter(Style style)
Description copied from interface: FormatterFactory
Returns the time format with the specified style for the current locale.

Parameters:
style - the style
Returns:
the formatter

getNumberFormatter

public Formatter getNumberFormatter(java.lang.Class numberClass)
Description copied from interface: FormatterFactory
Returns a number formatter for the specified class.

Parameters:
numberClass - the number class
Returns:
the number formatter

getCurrencyFormatter

public Formatter getCurrencyFormatter()
Description copied from interface: FormatterFactory
Returns a currency number formatter.

Returns:
the currency formatter

getDateFormatter

public Formatter getDateFormatter(java.lang.String encodedFormat)
Description copied from interface: FormatterFactory
Returns a date formatter for the encoded date format.

Parameters:
encodedFormat - the format
Returns:
the formatter

getPercentFormatter

public Formatter getPercentFormatter()
Description copied from interface: FormatterFactory
Returns a percent number formatter.

Returns:
the percent formatter


Copyright � 2004-2007. All Rights Reserved.