Class ModifyScheduleConfigurationDayRenderer
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
de.hybris.platform.transportbackoffice.widgets.scheduleconfiguration.AbstractScheduleConfigurationDayRenderer
de.hybris.platform.transportbackoffice.widgets.scheduleconfiguration.ModifyScheduleConfigurationDayRenderer
- 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>> org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class ModifyScheduleConfigurationDayRenderer
extends AbstractScheduleConfigurationDayRenderer
Custom view renderer class for "Modify Schedule" wizard's second step, it creates view for schedule configuration day
grid.
-
Field Summary
Fields inherited from class de.hybris.platform.transportbackoffice.widgets.scheduleconfiguration.AbstractScheduleConfigurationDayRenderer
BUTTON_DISABLE_CLASS, CHECKBOX_EDITOR, copiedConfiguration, DURATION_SPINNER_EDITOR, REFERENCE_EDITOR, REFERENCE_TYPE, TERMINAL_DROPDOWN_EDITOR, TIME_EDITOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zk.ui.ComponentcreateLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates grid layout.protected voidcreateScheduleConfigDayLayout(org.zkoss.zul.Div container, ScheduleConfigurationModel scheduleConfigurationModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates grid layout forScheduleConfigurationDayModeldata.protected voidcreateScheduleConfigLayout(org.zkoss.zul.Div container, ScheduleConfigurationModel scheduleConfigurationModel) Creates grid layout forScheduleConfigurationModeldata.protected ScheduleConfigurationDayModelgetScheduleConfigDay(ScheduleConfigurationModel scheduleConfigurationModel, DayOfWeek dayOfWeek, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Method checks ifScheduleConfigurationDayModelis exist inScheduleConfigurationModelfor givenDayOfWeek, if no it returns the model fromWidgetInstanceManagervoidrender(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 widgetInstanceManager) Methods inherited from class de.hybris.platform.transportbackoffice.widgets.scheduleconfiguration.AbstractScheduleConfigurationDayRenderer
createConfigDayRow, createEditor, createGridLayout, getAllValidDays, getLabelService, handleCopyButtonEvent, onEvent, populateValueToEditor, setLabelServiceMethods 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
-
ModifyScheduleConfigurationDayRenderer
public ModifyScheduleConfigurationDayRenderer()
-
-
Method Details
-
render
-
createLayout
protected org.zkoss.zk.ui.Component createLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates grid layout.- Parameters:
widgetInstanceManager-
-
createScheduleConfigDayLayout
protected void createScheduleConfigDayLayout(org.zkoss.zul.Div container, ScheduleConfigurationModel scheduleConfigurationModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates grid layout forScheduleConfigurationDayModeldata.- Parameters:
container-scheduleConfigurationModel-widgetInstanceManager-
-
getScheduleConfigDay
protected ScheduleConfigurationDayModel getScheduleConfigDay(ScheduleConfigurationModel scheduleConfigurationModel, DayOfWeek dayOfWeek, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Method checks ifScheduleConfigurationDayModelis exist inScheduleConfigurationModelfor givenDayOfWeek, if no it returns the model fromWidgetInstanceManager- Parameters:
scheduleConfigurationModel-dayOfWeek-widgetInstanceManager-
-
createScheduleConfigLayout
protected void createScheduleConfigLayout(org.zkoss.zul.Div container, ScheduleConfigurationModel scheduleConfigurationModel) Creates grid layout forScheduleConfigurationModeldata.- Parameters:
container-scheduleConfigurationModel-
-