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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendSearchFields(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.ComponentcreateChangeSectorConfirmCheck(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the change sector confirm check.protected com.hybris.cockpitng.components.EditorcreateEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, String defaultEditor, String property, boolean doInit) Creates the editor.protected org.zkoss.zk.ui.ComponentcreateLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, org.zkoss.zul.Vlayout searchResultsVLayout) Creates layout.protected org.zkoss.zul.RadiogroupcreateRadiogroup(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the radiogroup.protected voidcreateSearchResults(org.zkoss.zul.Grid grid, List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the search results.protected org.zkoss.zul.GridcreateSearchResultsGrid(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the search results grid.protected org.zkoss.zk.ui.ComponentcreateSearchResultsLayout(List<ScheduleConfigurationModel> scheduleConfigurations, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the search results layout.protected BackofficeScheduleConfigurationServiceGets backoffice schedule configuration service.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets 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.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 widgetInstanceManager) voidsetBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService) Sets backoffice schedule configuration service.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.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
-
ModifyScheduleConfigurationSearchRenderer
public ModifyScheduleConfigurationSearchRenderer()
-
-
Method Details
-
render
-
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 managersearchResultsVLayout- 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 containerwidgetInstanceManager- the widget instance managersearchResultsVLayout- 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 editornumberEditor- the number editorstartDateEditor- the start date editorendDateEditor- the end date editorwidgetInstanceManager- the widget instance managersearchResultsVLayout- 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 managertype- the typedefaultEditor- the default editorproperty- the propertydoInit-- 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 configurationswidgetInstanceManager- 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 configurationswidgetInstanceManager- 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 configurationswidgetInstanceManager- 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 gridscheduleConfigurations- the schedule configurationswidgetInstanceManager- 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
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
-