Class SelectiveSyncAttributesOverviewRenderer

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

    public class SelectiveSyncAttributesOverviewRenderer
    extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaPanelRenderer<CatalogVersionSyncJobModel>
    Custom renderer for CatalogVersionSyncJobModel with summary view of attributes included for synchronization.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String LABEL_CONFIGURATION  
      protected static java.lang.String LABEL_EDIT_CONFIGURATION  
      protected static java.lang.String LABEL_PROPERTIES_ATTRIBUTES  
      protected static java.lang.String LABEL_PROPERTIES_EXCLUDED  
      protected static java.lang.String LABEL_PROPERTIES_INCLUDED  
      protected static java.lang.String LABEL_PROPERTIES_TYPES  
      protected static java.lang.String SOCKET_OUTPUT_SEL_SYNC_OBJECT  
      • Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer

        ATTR_NOT_SAVED_OBJECT, attributeDescriptionIconRenderer, CURRENT_OBJECT, CURRENT_OBJECT_DOTLESS, 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int calculateExcludedAttributes​(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeConfigurations)  
      protected int calculateExcludedTypes​(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeConfigurations)  
      protected int calculateIncludedAttributes​(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeConfigurations)  
      protected int calculateIncludedTypes​(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeConfigurations)  
      protected SelectiveSyncAttributesOverviewRenderer.SyncAttributesSummary calculateSummary​(java.util.Collection<SyncAttributeDescriptorConfigModel> syncAttributeConfigurations)  
      protected org.zkoss.zul.Button createButton​(CatalogVersionSyncJobModel data, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      protected org.zkoss.zk.ui.Component createColumn​(java.lang.String headerKey, int attributes, int types)  
      protected org.zkoss.zul.Label createLabel​(java.lang.String labelKey, java.lang.Object... values)  
      protected org.zkoss.zk.ui.Component createTable​(SelectiveSyncAttributesOverviewRenderer.SyncAttributesSummary summary)  
      protected java.util.List<com.hybris.cockpitng.core.WidgetSocket> getAllOutputs​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      protected boolean isCurrentObjectSocketAvailable​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      void render​(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel configuration, CatalogVersionSyncJobModel data, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)  
      • 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, 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

      • LABEL_CONFIGURATION

        protected static final java.lang.String LABEL_CONFIGURATION
        See Also:
        Constant Field Values
      • LABEL_PROPERTIES_INCLUDED

        protected static final java.lang.String LABEL_PROPERTIES_INCLUDED
        See Also:
        Constant Field Values
      • LABEL_PROPERTIES_EXCLUDED

        protected static final java.lang.String LABEL_PROPERTIES_EXCLUDED
        See Also:
        Constant Field Values
      • LABEL_PROPERTIES_TYPES

        protected static final java.lang.String LABEL_PROPERTIES_TYPES
        See Also:
        Constant Field Values
      • LABEL_PROPERTIES_ATTRIBUTES

        protected static final java.lang.String LABEL_PROPERTIES_ATTRIBUTES
        See Also:
        Constant Field Values
      • LABEL_EDIT_CONFIGURATION

        protected static final java.lang.String LABEL_EDIT_CONFIGURATION
        See Also:
        Constant Field Values
      • SOCKET_OUTPUT_SEL_SYNC_OBJECT

        protected static final java.lang.String SOCKET_OUTPUT_SEL_SYNC_OBJECT
        See Also:
        Constant Field Values
    • Constructor Detail

      • SelectiveSyncAttributesOverviewRenderer

        public SelectiveSyncAttributesOverviewRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractPanel configuration,
                           CatalogVersionSyncJobModel data,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • createColumn

        protected org.zkoss.zk.ui.Component createColumn​(java.lang.String headerKey,
                                                         int attributes,
                                                         int types)
      • createLabel

        protected org.zkoss.zul.Label createLabel​(java.lang.String labelKey,
                                                  java.lang.Object... values)
      • createButton

        protected org.zkoss.zul.Button createButton​(CatalogVersionSyncJobModel data,
                                                    com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • isCurrentObjectSocketAvailable

        protected boolean isCurrentObjectSocketAvailable​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      • getAllOutputs

        protected java.util.List<com.hybris.cockpitng.core.WidgetSocket> getAllOutputs​(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)