|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.format.support.AbstractFormatterFactory
org.springframework.binding.format.support.SimpleFormatterFactory
public class SimpleFormatterFactory
Simple FormatterFactory implementation.
| 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 |
|---|
public SimpleFormatterFactory()
| Method Detail |
|---|
public Formatter getDateFormatter(Style style)
FormatterFactory
style - the style
public Formatter getDateTimeFormatter(Style dateStyle,
Style timeStyle)
FormatterFactory
dateStyle - the date styletimeStyle - the time style
public Formatter getTimeFormatter(Style style)
FormatterFactory
style - the style
public Formatter getNumberFormatter(java.lang.Class numberClass)
FormatterFactory
numberClass - the number class
public Formatter getCurrencyFormatter()
FormatterFactory
public Formatter getDateFormatter(java.lang.String encodedFormat)
FormatterFactory
encodedFormat - the format
public Formatter getPercentFormatter()
FormatterFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||