Class AbstractStockInventoryConfigurationRenderer
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.inventory.renderer.AbstractStockInventoryConfigurationRenderer
- 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>>
- Direct Known Subclasses:
AssignStockInventoryConfigurationRenderer,AssignStockInventoryForProductConfigurationRenderer
public abstract class AbstractStockInventoryConfigurationRenderer
extends com.hybris.cockpitng.widgets.configurableflow.renderer.DefaultCustomViewRenderer
This is responsible of rendering the layout of the Step2 of Create Inventory for Booking class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.RowcreateContentRow(String firstColumnText, String secondColumnText) Creates an returns an instance ofRowfor grid.protected com.hybris.cockpitng.components.EditorcreateEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, Object initialValue, boolean nestedObjectCreation, String property) Method creates an returns an instance ofEditorprotected org.zkoss.zul.LabelcreateLabel(String labelName, boolean isBold) Method creates theLabelfor given labelname.protected org.zkoss.zk.ui.ComponentcreateLayoutForContent(String childLabelText, List<String> displayValues) Method creates the layout container that contains the Grid structure.protected org.zkoss.zk.ui.ComponentcreateLayoutForStockLevels(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, ManageStockLevelInfo manageStockLevel) Method creates layout for StockLevelAttributes in Gridprotected abstract org.zkoss.zul.RowcreateStockAttributesColumnLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, Integer index, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> addButtonlistener, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> removeButtonlistener, StockLevelAttributes stockLevelAttributes, boolean isPlusButtonNeedToAdd) An abstract method to creates column layout for grid used to display the StockLevelAttributeprotected StringgetFlightInfo(TransportOfferingModel transportOfferingModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Method returns the String by concatenating the travel provider's code, transport offering number and departure date .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) 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
-
AbstractStockInventoryConfigurationRenderer
public AbstractStockInventoryConfigurationRenderer()
-
-
Method Details
-
render
-
getFlightInfo
protected String getFlightInfo(TransportOfferingModel transportOfferingModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Method returns the String by concatenating the travel provider's code, transport offering number and departure date .- Parameters:
transportOfferingModel- the transport offering modelwidgetInstanceManager- the widget instance manager- Returns:
- the flight info
-
createLayoutForContent
protected org.zkoss.zk.ui.Component createLayoutForContent(String childLabelText, List<String> displayValues) Method creates the layout container that contains the Grid structure.- Parameters:
childLabelText- the child label textdisplayValues- the display values- Returns:
- the component
-
createContentRow
Creates an returns an instance ofRowfor grid.- Parameters:
firstColumnText- the first column textsecondColumnText- the second column text- Returns:
- row
-
createLayoutForStockLevels
protected org.zkoss.zk.ui.Component createLayoutForStockLevels(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, ManageStockLevelInfo manageStockLevel) Method creates layout for StockLevelAttributes in Grid- Parameters:
widgetInstanceManager- the widget instance managermanageStockLevel- the manage stock level- Returns:
- the component
-
createStockAttributesColumnLayout
protected abstract org.zkoss.zul.Row createStockAttributesColumnLayout(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, Integer index, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> addButtonlistener, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> removeButtonlistener, StockLevelAttributes stockLevelAttributes, boolean isPlusButtonNeedToAdd) An abstract method to creates column layout for grid used to display the StockLevelAttribute- Parameters:
widgetInstanceManager- the widget instance managerindex- the indexaddButtonlistener- the add buttonlistenerremoveButtonlistener- the remove buttonlistenerstockLevelAttributes- the stock level attributesisPlusButtonNeedToAdd- true if plus button need to add otherwise false- Returns:
- row
-
createLabel
Method creates theLabelfor given labelname.- Parameters:
labelName- the label nameisBold- the is bold- Returns:
- the label
-
createEditor
protected com.hybris.cockpitng.components.Editor createEditor(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, String type, Object initialValue, boolean nestedObjectCreation, String property) Method creates an returns an instance ofEditor- Parameters:
widgetInstanceManager- the widget instance managertype- the typeinitialValue- the initial ValuenestedObjectCreation- the nested object creationproperty- the property- Returns:
- the editor
-