Class PriceLabelHandler
java.lang.Object
com.hybris.backoffice.labels.impl.PriceLabelHandler
- All Implemented Interfaces:
LabelHandler<Double,CurrencyModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustDecimalFormatter(Currency javaCurrency, CurrencyModel currencyModel, Locale currentLocale, DecimalFormat decimalFormatter) protected voidadjustFractionPart(Integer digits, DecimalFormat decimalFormat) protected DecimalFormatSymbolsgetDecimalFormatSymbols(Currency currency, String currencySymbol, Locale currentLocale) getLabel(Double price, CurrencyModel currencyModel) protected NumberFormatgetNumberFormatForNonJavaCurrency(CurrencyModel currencyModel) protected NumberFormatgetNumberFormatter(Currency javaCurrency, CurrencyModel currencyModel) voidsetI18NService(I18NService i18NService)
-
Constructor Details
-
PriceLabelHandler
public PriceLabelHandler()
-
-
Method Details
-
getLabel
- Specified by:
getLabelin interfaceLabelHandler<Double,CurrencyModel> - Parameters:
price- object to be labelled with the .currencyModel- object used to define how the label should be calculated.- Returns:
- a string that represents the passed-in object using the given modifier.
-
getNumberFormatForNonJavaCurrency
-
getNumberFormatter
-
adjustDecimalFormatter
protected void adjustDecimalFormatter(Currency javaCurrency, CurrencyModel currencyModel, Locale currentLocale, DecimalFormat decimalFormatter) -
getDecimalFormatSymbols
protected DecimalFormatSymbols getDecimalFormatSymbols(Currency currency, String currencySymbol, Locale currentLocale) -
adjustFractionPart
-
getI18NService
-
setI18NService
-