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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.zkoss.zul.Row
    createContentRow(String firstColumnText, String secondColumnText)
    Creates an returns an instance of Row for grid.
    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 of Editor
    protected org.zkoss.zul.Label
    createLabel(String labelName, boolean isBold)
    Method creates the Label for given labelname.
    protected org.zkoss.zk.ui.Component
    createLayoutForContent(String childLabelText, List<String> displayValues)
    Method creates the layout container that contains the Grid structure.
    protected org.zkoss.zk.ui.Component
    createLayoutForStockLevels(com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, ManageStockLevelInfo manageStockLevel)
    Method creates layout for StockLevelAttributes in Grid
    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
    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 .
    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)
     

    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

    • AbstractStockInventoryConfigurationRenderer

      public AbstractStockInventoryConfigurationRenderer()
  • 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
    • 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 model
      widgetInstanceManager - 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 text
      displayValues - the display values
      Returns:
      the component
    • createContentRow

      protected org.zkoss.zul.Row createContentRow(String firstColumnText, String secondColumnText)
      Creates an returns an instance of Row for grid.
      Parameters:
      firstColumnText - the first column text
      secondColumnText - 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 manager
      manageStockLevel - 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 manager
      index - the index
      addButtonlistener - the add buttonlistener
      removeButtonlistener - the remove buttonlistener
      stockLevelAttributes - the stock level attributes
      isPlusButtonNeedToAdd - true if plus button need to add otherwise false
      Returns:
      row
    • createLabel

      protected org.zkoss.zul.Label createLabel(String labelName, boolean isBold)
      Method creates the Label for given labelname.
      Parameters:
      labelName - the label name
      isBold - 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 of Editor
      Parameters:
      widgetInstanceManager - the widget instance manager
      type - the type
      initialValue - the initial Value
      nestedObjectCreation - the nested object creation
      property - the property
      Returns:
      the editor