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 SummaryFieldsModifier and TypeFieldDescriptionprotected CurrentAuthenticationprotected DatatypeRegistryprotected Stringprotected FormatStringsRegistry
- 
Constructor SummaryConstructorsConstructorDescriptionNumberFormatter(CurrentAuthentication currentAuthentication, DatatypeRegistry datatypeRegistry, FormatStringsRegistry formatStringsRegistry) 
- 
Method Summary
- 
Field Details- 
format
- 
currentAuthentication
- 
datatypeRegistry
- 
formatStringsRegistry
 
- 
- 
Constructor Details- 
NumberFormatterpublic NumberFormatter(CurrentAuthentication currentAuthentication, DatatypeRegistry datatypeRegistry, FormatStringsRegistry formatStringsRegistry) 
 
- 
- 
Method Details- 
setFormatSets 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
 
- 
applyDescription copied from interface:FormatterFormats a value to a string.
 
-