Class PriceRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,​com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,​java.lang.Object>

    public class PriceRenderer
    extends java.lang.Object
    implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,​com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,​java.lang.Object>
    This renderer renders the price formatted
    • Constructor Summary

      Constructors 
      Constructor Description
      PriceRenderer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getDigitsNumber​(java.lang.Object object)
      Retrieves the number of digits to display for the amount.
      protected com.hybris.cockpitng.labels.LabelService getLabelService()  
      protected java.lang.String getMyEntry()  
      protected com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade()  
      protected com.hybris.cockpitng.dataaccess.services.PropertyValueService getPropertyValueService()  
      protected com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()  
      void render​(org.zkoss.zul.Listcell listcell, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, java.lang.Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      void setLabelService​(com.hybris.cockpitng.labels.LabelService labelService)  
      void setMyEntry​(java.lang.String myEntry)  
      void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)  
      void setPropertyValueService​(com.hybris.cockpitng.dataaccess.services.PropertyValueService propertyValueService)  
      void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer

        addRendererListener, removeRendererListener, render
    • Constructor Detail

      • PriceRenderer

        public PriceRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zul.Listcell listcell,
                           com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration,
                           java.lang.Object object,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
        Specified by:
        render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,​com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,​java.lang.Object>
      • getDigitsNumber

        protected int getDigitsNumber​(java.lang.Object object)
        Retrieves the number of digits to display for the amount. Default number is 2
        Parameters:
        object - the object from which we can define how many digits to display
        Returns:
        the number of digits to display
      • getMyEntry

        protected java.lang.String getMyEntry()
      • setMyEntry

        public void setMyEntry​(java.lang.String myEntry)
      • getPropertyValueService

        protected com.hybris.cockpitng.dataaccess.services.PropertyValueService getPropertyValueService()
      • setPropertyValueService

        public void setPropertyValueService​(com.hybris.cockpitng.dataaccess.services.PropertyValueService propertyValueService)
      • getLabelService

        protected com.hybris.cockpitng.labels.LabelService getLabelService()
      • setLabelService

        public void setLabelService​(com.hybris.cockpitng.labels.LabelService labelService)
      • getPermissionFacade

        protected com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade()
      • setPermissionFacade

        public void setPermissionFacade​(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade)
      • getTypeFacade

        protected com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()
      • setTypeFacade

        public void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)