Class ExcelImportValidationResultRenderer
java.lang.Object
com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,String>>
com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
com.hybris.backoffice.excel.imp.wizard.renderer.ExcelImportValidationResultRenderer
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,,com.hybris.cockpitng.config.jaxb.wizard.ViewType, Map<String, String>> com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType, Map<String, String>>
public class ExcelImportValidationResultRenderer
extends com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
Allows to display list of errors found in uploaded excel file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.ButtoncreateButton(List<ExcelValidationResult> result) protected org.zkoss.zul.ListboxcreateListbox(List<ExcelValidationResult> result) protected org.zkoss.zul.Divorg.zkoss.zul.ListitemRenderer<ExcelValidationResult>com.hybris.cockpitng.util.notifications.NotificationServiceprotected List<ExcelValidationResult>limitValidationResultsToMaxThreshold(List<ExcelValidationResult> result, int maxErrorRenderAmount) protected List<ExcelValidationResult>reduceResultsList(List<ExcelValidationResult> result) voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.config.jaxb.wizard.ViewType customView, Map<String, String> parameters, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager wim) voidsetConfigurationService(ConfigurationService configurationService) voidsetExcelDownloadReportService(ExcelDownloadReportService excelDownloadReportService) voidsetListitemRenderer(org.zkoss.zul.ListitemRenderer<ExcelValidationResult> listitemRenderer) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Constructor Details
-
ExcelImportValidationResultRenderer
public ExcelImportValidationResultRenderer()
-
-
Method Details
-
render
-
reduceResultsList
-
limitValidationResultsToMaxThreshold
protected List<ExcelValidationResult> limitValidationResultsToMaxThreshold(List<ExcelValidationResult> result, int maxErrorRenderAmount) -
createSubtitle
protected org.zkoss.zul.Div createSubtitle() -
createListbox
-
createButton
-
getListitemRenderer
-
setListitemRenderer
public void setListitemRenderer(org.zkoss.zul.ListitemRenderer<ExcelValidationResult> listitemRenderer) -
getExcelDownloadReportService
-
setExcelDownloadReportService
-
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getConfigurationService
-
setConfigurationService
-