Class DefaultReferencePKEditor

  • All Implemented Interfaces:
    com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>

    public class DefaultReferencePKEditor
    extends com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.hybris.cockpitng.components.Editor createNestedPKEditor​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      protected DefaultReferencePKEditor.ReferenceContainer createReferenceContainer​(java.lang.Object initialValue, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor)  
      com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils()  
      com.hybris.cockpitng.labels.LabelService getLabelService()  
      ModelService getModelService()  
      protected java.lang.String[] getSupportedTypes​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      protected void handleOnValueChanged​(com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener, com.hybris.cockpitng.components.Editor editor, DefaultReferencePKEditor.ReferenceContainer referenceContainer, java.lang.Object data, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      protected boolean isOfRequiredType​(ItemModel model, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      protected ItemModel loadItemByPK​(com.hybris.cockpitng.components.Editor editor, PK pk, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      protected com.hybris.cockpitng.editors.EditorContext<java.lang.Object> prepareNestedContext​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)  
      void render​(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)  
      • Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer

        extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EDITOR_ID_ONPREMISE_PK

        public static final java.lang.String EDITOR_ID_ONPREMISE_PK
        See Also:
        Constant Field Values
      • SCLASS_YE_DEFAULT_REFERENCE_CONTAINER

        public static final java.lang.String SCLASS_YE_DEFAULT_REFERENCE_CONTAINER
        See Also:
        Constant Field Values
      • SCLASS_YE_ONPREMISE_REFERENCE_PK_EDITOR

        public static final java.lang.String SCLASS_YE_ONPREMISE_REFERENCE_PK_EDITOR
        See Also:
        Constant Field Values
      • SCLASS_YE_REMOVE_REFERENCE

        public static final java.lang.String SCLASS_YE_REMOVE_REFERENCE
        See Also:
        Constant Field Values
      • SCLASS_YE_INVALID_PK

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

      • DefaultReferencePKEditor

        public DefaultReferencePKEditor()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context,
                           com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
      • prepareNestedContext

        protected com.hybris.cockpitng.editors.EditorContext<java.lang.Object> prepareNestedContext​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • handleOnValueChanged

        protected void handleOnValueChanged​(com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener,
                                            com.hybris.cockpitng.components.Editor editor,
                                            DefaultReferencePKEditor.ReferenceContainer referenceContainer,
                                            java.lang.Object data,
                                            com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • isOfRequiredType

        protected boolean isOfRequiredType​(ItemModel model,
                                           com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • getSupportedTypes

        protected java.lang.String[] getSupportedTypes​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • loadItemByPK

        protected ItemModel loadItemByPK​(com.hybris.cockpitng.components.Editor editor,
                                         PK pk,
                                         com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • createNestedPKEditor

        protected com.hybris.cockpitng.components.Editor createNestedPKEditor​(com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context)
      • createReferenceContainer

        protected DefaultReferencePKEditor.ReferenceContainer createReferenceContainer​(java.lang.Object initialValue,
                                                                                       com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener,
                                                                                       com.hybris.cockpitng.components.Editor editor)
      • getLabelService

        public com.hybris.cockpitng.labels.LabelService getLabelService()
      • getBackofficeTypeUtils

        public com.hybris.cockpitng.util.type.BackofficeTypeUtils getBackofficeTypeUtils()