Class ClassificationTabEditorAreaRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab,​ProductModel>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab,​ProductModel>

    public class ClassificationTabEditorAreaRenderer
    extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaTabRenderer<ProductModel>
    Bean for rendering tab with classification data for given object in editor area
    • Field Detail

      • EDITED_PROPERTY_QUALIFIER

        public static final java.lang.String EDITED_PROPERTY_QUALIFIER
        See Also:
        Constant Field Values
      • LABEL_NO_READ_ACCESS

        protected static final java.lang.String LABEL_NO_READ_ACCESS
        See Also:
        Constant Field Values
      • CAN_CHANGE_CURRENT_PRODUCT_INSTANCE

        protected static final java.lang.String CAN_CHANGE_CURRENT_PRODUCT_INSTANCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClassificationTabEditorAreaRenderer

        public ClassificationTabEditorAreaRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component component,
                           com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab configuration,
                           ProductModel product,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • prepareAndRenderFeatures

        protected boolean prepareAndRenderFeatures​(ProductModel product,
                                                   org.zkoss.zk.ui.Component component,
                                                   com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • renderNoAttributeEmptyTab

        protected void renderNoAttributeEmptyTab​(org.zkoss.zk.ui.Component component)
      • renderSection

        protected void renderSection​(ClassificationClassModel classificationClassModel,
                                     java.util.List<Feature> features,
                                     org.zkoss.zk.ui.Component parent,
                                     com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • createSectionNameLabelSuffix

        protected void createSectionNameLabelSuffix​(org.zkoss.zul.Groupbox sectionGroupBox)
      • renderAttributes

        protected void renderAttributes​(org.zkoss.zul.Groupbox section,
                                        java.util.List<Feature> features,
                                        com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • createHbox

        protected org.zkoss.zul.Hbox createHbox()
      • createNewRowIfNeeded

        protected org.zkoss.zul.Hbox createNewRowIfNeeded​(org.zkoss.zul.Hbox hbox,
                                                          org.zkoss.zk.ui.Component parent,
                                                          int noOfColumns,
                                                          int currentCellIndex)
      • createEditor

        protected com.hybris.cockpitng.components.Editor createEditor​(Feature feature,
                                                                      com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                                                      boolean canWriteFeature)
      • ifRangeAllowOneValue

        protected void ifRangeAllowOneValue​(Feature feature,
                                            com.hybris.cockpitng.components.Editor editor)
      • saveFeatures

        protected void saveFeatures​(ProductModel productModel,
                                    java.util.Map<java.lang.String,​Feature> modifiedProductFeatures)
      • renderEmptyTab

        protected void renderEmptyTab​(org.zkoss.zk.ui.Component component,
                                      java.lang.String label_key)
      • getEmptyAttributesSectionName

        protected java.lang.String getEmptyAttributesSectionName()
      • postEvent

        protected void postEvent​(org.zkoss.zk.ui.event.Event event)
      • setClassificationService

        public void setClassificationService​(ClassificationService classificationService)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • setUserService

        public void setUserService​(UserService userService)
      • setClassificationClassComparator

        public void setClassificationClassComparator​(ClassificationClassComparator classificationClassComparator)
      • setFeatureComparator

        public void setFeatureComparator​(FeatureComparator featureComparator)
      • setFeaturePeristanceHandler

        public void setFeaturePeristanceHandler​(FeaturePeristanceHandler featurePeristanceHandler)