Class ModifyScheduleConfigurationSearchRenderer

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.ModifyScheduleConfigurationSearchRenderer
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 ModifyScheduleConfigurationSearchRenderer extends com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
Custom view renderer class for "Modify Schedule" wizard's first step, it creates view for schedule configuration search.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    appendSearchFields(org.zkoss.zul.Div container, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
    Creates the search fields.
    protected org.zkoss.zk.ui.Component
    createChangeSectorConfirmCheck(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    Creates the change sector confirm check.
    protected com.hybris.cockpitng.components.Editor
    createEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, String defaultEditor, String property, boolean doInit)
    Creates the editor.
    protected org.zkoss.zk.ui.Component
    createLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
    Creates layout.
    protected org.zkoss.zul.Radiogroup
    createRadiogroup(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    Creates the radiogroup.
    protected void
    createSearchResults(org.zkoss.zul.Grid grid, List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    Creates the search results.
    protected org.zkoss.zul.Grid
    createSearchResultsGrid(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    Creates the search results grid.
    protected org.zkoss.zk.ui.Component
    createSearchResultsLayout(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
    Creates the search results layout.
    Gets backoffice schedule configuration service.
    protected de.hybris.platform.servicelayer.config.ConfigurationService
    Gets configuration service.
    protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
    getSearchButtonListener(com.hybris.cockpitng.components.Editor travelProviderEditor, com.hybris.cockpitng.components.Editor numberEditor, com.hybris.cockpitng.components.Editor startDateEditor, com.hybris.cockpitng.components.Editor endDateEditor, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
    Gets the search button listener.
    void
    render(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)
     
    void
    Sets backoffice schedule configuration service.
    void
    setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
    Sets configuration service.

    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
  • Constructor Details

    • ModifyScheduleConfigurationSearchRenderer

      public ModifyScheduleConfigurationSearchRenderer()
  • Method Details

    • render

      public void render(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)
      Specified by:
      render in interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.config.jaxb.wizard.ViewType,Map<String,String>>
      Specified by:
      render in class com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
    • createLayout

      protected org.zkoss.zk.ui.Component createLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
      Creates layout.
      Parameters:
      widgetInstanceManager - the widget instance manager
      searchResultsVLayout - the search results v layout
      Returns:
      the component
    • appendSearchFields

      protected void appendSearchFields(org.zkoss.zul.Div container, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
      Creates the search fields.
      Parameters:
      container - the container
      widgetInstanceManager - the widget instance manager
      searchResultsVLayout - the search results v layout
    • getSearchButtonListener

      protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> getSearchButtonListener(com.hybris.cockpitng.components.Editor travelProviderEditor, com.hybris.cockpitng.components.Editor numberEditor, com.hybris.cockpitng.components.Editor startDateEditor, com.hybris.cockpitng.components.Editor endDateEditor, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout)
      Gets the search button listener.
      Parameters:
      travelProviderEditor - the travel provider editor
      numberEditor - the number editor
      startDateEditor - the start date editor
      endDateEditor - the end date editor
      widgetInstanceManager - the widget instance manager
      searchResultsVLayout - the search results v layout
      Returns:
      the search button listener
    • createEditor

      protected com.hybris.cockpitng.components.Editor createEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, String defaultEditor, String property, boolean doInit)
      Creates the editor.
      Parameters:
      widgetInstanceManager - the widget instance manager
      type - the type
      defaultEditor - the default editor
      property - the property
      doInit -
      Returns:
      the editor
    • createSearchResultsLayout

      protected org.zkoss.zk.ui.Component createSearchResultsLayout(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the search results layout.
      Parameters:
      scheduleConfigurations - the schedule configurations
      widgetInstanceManager - the widget instance manager
      Returns:
      the component
    • createRadiogroup

      protected org.zkoss.zul.Radiogroup createRadiogroup(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the radiogroup.
      Parameters:
      scheduleConfigurations - the schedule configurations
      widgetInstanceManager - the widget instance manager
      Returns:
      the radiogroup
    • createSearchResultsGrid

      protected org.zkoss.zul.Grid createSearchResultsGrid(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the search results grid.
      Parameters:
      scheduleConfigurations - the schedule configurations
      widgetInstanceManager - the widget instance manager
      Returns:
      the grid
    • createSearchResults

      protected void createSearchResults(org.zkoss.zul.Grid grid, List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the search results.
      Parameters:
      grid - the grid
      scheduleConfigurations - the schedule configurations
      widgetInstanceManager - the widget instance manager
    • createChangeSectorConfirmCheck

      protected org.zkoss.zk.ui.Component createChangeSectorConfirmCheck(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the change sector confirm check.
      Parameters:
      widgetInstanceManager - the widget instance manager
      Returns:
      the component
    • getBackofficeScheduleConfigurationService

      protected BackofficeScheduleConfigurationService getBackofficeScheduleConfigurationService()
      Gets backoffice schedule configuration service.
      Returns:
      the backofficeScheduleConfigurationService
    • setBackofficeScheduleConfigurationService

      public void setBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService)
      Sets backoffice schedule configuration service.
      Parameters:
      backofficeScheduleConfigurationService - the backofficeScheduleConfigurationService to set
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configuration service.
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configuration service.
      Parameters:
      configurationService - the configurationService to set