Class DefaultSummaryViewOnlineStatusRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.summaryview.jaxb.Attribute,​ItemModel>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.summaryview.jaxb.Attribute,​ItemModel>

    public class DefaultSummaryViewOnlineStatusRenderer
    extends com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<ItemModel>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canHandle​(ItemModel data, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)  
      protected org.zkoss.zul.Label createOnlineStatusLabel​(ProductModel productModel, com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration, ItemModel data, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, java.lang.String typeCode, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      protected java.lang.String getIconStatusSClass​(org.zkoss.zk.ui.HtmlBasedComponent iconContainer, com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration, ItemModel data, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      protected DefaultSummaryViewOnlineStatusRenderer.OnlineStatus getOnlineStatus​(ProductModel productModel)  
      protected boolean hasPermission​(ItemModel data, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)  
      protected void renderValue​(org.zkoss.zul.Div attributeContainer, com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration, ItemModel data, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      • Methods inherited from class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer

        createContainer, createIcon, getAttributeLabelResolver, getIconStatusSClass, getLabelService, getPermissionFacade, hasAttributePermission, render, renderIcon, renderInvalidDataLabel, renderLabel, renderNoReadAccess, setAttributeLabelResolver, setLabelService, setPermissionFacade
      • Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer

        addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
      • 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

        render
    • Constructor Detail

      • DefaultSummaryViewOnlineStatusRenderer

        public DefaultSummaryViewOnlineStatusRenderer()
    • Method Detail

      • renderValue

        protected void renderValue​(org.zkoss.zul.Div attributeContainer,
                                   com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration,
                                   ItemModel data,
                                   com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute,
                                   com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                   com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
        Specified by:
        renderValue in class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<ItemModel>
      • createOnlineStatusLabel

        protected org.zkoss.zul.Label createOnlineStatusLabel​(ProductModel productModel,
                                                              com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration,
                                                              ItemModel data,
                                                              com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute,
                                                              java.lang.String typeCode,
                                                              com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • canHandle

        protected boolean canHandle​(ItemModel data,
                                    com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)
        Overrides:
        canHandle in class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<ItemModel>
      • hasPermission

        protected boolean hasPermission​(ItemModel data,
                                        com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)
        Overrides:
        hasPermission in class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<ItemModel>
      • getIconStatusSClass

        protected java.lang.String getIconStatusSClass​(org.zkoss.zk.ui.HtmlBasedComponent iconContainer,
                                                       com.hybris.cockpitng.config.summaryview.jaxb.Attribute attributeConfiguration,
                                                       ItemModel data,
                                                       com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute,
                                                       com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                                       com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
        Specified by:
        getIconStatusSClass in class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<ItemModel>