Class AbstractScheduleConfigurationDayRenderer

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
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>
Direct Known Subclasses:
CreateScheduleConfigurationDayRenderer, ModifyScheduleConfigurationDayRenderer

public abstract class AbstractScheduleConfigurationDayRenderer extends com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
An abstract class to have the common functionality for ScheduleConfiguration wizard.
  • Field Details

  • Constructor Details

    • AbstractScheduleConfigurationDayRenderer

      public AbstractScheduleConfigurationDayRenderer()
  • Method Details

    • createConfigDayRow

      protected org.zkoss.zul.Row createConfigDayRow(boolean isReadOnly, ScheduleConfigurationModel scheduleConfigurationModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, DayOfWeek dayOfWeek, boolean isModifiedConfiguration, ScheduleConfigurationDayModel scheduleConfigurationDay)
      Creates and return an instance of Row, it represents the configuration of a calendar day on ScheduleConfiguration wizard.
      Parameters:
      isReadOnly -
      scheduleConfigurationModel -
      widgetInstanceManager -
      dayOfWeek -
      isModifiedConfiguration -
      scheduleConfigurationDay -
    • createGridLayout

      protected org.zkoss.zul.Grid createGridLayout(org.zkoss.zul.Div container)
      Creates grid layout
      Parameters:
      container -
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Method that handles event associated to ScheduleConfigurationDayModel's fields and make checkbox autoselected once user start typing/selecting corresponding field.
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • populateValueToEditor

      protected void populateValueToEditor(List<org.zkoss.zk.ui.Component> components, ScheduleConfigurationDayModel targetScheduleConfiguration)
      Method populates copied ScheduleConfigurationDayModel values to target row.
      Parameters:
      components -
      targetScheduleConfiguration -
    • createEditor

      protected com.hybris.cockpitng.components.Editor createEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, String defaultEditor, String property, String event, boolean isReadOnly, ScheduleConfigurationDayModel scheduleConfigurationDay)
      Method that create editor according to given parameter
      Parameters:
      widgetInstanceManager -
      type -
      defaultEditor -
      property -
      event -
    • handleCopyButtonEvent

      protected void handleCopyButtonEvent(org.zkoss.zk.ui.event.Event event, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Method handles the copy/paste event on backoffice's ScheduleConfiguration grid.
      Parameters:
      event -
      widgetInstanceManager -
    • getAllValidDays

      protected Set<String> getAllValidDays(ScheduleConfigurationModel scheduleConfiguration)
      Returns set of weekdays between the range of start and end date.
      Parameters:
      scheduleConfiguration -
    • getLabelService

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

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