Uses of Interface
org.springframework.format.Formatter
Package
Description
An API for defining Formatters to format field model values for display in a UI.
Formatters for
java.util.Date
properties.Integration with the JSR-310
java.time
package in JDK 8.Formatters for
java.lang.Number
properties.Integration with the JSR-354
javax.money
package.Support classes for the formatting package,
providing common implementations as well as adapters.
Provides data binding and validation functionality,
for usage in business and/or UI layers.
-
Uses of Formatter in org.springframework.format
Modifier and TypeMethodDescriptionvoid
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. -
Uses of Formatter in org.springframework.format.datetime
Modifier and TypeMethodDescriptionDateTimeFormatAnnotationFormatterFactory.getFormatter
(DateTimeFormat annotation, Class<?> fieldType) -
Uses of Formatter in org.springframework.format.datetime.standard
Modifier and TypeClassDescriptionclass
Formatter
implementation for a JSR-310Instant
, following JSR-310's parsing rules for an Instant (that is, not using a configurableDateTimeFormatter
): accepting the defaultISO_INSTANT
format as well asRFC_1123_DATE_TIME
(which is commonly used for HTTP date header values), as of Spring 4.3. -
Uses of Formatter in org.springframework.format.number
Modifier and TypeClassDescriptionclass
Abstract formatter for Numbers, providing aAbstractNumberFormatter.getNumberFormat(java.util.Locale)
template method.class
A BigDecimal formatter for number values in currency style.class
A general-purpose number formatter using NumberFormat's number style.class
A formatter for number values in percent style. -
Uses of Formatter in org.springframework.format.number.money
Modifier and TypeClassDescriptionclass
Formatter for JSR-354CurrencyUnit
values, from and to currency code Strings.class
Formatter for JSR-354MonetaryAmount
values, delegating toMonetaryAmountFormat.format(javax.money.MonetaryAmount)
andMonetaryAmountFormat.parse(java.lang.CharSequence)
. -
Uses of Formatter in org.springframework.format.support
Modifier and TypeMethodDescriptionvoid
FormattingConversionService.addFormatter
(Formatter<?> formatter) void
FormattingConversionService.addFormatterForFieldType
(Class<?> fieldType, Formatter<?> formatter) ModifierConstructorDescriptionFormatterPropertyEditorAdapter
(Formatter<?> formatter) Create a newFormatterPropertyEditorAdapter
for the givenFormatter
. -
Uses of Formatter in org.springframework.validation
Modifier and TypeMethodDescriptionvoid
DataBinder.addCustomFormatter
(Formatter<?> formatter) Add a custom formatter, applying it to all fields matching theFormatter
-declared type.void
DataBinder.addCustomFormatter
(Formatter<?> formatter, Class<?>... fieldTypes) Add a custom formatter, applying it to the specified field types only, if any, or otherwise to all fields matching theFormatter
-declared type.void
DataBinder.addCustomFormatter
(Formatter<?> formatter, String... fields) Add a custom formatter for the field type specified inFormatter
class, applying it to the specified fields only, if any, or otherwise to all fields.