public class PriceTag
extends com.liferay.taglib.util.IncludeTag
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.commerce.price.CommerceProductPriceCalculation |
commerceProductPriceCalculation |
protected com.liferay.portal.kernel.module.configuration.ConfigurationProvider |
configurationProvider |
protected com.liferay.commerce.product.util.CPDefinitionHelper |
cpDefinitionHelper |
protected com.liferay.commerce.product.util.CPInstanceHelper |
cpInstanceHelper |
| Constructor and Description |
|---|
PriceTag() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp() |
int |
doStartTag() |
long |
getCPDefinitionId() |
long |
getCPInstanceId() |
java.lang.String |
getDiscountLabel() |
protected java.lang.String |
getFormattedPrice(int quantity,
com.liferay.commerce.context.CommerceContext commerceContext,
java.util.Locale locale) |
protected java.lang.String |
getPage() |
java.lang.String |
getPromoPriceLabel() |
int |
getQuantity() |
boolean |
isShowDiscount() |
boolean |
isShowDiscountAmount() |
boolean |
isShowPercentage() |
boolean |
isShowPriceRange() |
boolean |
isShowPromo() |
protected void |
setAttributes(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
setCPDefinitionId(long cpDefinitionId) |
void |
setCPInstanceId(long cpInstanceId) |
protected void |
setDecimalFormat() |
protected void |
setDiscountInfo(com.liferay.commerce.price.CommerceProductPrice commerceProductPrice) |
void |
setDiscountLabel(java.lang.String discountLabel) |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext) |
protected void |
setPriceInfo(com.liferay.commerce.context.CommerceContext commerceContext,
java.util.Locale locale) |
protected void |
setProductInfo() |
void |
setPromoPriceLabel(java.lang.String promoPriceLabel) |
void |
setQuantity(int quantity) |
void |
setShowDiscount(boolean showDiscount) |
void |
setShowDiscountAmount(boolean showDiscountAmount) |
void |
setShowPercentage(boolean showPercentage) |
void |
setShowPriceRange(boolean showPriceRange) |
void |
setShowPromo(boolean showPromo) |
callSetAttributes, cleanUpSetAttributes, doClearTag, doEndTag, doInclude, doIncludeTheme, getBodyContentWrapper, getCustomPage, getEndPage, getOriginalServletRequest, getStartPage, include, includePage, isCleanUpSetAttributes, isPortalPage, isUseCustomPage, logUnavailablePage, processEndTag, processStartTag, runTag, setPage, setPortletId, setStrict, setUseCustomPage, themeResourceExistsclearDynamicAttributes, getAttributeNamespace, getDynamicAttributes, release, setAttributeNamespace, setDynamicAttribute, setNamespacedAttributeaddParam, addProperty, clearParams, clearProperties, getParams, getProperties, getRemovedParameterNames, getRequest, getServletContext, isAllowEmptyParam, setAllowEmptyParam, setCopyCurrentRenderParameters, setServletContextdoAfterBody, doInitBody, getBodyContent, getBodyContentAsStringBundler, setBodyContent, writeBodyContentfindAncestorWithClass, getParent, setParentprotected com.liferay.commerce.price.CommerceProductPriceCalculation commerceProductPriceCalculation
protected com.liferay.portal.kernel.module.configuration.ConfigurationProvider configurationProvider
protected com.liferay.commerce.product.util.CPDefinitionHelper cpDefinitionHelper
protected com.liferay.commerce.product.util.CPInstanceHelper cpInstanceHelper
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class com.liferay.taglib.util.IncludeTagjavax.servlet.jsp.JspExceptionpublic long getCPDefinitionId()
public long getCPInstanceId()
public java.lang.String getDiscountLabel()
public java.lang.String getPromoPriceLabel()
public int getQuantity()
public boolean isShowDiscount()
public boolean isShowDiscountAmount()
public boolean isShowPercentage()
public boolean isShowPriceRange()
public boolean isShowPromo()
public void setCPDefinitionId(long cpDefinitionId)
public void setCPInstanceId(long cpInstanceId)
public void setDiscountLabel(java.lang.String discountLabel)
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext in interface javax.servlet.jsp.tagext.TagsetPageContext in class com.liferay.taglib.util.ParamAndPropertyAncestorTagImplpublic void setPromoPriceLabel(java.lang.String promoPriceLabel)
public void setQuantity(int quantity)
public void setShowDiscount(boolean showDiscount)
public void setShowDiscountAmount(boolean showDiscountAmount)
public void setShowPercentage(boolean showPercentage)
public void setShowPriceRange(boolean showPriceRange)
public void setShowPromo(boolean showPromo)
protected void cleanUp()
cleanUp in class com.liferay.taglib.util.IncludeTagprotected java.lang.String getFormattedPrice(int quantity,
com.liferay.commerce.context.CommerceContext commerceContext,
java.util.Locale locale)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.lang.String getPage()
getPage in class com.liferay.taglib.util.IncludeTagprotected void setAttributes(javax.servlet.http.HttpServletRequest httpServletRequest)
setAttributes in class com.liferay.taglib.util.IncludeTagprotected void setDecimalFormat()
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void setDiscountInfo(com.liferay.commerce.price.CommerceProductPrice commerceProductPrice)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void setPriceInfo(com.liferay.commerce.context.CommerceContext commerceContext,
java.util.Locale locale)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void setProductInfo()
throws java.lang.Exception
java.lang.Exception