Class VariantAttributesSectionRenderer

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

    public class VariantAttributesSectionRenderer
    extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,​VariantProductModel>
    implements com.hybris.cockpitng.widgets.common.AttributesComponentRenderer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_COLUMN_NUMBER  
      static java.lang.String EDITED_VARIANT_PRODUCT  
      static java.lang.String SCLASS_CELL  
      static java.lang.String SCLASS_CELL_LABEL  
      static java.lang.String SCLASS_CELL_LABEL_CONTAINER  
      static java.lang.String SCLASS_GRPBOX  
      static java.lang.String SCLASS_MANDATORY_ATTRIBUTE_LABEL  
      static java.lang.String VARIANT_ATTRIBUTES_MAP_MODEL  
      • Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer

        ATTR_NOT_SAVED_OBJECT, attributeDescriptionIconRenderer, CURRENT_OBJECT, CURRENT_OBJECT_DOTLESS, DEFAULT_ENCRYPTED_EDITOR, MISSING_RENDERER_ERROR_MSG, SCLASS_CELL_READ_RESTRICTED, SCLASS_CUSTOM_CONTAINER, SCLASS_DESCRIPTION, SCLASS_DESCRIPTION_LABEL, SCLASS_EDITOR, SCLASS_EDITOR_CONTAINER, SCLASS_LABEL, SCLASS_READONLY_EDITOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getColumnNumber​(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration)  
      com.hybris.cockpitng.type.ObjectValueService getObjectValueService()  
      java.util.Collection<java.lang.String> getRenderedQualifiers​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)  
      java.util.Collection<java.lang.String> getRenderedQualifiers​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()  
      protected java.util.List<java.lang.String> getWriteThroughAttributes​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, java.util.Collection<java.lang.String> renderedAttributes)  
      protected java.util.HashMap<java.lang.Object,​java.lang.Object> prepareNewVariantsModel​(java.util.Collection<java.lang.String> attributes, VariantProductModel variantProductModel)  
      protected void processEditorBeforeComposition​(com.hybris.cockpitng.components.Editor editor, com.hybris.cockpitng.dataaccess.facades.type.DataType genericType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute, java.lang.Object object)  
      protected void registerDataModelForVariants​(VariantProductModel variantProductModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, java.util.Collection<java.lang.String> attributes)  
      void render​(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration, VariantProductModel variantProductModel, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      void setObjectValueService​(com.hybris.cockpitng.type.ObjectValueService objectValueService)  
      void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)  
      • Methods inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer

        buildEditor, canChangeProperty, createCustom, createEditor, createNotReadableAttributeLabelRenderer, evaluateCustomDefinition, extractParameterName, extractParameterValue, extractPropertiesList, getAttributeDescription, getCockpitLocaleService, getCockpitUserService, getEditAvailabilityProviderFactory, getEditorBuilder, getLabelService, getObjectFacade, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, setLabelService, setObjectFacade, setPasswordEditorAsDefaultForEncryptedStrings, setPermissionFacade, setPropertyValueService, setWidgetRenderingUtils, validateCustomElement
      • 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
    • Field Detail

      • SCLASS_CELL_LABEL

        public static final java.lang.String SCLASS_CELL_LABEL
        See Also:
        Constant Field Values
      • SCLASS_MANDATORY_ATTRIBUTE_LABEL

        public static final java.lang.String SCLASS_MANDATORY_ATTRIBUTE_LABEL
        See Also:
        Constant Field Values
      • SCLASS_CELL_LABEL_CONTAINER

        public static final java.lang.String SCLASS_CELL_LABEL_CONTAINER
        See Also:
        Constant Field Values
      • VARIANT_ATTRIBUTES_MAP_MODEL

        public static final java.lang.String VARIANT_ATTRIBUTES_MAP_MODEL
        See Also:
        Constant Field Values
      • EDITED_VARIANT_PRODUCT

        public static final java.lang.String EDITED_VARIANT_PRODUCT
        See Also:
        Constant Field Values
    • Constructor Detail

      • VariantAttributesSectionRenderer

        public VariantAttributesSectionRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration,
                           VariantProductModel variantProductModel,
                           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.zk.ui.Component,​com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,​VariantProductModel>
      • registerDataModelForVariants

        protected void registerDataModelForVariants​(VariantProductModel variantProductModel,
                                                    com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                                    java.util.Collection<java.lang.String> attributes)
      • prepareNewVariantsModel

        protected java.util.HashMap<java.lang.Object,​java.lang.Object> prepareNewVariantsModel​(java.util.Collection<java.lang.String> attributes,
                                                                                                     VariantProductModel variantProductModel)
      • processEditorBeforeComposition

        protected void processEditorBeforeComposition​(com.hybris.cockpitng.components.Editor editor,
                                                      com.hybris.cockpitng.dataaccess.facades.type.DataType genericType,
                                                      com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                                      com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute,
                                                      java.lang.Object object)
        Overrides:
        processEditorBeforeComposition in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,​VariantProductModel>
      • getColumnNumber

        protected int getColumnNumber​(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration)
      • getRenderedQualifiers

        public java.util.Collection<java.lang.String> getRenderedQualifiers​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
        Specified by:
        getRenderedQualifiers in interface com.hybris.cockpitng.widgets.common.AttributesComponentRenderer
      • getRenderedQualifiers

        public java.util.Collection<java.lang.String> getRenderedQualifiers​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)
      • getWriteThroughAttributes

        protected java.util.List<java.lang.String> getWriteThroughAttributes​(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                                                                             java.util.Collection<java.lang.String> renderedAttributes)
      • getObjectValueService

        public com.hybris.cockpitng.type.ObjectValueService getObjectValueService()
      • setObjectValueService

        public void setObjectValueService​(com.hybris.cockpitng.type.ObjectValueService objectValueService)
      • setTypeFacade

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

        public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()