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.datetime.joda |
Integration with Joda-Time for formatting Joda date and time types as well as standard JDK Date types.
|
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 | Interface and Description |
---|---|
interface |
Formatter<T>
Formats objects of type T.
|
Modifier and Type | Method and Description |
---|---|
Printer<?> |
AnnotationFormatterFactory.getPrinter(A annotation,
Class<?> fieldType)
Get the Printer to print the value of a field of
fieldType annotated with
annotation . |
Modifier and Type | Method and Description |
---|---|
void |
FormatterRegistry.addFormatterForFieldType(Class<?> fieldType,
Printer<?> printer,
Parser<?> parser)
Adds a Printer/Parser pair to format fields of a specific type.
|
Modifier and Type | Class and Description |
---|---|
class |
DateFormatter
A formatter for
Date types. |
Modifier and Type | Method and Description |
---|---|
Printer<?> |
DateTimeFormatAnnotationFormatterFactory.getPrinter(DateTimeFormat annotation,
Class<?> fieldType) |
Modifier and Type | Class and Description |
---|---|
class |
MillisecondInstantPrinter
Prints Long instances using a
DateTimeFormatter . |
class |
ReadableInstantPrinter
Prints JodaTime
ReadableInstant instances using a DateTimeFormatter . |
class |
ReadablePartialPrinter
Prints JodaTime
ReadablePartial instances using a DateTimeFormatter . |
Modifier and Type | Method and Description |
---|---|
Printer<?> |
JodaDateTimeFormatAnnotationFormatterFactory.getPrinter(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 |
---|---|
Printer<Number> |
NumberFormatAnnotationFormatterFactory.getPrinter(NumberFormat annotation,
Class<?> fieldType) |
Modifier and Type | Method and Description |
---|---|
void |
FormattingConversionService.addFormatterForFieldType(Class<?> fieldType,
Printer<?> printer,
Parser<?> parser) |
Copyright © 2015. All rights reserved.