Class AncillaryProductListController

java.lang.Object
org.zkoss.zk.ui.event.GenericEventListener
org.zkoss.zk.ui.util.GenericComposer<T>
org.zkoss.zk.ui.util.GenericAutowireComposer<T>
org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
com.hybris.cockpitng.util.ViewAnnotationAwareComposer
com.hybris.cockpitng.util.DefaultWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.UnifiedUiWidgetController
de.hybris.platform.unifieduibackoffice.widgets.merchandising.AncillaryProductListController
All Implemented Interfaces:
com.hybris.cockpitng.core.WidgetController, com.hybris.cockpitng.dnd.WidgetDragAndDropAware, com.hybris.cockpitng.engine.WidgetInstanceManagerAware, Serializable, org.zkoss.zk.ui.event.EventListener, org.zkoss.zk.ui.event.SerializableEventListener, org.zkoss.zk.ui.util.ComponentActivationListener, org.zkoss.zk.ui.util.ComponentCloneListener, org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>, org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>

public class AncillaryProductListController extends UnifiedUiWidgetController
The controller call handles the input of Ancillary Product List widget
See Also:
  • Field Details

  • Constructor Details

    • AncillaryProductListController

      public AncillaryProductListController()
  • Method Details

    • initialize

      public void initialize(org.zkoss.zk.ui.Component comp)
      Overrides:
      initialize in class com.hybris.cockpitng.util.DefaultWidgetController
    • populateSearchFilterValues

      protected void populateSearchFilterValues()
      This method will initialize as well as update search filter
    • getTravelProviderByCode

      protected TravelProviderModel getTravelProviderByCode(String code)
      Finds a travel provider by code.
      Parameters:
      code - the code
      Returns:
      the travel provider by code
    • search

      public void search()
    • clearFilter

      public void clearFilter()
    • getAncillaryProductList

      public final void getAncillaryProductList(Object object)
    • getAncillaryProducts

      protected void getAncillaryProducts(Object page)
      Gets the ancillary products.
      Parameters:
      page - the page requested for server pagination
    • createAncillaryProduct

      public void createAncillaryProduct()
    • constructRow

      protected org.zkoss.zul.Row constructRow(AncillaryProduct ancillaryProduct, String editImageIconWithPath, String deleteImageIconWithPath)
      This method constructs the row
      Parameters:
      ancillaryProduct - the ancillaryProduct
      editImageIconWithPath - the edit image icon with path
      deleteImageIconWithPath - the delete image icon with path
      Returns:
      the row
    • removeAncillaryProductConfirmMessageBox

      protected void removeAncillaryProductConfirmMessageBox(AncillaryProduct ancillaryProduct)
      This method will open confirm message box, on confirmation will call remove Ancillary Product.
      Parameters:
      ancillaryProduct - the ancillaryProduct
    • removeAncillaryProduct

      protected void removeAncillaryProduct(AncillaryProduct ancillaryProduct)
      This method will call remove Ancillary Product method, will handle the exception and accordingly notify, show message box to user
      Parameters:
      ancillaryProduct - the ancillaryProduct