Class VariantAttributesSectionRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,T,K>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,VariantProductModel>
-
- de.hybris.platform.platformbackoffice.variant.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 intDEFAULT_COLUMN_NUMBERstatic java.lang.StringEDITED_VARIANT_PRODUCTstatic java.lang.StringSCLASS_CELLstatic java.lang.StringSCLASS_CELL_LABELstatic java.lang.StringSCLASS_CELL_LABEL_CONTAINERstatic java.lang.StringSCLASS_GRPBOXstatic java.lang.StringSCLASS_MANDATORY_ATTRIBUTE_LABELstatic java.lang.StringVARIANT_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
-
-
Constructor Summary
Constructors Constructor Description VariantAttributesSectionRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetColumnNumber(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration)com.hybris.cockpitng.type.ObjectValueServicegetObjectValueService()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.TypeFacadegetTypeFacade()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 voidprocessEditorBeforeComposition(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 voidregisterDataModelForVariants(VariantProductModel variantProductModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, java.util.Collection<java.lang.String> attributes)voidrender(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)voidsetObjectValueService(com.hybris.cockpitng.type.ObjectValueService objectValueService)voidsetTypeFacade(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
-
-
-
-
Field Detail
-
DEFAULT_COLUMN_NUMBER
public static final int DEFAULT_COLUMN_NUMBER
- See Also:
- Constant Field Values
-
SCLASS_CELL
public static final java.lang.String SCLASS_CELL
- See Also:
- Constant Field Values
-
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_GRPBOX
public static final java.lang.String SCLASS_GRPBOX
- 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
-
-
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:
renderin interfacecom.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:
processEditorBeforeCompositionin classcom.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:
getRenderedQualifiersin interfacecom.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()
-
-