Class PriceTextDisplayProcessor
java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
org.broadleafcommerce.core.web.processor.PriceTextDisplayProcessor
- All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafProcessor,org.broadleafcommerce.presentation.dialect.BroadleafTagTextModifierProcessor
@Component("blPriceTextDisplayProcessor")
@ConditionalOnTemplating
public class PriceTextDisplayProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
A Thymeleaf processor that renders a Money object according to the currently set locale options.
For example, when rendering "6.99" in a US locale, the output text would be "$6.99".
When viewing in France for example, you might see "6,99 (US)$". Alternatively, if currency conversion
was enabled, you may see "5,59 (euro-symbol)"
- Author:
- apazzolini
-
Field Summary
FieldsFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
getPrefix, textShouldBeProcessed
-
Field Details
-
localeToChange
-
-
Constructor Details
-
PriceTextDisplayProcessor
public PriceTextDisplayProcessor()
-
-
Method Details
-
getName
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrecedencein classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafTagTextModifierProcessor
-
getTagText
-