Class ExcelExportRenderer

  • All Implemented Interfaces:
    com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>, com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>

    public class ExcelExportRenderer
    extends AbstractAttributesExportRenderer<AttributeDescriptorModel>
    Renders components that allow to pick a list of attributes to be exported to excel for given items.

    Displays a list of all available attributes of an item (e.g. a Product), and a second list of selected attributes. Mandatory and unique attributes are selected by default. Params:

    • Constructor Detail

      • ExcelExportRenderer

        public ExcelExportRenderer()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           com.hybris.cockpitng.config.jaxb.wizard.ViewType customView,
                           java.util.Map<java.lang.String,​java.lang.String> params,
                           com.hybris.cockpitng.dataaccess.facades.type.DataType dataType,
                           com.hybris.cockpitng.engine.WidgetInstanceManager wim)
        Specified by:
        render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​com.hybris.cockpitng.config.jaxb.wizard.ViewType,​java.util.Map<java.lang.String,​java.lang.String>>
        Specified by:
        render in class com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
      • populateAttributesChooserForm

        protected void populateAttributesChooserForm​(com.hybris.backoffice.attributechooser.AttributeChooserForm attributesForm,
                                                     java.lang.String typeCode)
      • getSupportedAttributes

        protected java.util.Set<AttributeDescriptorModel> getSupportedAttributes​(java.lang.String dataType)
      • isSupported

        @Deprecated(since="1808",
                    forRemoval=true)
        protected boolean isSupported​(java.lang.String dataType,
                                      AttributeDescriptorModel attr)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808. Not used anymore, it is replaced by ExcelFilter
      • isRequired

        @Deprecated(since="1808",
                    forRemoval=true)
        protected boolean isRequired​(AttributeDescriptorModel attributeDescriptor)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808. Not used anymore, it is replaced by ExcelFilter
      • getLocalizedAttributeName

        protected java.lang.String getLocalizedAttributeName​(java.lang.String dataType,
                                                             java.lang.String attr)
      • getExcelExportForm

        protected ExcelExportWizardForm getExcelExportForm​(com.hybris.cockpitng.engine.WidgetInstanceManager wim,
                                                           java.util.Map<java.lang.String,​java.lang.String> parameters)
      • getLabelService

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

        public void setLabelService​(com.hybris.cockpitng.labels.LabelService labelService)
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setExcelTranslatorRegistry

        public void setExcelTranslatorRegistry​(ExcelTranslatorRegistry excelTranslatorRegistry)
      • getAttributeChooserRenderer

        @Deprecated(since="6.7",
                    forRemoval=true)
        public com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,​java.lang.Object,​AttributeChooserForm> getAttributeChooserRenderer()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.7 no longer used - please see AbstractAttributesExportRenderer.getAttributesChooserRenderer() (WidgetComponentRenderer)}