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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetColumnNumber(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection configuration) com.hybris.cockpitng.type.ObjectValueServicegetRenderedQualifiers(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType) getRenderedQualifiers(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) com.hybris.cockpitng.dataaccess.facades.type.TypeFacadegetWriteThroughAttributes(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, Collection<String> renderedAttributes) prepareNewVariantsModel(Collection<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, Object object) protected voidregisterDataModelForVariants(VariantProductModel variantProductModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, Collection<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, validateCustomElementMethods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Field Details
-
DEFAULT_COLUMN_NUMBER
public static final int DEFAULT_COLUMN_NUMBER- See Also:
-
SCLASS_CELL
- See Also:
-
SCLASS_CELL_LABEL
- See Also:
-
SCLASS_MANDATORY_ATTRIBUTE_LABEL
- See Also:
-
SCLASS_GRPBOX
- See Also:
-
SCLASS_CELL_LABEL_CONTAINER
- See Also:
-
VARIANT_ATTRIBUTES_MAP_MODEL
- See Also:
-
EDITED_VARIANT_PRODUCT
- See Also:
-
-
Constructor Details
-
VariantAttributesSectionRenderer
public VariantAttributesSectionRenderer()
-
-
Method Details
-
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, Collection<String> attributes) -
prepareNewVariantsModel
protected HashMap<Object,Object> prepareNewVariantsModel(Collection<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, 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 Collection<String> getRenderedQualifiers(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) - Specified by:
getRenderedQualifiersin interfacecom.hybris.cockpitng.widgets.common.AttributesComponentRenderer
-
getRenderedQualifiers
public Collection<String> getRenderedQualifiers(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType) -
getWriteThroughAttributes
protected List<String> getWriteThroughAttributes(com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, Collection<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()
-