Package | Description |
---|---|
org.springframework.format |
An API for defining Formatters to format field model values for display in a UI.
|
org.springframework.format.datetime |
Formatters for
java.util.Date properties. |
org.springframework.format.number |
Formatters for
java.lang.Number properties. |
org.springframework.format.support |
Support classes for the formatting package,
providing common implementations as well as adapters.
|
Modifier and Type | Method and Description |
---|---|
void |
FormatterRegistry.addFormatter(Formatter<?> formatter)
Adds a Formatter to format fields of a specific type.
|
void |
FormatterRegistry.addFormatterForFieldType(Class<?> fieldType,
Formatter<?> formatter)
Adds a Formatter to format fields of the given type.
|
Modifier and Type | Class and Description |
---|---|
class |
DateFormatter
A formatter for
Date types. |
Modifier and Type | Method and Description |
---|---|
protected Formatter<Date> |
DateTimeFormatAnnotationFormatterFactory.getFormatter(DateTimeFormat annotation,
Class<?> fieldType) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNumberFormatter
Abstract formatter for Numbers,
providing a
AbstractNumberFormatter.getNumberFormat(java.util.Locale) template method. |
class |
CurrencyFormatter
A BigDecimal formatter for currency values.
|
class |
NumberFormatter
A general-purpose Number formatter.
|
class |
PercentFormatter
A Number formatter for percent values.
|
Modifier and Type | Method and Description |
---|---|
void |
FormattingConversionService.addFormatter(Formatter<?> formatter) |
void |
FormattingConversionService.addFormatterForFieldType(Class<?> fieldType,
Formatter<?> formatter) |
Copyright © 2015. All rights reserved.