public class PriceLabelHandler extends java.lang.Object implements LabelHandler<java.lang.Double,CurrencyModel>
| Constructor and Description |
|---|
PriceLabelHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustDecimalFormatter(java.util.Currency javaCurrency,
CurrencyModel currencyModel,
java.util.Locale currentLocale,
java.text.DecimalFormat decimalFormatter) |
protected void |
adjustFractionPart(java.lang.Integer digits,
java.text.DecimalFormat decimalFormat) |
protected java.text.DecimalFormatSymbols |
getDecimalFormatSymbols(java.util.Currency currency,
java.lang.String currencySymbol,
java.util.Locale currentLocale) |
I18NService |
getI18NService() |
java.lang.String |
getLabel(java.lang.Double price,
CurrencyModel currencyModel) |
protected java.text.NumberFormat |
getNumberFormatter(java.util.Currency javaCurrency,
CurrencyModel currencyModel) |
void |
setI18NService(I18NService i18NService) |
public java.lang.String getLabel(java.lang.Double price,
CurrencyModel currencyModel)
getLabel in interface LabelHandler<java.lang.Double,CurrencyModel>price - object to be labelled with the .currencyModel - object used to define how the label should be calculated.protected java.text.NumberFormat getNumberFormatter(java.util.Currency javaCurrency,
CurrencyModel currencyModel)
protected void adjustDecimalFormatter(java.util.Currency javaCurrency,
CurrencyModel currencyModel,
java.util.Locale currentLocale,
java.text.DecimalFormat decimalFormatter)
protected java.text.DecimalFormatSymbols getDecimalFormatSymbols(java.util.Currency currency,
java.lang.String currencySymbol,
java.util.Locale currentLocale)
protected void adjustFractionPart(java.lang.Integer digits,
java.text.DecimalFormat decimalFormat)
public I18NService getI18NService()
public void setI18NService(I18NService i18NService)
Copyright © 2018 SAP SE. All Rights Reserved.