Uses of Interface
org.springframework.format.Printer
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.
-
Uses of Printer in org.springframework.format
Modifier and TypeMethodDescriptionPrinter<?>
AnnotationFormatterFactory.getPrinter
(A annotation, Class<?> fieldType) Get the Printer to print the value of a field offieldType
annotated withannotation
.Modifier and TypeMethodDescriptionvoid
FormatterRegistry.addFormatterForFieldType
(Class<?> fieldType, Printer<?> printer, Parser<?> parser) Adds a Printer/Parser pair to format fields of a specific type.void
FormatterRegistry.addPrinter
(Printer<?> printer) Adds a Printer to print fields of a specific type. -
Uses of Printer in org.springframework.format.datetime
Modifier and TypeMethodDescriptionPrinter<?>
DateTimeFormatAnnotationFormatterFactory.getPrinter
(DateTimeFormat annotation, Class<?> fieldType) -
Uses of Printer 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.final class
Printer
implementation for a JSR-310TemporalAccessor
, using aDateTimeFormatter
) (the contextual one, if available).Modifier and TypeMethodDescriptionPrinter<?>
Jsr310DateTimeFormatAnnotationFormatterFactory.getPrinter
(DateTimeFormat annotation, Class<?> fieldType) -
Uses of Printer 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.Modifier and TypeMethodDescriptionNumberFormatAnnotationFormatterFactory.getPrinter
(NumberFormat annotation, Class<?> fieldType) -
Uses of Printer 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)
.Modifier and TypeMethodDescriptionPrinter<javax.money.MonetaryAmount>
Jsr354NumberFormatAnnotationFormatterFactory.getPrinter
(NumberFormat annotation, Class<?> fieldType) -
Uses of Printer in org.springframework.format.support
Modifier and TypeMethodDescriptionvoid
FormattingConversionService.addFormatterForFieldType
(Class<?> fieldType, Printer<?> printer, Parser<?> parser) void
FormattingConversionService.addPrinter
(Printer<?> printer)