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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.MenupopupcreateMenuPopup(WorkflowActionModel workflowActionModel, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) Creates the popup menu associated to the three-dots menu.protected ConfigurationServiceprotected ConsignmentPrintDocumentStrategyprotected ConsignmentPrintDocumentStrategyprotected ConsignmentPrintDocumentStrategyprotected ConsignmentPrintDocumentStrategyprotected ConsignmentPrintDocumentStrategyprotected ConsignmentPrintDocumentStrategyprotected PrintExportFormStrategyprotected List<ConsignmentStatus>protected voidonActionClick(org.zkoss.zul.Listcell actionColumn, org.zkoss.zul.Menupopup menuPopup) Brings up the popup menu.protected voidprintDocument(WorkflowActionModel workflowActionModel, ConsignmentModel consignmentModel) Prints a document depending on theWorkflowActionModelthat is to be performedprotected voidprintExportSlip(ConsignmentModel consignmentModel) Prints the export slip for aConsignmentModelif possible.protected voidprintReturnFormAndLabel(ConsignmentModel consignmentModel) Evaluates ifConsignmentModel.RETURNFORMandConsignmentModel.RETURNLABELneeds to be printed.
And prints the document, if requiredvoidrender(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) protected StringresolveLabel(String labelKey) Gets the localized label for the given key.Methods 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
addRendererListener, removeRendererListener, render
-
Field Details
-
ROW_POPUP_STYLE
- See Also:
-
SOCKET_OUT_CONTEXT
- See Also:
-
ACTION_BUTTON
- See Also:
-
ACTION_CELL
- See Also:
-
CAN_PRINT_RETURNFORM_KEY
- See Also:
-
CAN_PRINT_RETURNSHIPPINGLABEL_KEY
- See Also:
-
PICK_ACTION
- See Also:
-
PACK_ACTION
- See Also:
-
NON_SELECTABLE_TAGS
- See Also:
-
MENU_POPUP_POSITION
- See Also:
-
CAPTURE_PAYMENT_ON_CONSIGNMENT
- See Also:
-
-
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:
renderin interfacecom.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 aConsignmentModelmust be placed here.- Parameters:
workflowActionModel- theWorkflowActionModelwith the attachedConsignmentModelwhich will be used to populate the various actionswidgetInstanceManager- theWidgetInstanceManager- 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- theListcellwhich was selectedmenuPopup- theMenupopupthat will be opened
-
resolveLabel
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 theWorkflowActionModelthat is to be performed- Parameters:
workflowActionModel- theWorkflowActionModelwhich will be used to know which document to print based on the task that is to be performedconsignmentModel- theConsignmentModelwhose status will be verified
-
printReturnFormAndLabel
Evaluates ifConsignmentModel.RETURNFORMandConsignmentModel.RETURNLABELneeds to be printed.
And prints the document, if required- Parameters:
consignmentModel- theConsignmentModelfor which return form and return label needs to be printed
-
printExportSlip
Prints the export slip for aConsignmentModelif possible.- Parameters:
consignmentModel- theConsignmentModelfor which the export slip will be printed
-
getConsignmentPrintPickSlipStrategy
-
getConsignmentPrintPackSlipStrategy
-
getConsignmentPrintExportFormStrategy
-
getConsignmentPrintShippingLabelStrategy
-
getPrintExportFormStrategy
-
getConsignmentPrintReturnFormStrategy
-
getConsignmentPrintReturnShippingLabelStrategy
-
getConfigurationService
-
getReallocableConsignmentStatuses
-