Class NestedAttributePanelRenderer

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.AbstractPanel,Object>
com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaPanelRenderer
de.hybris.platform.omsbackoffice.renderers.NestedAttributePanelRenderer
All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,Object>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,Object>

@NotThreadSafe public class NestedAttributePanelRenderer extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaPanelRenderer
This panel renderer allows displaying read-only nested attributes.

In order to guarantee proper rendering, you cannot reuse the same instance of this rendered across multiple widgets.

  • Field Summary

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

    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.components.Editor
    createEditor(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute genericAttribute, com.hybris.cockpitng.core.model.WidgetModel model, String referencedModelProperty)
     
    protected com.hybris.cockpitng.components.Editor
    createEditor(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)
    renderAttribute method execute this overridden method
    protected com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute
    generateAttributeForNestedProperty(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute, String nestedQualifier)
     
    protected com.hybris.cockpitng.labels.LabelService
     
     
    protected com.hybris.cockpitng.dataaccess.facades.type.TypeFacade
     
    protected boolean
    isReferenceEditor(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute genericAttribute)
     
    protected void
    processParameters(List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Parameter> parameters, com.hybris.cockpitng.components.Editor editor)
     
    void
    render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel abstractPanelConfiguration, Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
     
    protected void
    renderAttributeOrCustom(org.zkoss.zk.ui.Component component, Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.core.config.impl.jaxb.hybris.commonconfig.Positioned element)
     
    protected void
    renderNestedAttribute(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute, Object rootObject, com.hybris.cockpitng.dataaccess.facades.type.DataType rootDataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
     
    void
    setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
     
    void
     
    void
    setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
     

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

    createAttributeRenderer, createCustomHtmlRenderer

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

    buildEditor, canChangeProperty, createCustom, createNotReadableAttributeLabelRenderer, evaluateCustomDefinition, extractParameterName, extractParameterValue, extractPropertiesList, getAttributeDescription, getCockpitLocaleService, getCockpitUserService, getEditAvailabilityProviderFactory, getEditorBuilder, getObjectFacade, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, processEditorBeforeComposition, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, 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

    • NESTED_OBJECT_IDENTIFIER

      protected static final String NESTED_OBJECT_IDENTIFIER
      See Also:
    • nestedObjectKey

      protected String nestedObjectKey
  • Constructor Details

    • NestedAttributePanelRenderer

      public NestedAttributePanelRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel abstractPanelConfiguration, 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.AbstractPanel,Object>
      Overrides:
      render in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaPanelRenderer
    • renderAttributeOrCustom

      protected void renderAttributeOrCustom(org.zkoss.zk.ui.Component component, Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.core.config.impl.jaxb.hybris.commonconfig.Positioned element)
    • renderNestedAttribute

      protected void renderNestedAttribute(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute, Object rootObject, com.hybris.cockpitng.dataaccess.facades.type.DataType rootDataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    • generateAttributeForNestedProperty

      protected com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute generateAttributeForNestedProperty(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute attribute, String nestedQualifier)
    • createEditor

      protected com.hybris.cockpitng.components.Editor createEditor(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)
      renderAttribute method execute this overridden method
      Overrides:
      createEditor in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,Object>
      Parameters:
      genericType -
      widgetInstanceManager -
      attribute -
      object -
      Returns:
      the Editor
    • processParameters

      protected void processParameters(List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Parameter> parameters, com.hybris.cockpitng.components.Editor editor)
    • createEditor

      protected com.hybris.cockpitng.components.Editor createEditor(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute genericAttribute, com.hybris.cockpitng.core.model.WidgetModel model, String referencedModelProperty)
    • isReferenceEditor

      protected boolean isReferenceEditor(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute genericAttribute)
    • getTypeFacade

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

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

      protected NestedAttributeUtils getNestedAttributeUtils()
    • setNestedAttributeUtils

      public void setNestedAttributeUtils(NestedAttributeUtils nestedAttributeUtils)
    • getLabelService

      protected com.hybris.cockpitng.labels.LabelService getLabelService()
      Overrides:
      getLabelService in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,Object>
    • setLabelService

      public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
      Overrides:
      setLabelService in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,Object>