Class NestedAttributeAwareEditorAreaSectionRenderer

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,K>
com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaSectionRenderer<Object>
com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
de.hybris.platform.configurablebundlebackoffice.widgets.editorarea.renderer.impl.NestedAttributeAwareEditorAreaSectionRenderer
All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,Object>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,Object>

public class NestedAttributeAwareEditorAreaSectionRenderer extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
Editor area section renderer that enriches default behavior by providing possibility to handle nested attributes. Nested attributes should be provided in the format [nestedEntity].[nestedAttribute], where 'nestedEntity' is the name of the attribute that references a compound item, such as an ItemModel, and 'nestedAttribute' - name of an attribute within aforementioned entity. Below is an example how one would define nested attribute
<ea:attribute qualifier="status.code"> <ea:editor-parameter> <ea:name>mandatory</ea:name> <ea:value>true</ea:value> </ea:editor-parameter> </ea:attribute>
Note that for proper handling "nestedAttributeEditorAreaLogicHandler" should be configured for the given editorArea as logic-handler.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     

    Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer

    MODEL_CURRENT_OBJECT, MODEL_EDITORS_DETACHED, MODEL_ESSENTIAL_SECTION_IS_OPEN, SCLASS_CELL_LABEL_CONTAINER

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Cell,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute,Object>
     
    com.hybris.cockpitng.dataaccess.facades.type.TypeFacade
     
    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)
     
    void
    render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection abstractSectionConfiguration, Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
     
    void
    setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
     

    Methods inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer

    calculateWidthPercentage, createAttributeEditorWithLabelRenderer, createCustomSectionRenderer, createSectionRenderer, getEditorAreaPanelRenderer, getValidationRenderer, isEssentialSection, prepareContainer, prepareContainer, prepareContainerCaption, renderAttributes, renderAttributes, renderAttributesInPanels, renderCustomElement, renderCustomSection, renderDescription, renderSection, setEditorAreaPanelRenderer, setSectionOpenAttribute, setValidationRenderer

    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 Details

  • Constructor Details

    • NestedAttributeAwareEditorAreaSectionRenderer

      public NestedAttributeAwareEditorAreaSectionRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection abstractSectionConfiguration, Object object, 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,Object>
      Overrides:
      render in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
    • 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:
      processEditorBeforeComposition in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractSection,Object>
    • createAttributeRenderer

      protected com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Cell,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute,Object> createAttributeRenderer()
      Overrides:
      createAttributeRenderer in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
    • getTypeFacade

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

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