Class ConsignmentMenuRenderer

java.lang.Object
de.hybris.platform.warehousingbackoffice.renderers.ConsignmentMenuRenderer
All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,Object>

public class ConsignmentMenuRenderer extends Object implements com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,Object>
Renders the three-dots menu in order to display some options while viewing tasks in the Inbox section.
  • Field Details

  • Constructor Details

    • ConsignmentMenuRenderer

      public ConsignmentMenuRenderer()
  • Method Details

    • render

      public void render(org.zkoss.zul.Listcell listCell, com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn columnConfiguration, Object object, 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.zul.Listcell,com.hybris.cockpitng.core.config.impl.jaxb.listview.ListColumn,Object>
    • createMenuPopup

      protected org.zkoss.zul.Menupopup createMenuPopup(WorkflowActionModel workflowActionModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager)
      Creates the popup menu associated to the three-dots menu. All options associated to a ConsignmentModel must be placed here.
      Parameters:
      workflowActionModel - the WorkflowActionModel with the attached ConsignmentModel which will be used to populate the various actions
      widgetInstanceManager - the WidgetInstanceManager
      Returns:
      the newly populated Menupopup
    • onActionClick

      protected void onActionClick(org.zkoss.zul.Listcell actionColumn, org.zkoss.zul.Menupopup menuPopup)
      Brings up the popup menu.
      Parameters:
      actionColumn - the Listcell which was selected
      menuPopup - the Menupopup that will be opened
    • resolveLabel

      protected String resolveLabel(String labelKey)
      Gets the localized label for the given key.
      Parameters:
      labelKey - the key for which the label is required
      Returns:
      the localized label
    • printDocument

      protected void printDocument(WorkflowActionModel workflowActionModel, ConsignmentModel consignmentModel)
      Prints a document depending on the WorkflowActionModel that is to be performed
      Parameters:
      workflowActionModel - the WorkflowActionModel which will be used to know which document to print based on the task that is to be performed
      consignmentModel - the ConsignmentModel whose status will be verified
    • printReturnFormAndLabel

      protected void printReturnFormAndLabel(ConsignmentModel consignmentModel)
      Evaluates if ConsignmentModel.RETURNFORM and ConsignmentModel.RETURNLABEL needs to be printed.
      And prints the document, if required
      Parameters:
      consignmentModel - the ConsignmentModel for which return form and return label needs to be printed
    • printExportSlip

      protected void printExportSlip(ConsignmentModel consignmentModel)
      Prints the export slip for a ConsignmentModel if possible.
      Parameters:
      consignmentModel - the ConsignmentModel for which the export slip will be printed
    • getConsignmentPrintPickSlipStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintPickSlipStrategy()
    • getConsignmentPrintPackSlipStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintPackSlipStrategy()
    • getConsignmentPrintExportFormStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintExportFormStrategy()
    • getConsignmentPrintShippingLabelStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintShippingLabelStrategy()
    • getPrintExportFormStrategy

      protected PrintExportFormStrategy getPrintExportFormStrategy()
    • getConsignmentPrintReturnFormStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintReturnFormStrategy()
    • getConsignmentPrintReturnShippingLabelStrategy

      protected ConsignmentPrintDocumentStrategy getConsignmentPrintReturnShippingLabelStrategy()
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • getReallocableConsignmentStatuses

      protected List<ConsignmentStatus> getReallocableConsignmentStatuses()