Class NumberFormatter
java.lang.Object
io.jmix.flowui.component.formatter.NumberFormatter
@Component("flowui_NumberFormatter")
@Scope("prototype")
public class NumberFormatter
extends Object
implements Formatter<Number>
Number formatter to be used in view descriptors and controllers.
 
 This formatter formats the Number value into a string depending on the format string.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentAuthenticationprotected DatatypeRegistryprotected Stringprotected FormatStringsRegistry - 
Constructor Summary
ConstructorsConstructorDescriptionNumberFormatter(CurrentAuthentication currentAuthentication, DatatypeRegistry datatypeRegistry, FormatStringsRegistry formatStringsRegistry)  - 
Method Summary
 
- 
Field Details
- 
format
 - 
currentAuthentication
 - 
datatypeRegistry
 - 
formatStringsRegistry
 
 - 
 - 
Constructor Details
- 
NumberFormatter
public NumberFormatter(CurrentAuthentication currentAuthentication, DatatypeRegistry datatypeRegistry, FormatStringsRegistry formatStringsRegistry)  
 - 
 - 
Method Details
- 
setFormat
Sets the format string describing the number format which will be used to createDecimalFormatinstance. It can be either a format string, or a key in message group.- Parameters:
 format- a format string or a key in message group
 - 
apply
Description copied from interface:FormatterFormats a value to a string. 
 -