Class GenerateOutputDocumentPanelRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,​java.lang.Object>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,​java.lang.Object>

    public class GenerateOutputDocumentPanelRenderer
    extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaPanelRenderer
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Document createDocumentOfFormat​(Format value, Item jalo)  
      protected void executeDocumentCreation​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Combobox formatCombobox, com.hybris.cockpitng.components.Editor dynamicDocumentList)  
      protected java.lang.Object extractCurrentObject​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      protected java.util.Collection<Document> findDocumentsOfFormat​(Format value, Item jalo)  
      com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties()  
      com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher getEventPublisher()  
      protected java.util.Collection<Format> getFormatsForItem​(Item jalo)  
      protected java.lang.String getLabel​(java.lang.String i18nKey)  
      static java.lang.String getModelDataQualifier()  
      ModelService getModelService()  
      com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()  
      com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()  
      protected void handleFormatSelection​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, com.hybris.cockpitng.components.Editor dynamicDocumentList, org.zkoss.zul.Combobox formatCombobox, org.zkoss.zul.Button createDocumentButton)  
      protected void handleModelDataChanged​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Combobox formatCombobox, org.zkoss.zul.Button createDocumentButton)  
      protected boolean isCockpitEventNotificationEnabled()  
      protected void notifyObjectUpdated​(java.lang.Object object)  
      protected void populateComboWithFormats​(org.zkoss.zul.Combobox combobox, java.lang.Object object)  
      protected com.hybris.cockpitng.components.Editor prepareDynamicDocumentList​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      void render​(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel abstractPanelConfiguration, java.lang.Object object, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      void setCockpitProperties​(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)  
      void setEventPublisher​(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher eventPublisher)  
      void setModelService​(ModelService modelService)  
      void setNotificationService​(com.hybris.cockpitng.util.notifications.NotificationService notificationService)  
      void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)  
      • 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, createEditor, createNotReadableAttributeLabelRenderer, evaluateCustomDefinition, extractParameterName, extractParameterValue, extractPropertiesList, getAttributeDescription, getCockpitLocaleService, getCockpitUserService, getEditAvailabilityProviderFactory, getEditorBuilder, getLabelService, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, processEditorBeforeComposition, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, setLabelService, 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 Detail

      • MODEL_DATA_QUALIFIER

        public static final java.lang.String MODEL_DATA_QUALIFIER
        See Also:
        Constant Field Values
      • BUTTON_CREATE_DOCUMENT

        public static final java.lang.String BUTTON_CREATE_DOCUMENT
        See Also:
        Constant Field Values
      • BUTTON_CREATE_DOCUMENT_TOOLTIP

        public static final java.lang.String BUTTON_CREATE_DOCUMENT_TOOLTIP
        See Also:
        Constant Field Values
      • FILTERED_DOCUMENTS

        public static final java.lang.String FILTERED_DOCUMENTS
        See Also:
        Constant Field Values
      • EDITOR_CODE_REFERENCES_COM_HYBRIS_COCKPITNG_EDITOR_EXTENDEDMULTIREFERENCEEDITOR

        public static final java.lang.String EDITOR_CODE_REFERENCES_COM_HYBRIS_COCKPITNG_EDITOR_EXTENDEDMULTIREFERENCEEDITOR
        See Also:
        Constant Field Values
      • EDITOR_VALUE_TYPE_EXTENDED_MULTI_REFERENCE_COLLECTION_DOCUMENT

        public static final java.lang.String EDITOR_VALUE_TYPE_EXTENDED_MULTI_REFERENCE_COLLECTION_DOCUMENT
        See Also:
        Constant Field Values
      • I18N_HMC_TAB_DOCUMENTS_LABEL_DOCUMENTS

        public static final java.lang.String I18N_HMC_TAB_DOCUMENTS_LABEL_DOCUMENTS
        See Also:
        Constant Field Values
      • I18N_HMC_TAB_DOCUMENTS_LABEL_FORMATS

        public static final java.lang.String I18N_HMC_TAB_DOCUMENTS_LABEL_FORMATS
        See Also:
        Constant Field Values
      • SCLASS_YW_GENERATE_OUT_DOC_DATA_ROW

        public static final java.lang.String SCLASS_YW_GENERATE_OUT_DOC_DATA_ROW
        See Also:
        Constant Field Values
      • SCLASS_YW_GENERATE_OUT_DOC_DATA_ROW_TOP_SELECTOR

        public static final java.lang.String SCLASS_YW_GENERATE_OUT_DOC_DATA_ROW_TOP_SELECTOR
        See Also:
        Constant Field Values
      • LIST_CONFIG_CONTEXT

        public static final java.lang.String LIST_CONFIG_CONTEXT
        See Also:
        Constant Field Values
      • COMPONENT_OUT_DOC_EDITOR_LIST

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

      • GenerateOutputDocumentPanelRenderer

        public GenerateOutputDocumentPanelRenderer()
    • Method Detail

      • render

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

        protected void handleModelDataChanged​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                              org.zkoss.zul.Combobox formatCombobox,
                                              org.zkoss.zul.Button createDocumentButton)
      • handleFormatSelection

        protected void handleFormatSelection​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                             com.hybris.cockpitng.components.Editor dynamicDocumentList,
                                             org.zkoss.zul.Combobox formatCombobox,
                                             org.zkoss.zul.Button createDocumentButton)
      • extractCurrentObject

        protected java.lang.Object extractCurrentObject​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • findDocumentsOfFormat

        protected java.util.Collection<Document> findDocumentsOfFormat​(Format value,
                                                                       Item jalo)
      • executeDocumentCreation

        protected void executeDocumentCreation​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager,
                                               org.zkoss.zul.Combobox formatCombobox,
                                               com.hybris.cockpitng.components.Editor dynamicDocumentList)
                                        throws JaloBusinessException
        Throws:
        JaloBusinessException
      • prepareDynamicDocumentList

        protected com.hybris.cockpitng.components.Editor prepareDynamicDocumentList​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • getLabel

        protected java.lang.String getLabel​(java.lang.String i18nKey)
      • populateComboWithFormats

        protected void populateComboWithFormats​(org.zkoss.zul.Combobox combobox,
                                                java.lang.Object object)
      • getFormatsForItem

        protected java.util.Collection<Format> getFormatsForItem​(Item jalo)
      • notifyObjectUpdated

        protected void notifyObjectUpdated​(java.lang.Object object)
      • isCockpitEventNotificationEnabled

        protected boolean isCockpitEventNotificationEnabled()
      • getObjectFacade

        public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()
        Overrides:
        getObjectFacade in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,​java.lang.Object>
      • setObjectFacade

        public void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)
        Overrides:
        setObjectFacade in class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel,​java.lang.Object>
      • setModelService

        public void setModelService​(ModelService modelService)
      • getCockpitProperties

        public com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties()
      • setCockpitProperties

        public void setCockpitProperties​(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)
      • getEventPublisher

        public com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher getEventPublisher()
      • setEventPublisher

        public void setEventPublisher​(com.hybris.cockpitng.dataaccess.util.CockpitGlobalEventPublisher eventPublisher)
      • getModelDataQualifier

        public static java.lang.String getModelDataQualifier()
      • getNotificationService

        public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
      • setNotificationService

        public void setNotificationService​(com.hybris.cockpitng.util.notifications.NotificationService notificationService)