public class ConsignmentMenuRenderer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_BUTTON |
protected static java.lang.String |
ACTION_CELL |
protected static java.lang.String |
CAN_PRINT_RETURNFORM_KEY |
protected static java.lang.String |
CAN_PRINT_RETURNSHIPPINGLABEL_KEY |
protected static java.lang.String |
CAPTURE_PAYMENT_ON_CONSIGNMENT |
protected static java.lang.String |
MENU_POPUP_POSITION |
protected static java.lang.String |
NON_SELECTABLE_TAGS |
protected static java.lang.String |
PACK_ACTION |
protected static java.lang.String |
PICK_ACTION |
protected static java.lang.String |
ROW_POPUP_STYLE |
protected static java.lang.String |
SOCKET_OUT_CONTEXT |
| Constructor and Description |
|---|
ConsignmentMenuRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected Menupopup |
createMenuPopup(WorkflowActionModel workflowActionModel,
WidgetInstanceManager widgetInstanceManager)
Creates the popup menu associated to the three-dots menu.
|
protected ConfigurationService |
getConfigurationService() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintExportFormStrategy() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintPackSlipStrategy() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintPickSlipStrategy() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintReturnFormStrategy() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintReturnShippingLabelStrategy() |
protected ConsignmentPrintDocumentStrategy |
getConsignmentPrintShippingLabelStrategy() |
protected PrintExportFormStrategy |
getPrintExportFormStrategy() |
protected java.util.List<ConsignmentStatus> |
getReallocableConsignmentStatuses() |
protected void |
onActionClick(Listcell actionColumn,
Menupopup menuPopup)
Brings up the popup menu.
|
protected void |
printDocument(WorkflowActionModel workflowActionModel,
ConsignmentModel consignmentModel)
Prints a document depending on the
WorkflowActionModel that is to be performed |
protected void |
printExportSlip(ConsignmentModel consignmentModel)
Prints the export slip for a
ConsignmentModel if possible. |
protected void |
printReturnFormAndLabel(ConsignmentModel consignmentModel)
Evaluates if
ConsignmentModel.RETURNFORM and ConsignmentModel.RETURNLABEL needs to be printed.And prints the document, if required |
void |
render(Listcell listCell,
ListColumn columnConfiguration,
java.lang.Object object,
DataType dataType,
WidgetInstanceManager widgetInstanceManager) |
protected java.lang.String |
resolveLabel(java.lang.String labelKey)
Gets the localized label for the given key.
|
protected static final java.lang.String ROW_POPUP_STYLE
protected static final java.lang.String SOCKET_OUT_CONTEXT
protected static final java.lang.String ACTION_BUTTON
protected static final java.lang.String ACTION_CELL
protected static final java.lang.String CAN_PRINT_RETURNFORM_KEY
protected static final java.lang.String CAN_PRINT_RETURNSHIPPINGLABEL_KEY
protected static final java.lang.String PICK_ACTION
protected static final java.lang.String PACK_ACTION
protected static final java.lang.String NON_SELECTABLE_TAGS
protected static final java.lang.String MENU_POPUP_POSITION
protected static final java.lang.String CAPTURE_PAYMENT_ON_CONSIGNMENT
public void render(Listcell listCell,
ListColumn columnConfiguration,
java.lang.Object object,
DataType dataType,
WidgetInstanceManager widgetInstanceManager)
protected Menupopup createMenuPopup(WorkflowActionModel workflowActionModel, WidgetInstanceManager widgetInstanceManager)
ConsignmentModel must be placed here.workflowActionModel - the WorkflowActionModel with the attached ConsignmentModel which will be used to populate the various actionswidgetInstanceManager - the WidgetInstanceManagerMenupopupprotected void onActionClick(Listcell actionColumn,
Menupopup menuPopup)
actionColumn - the Listcell which was selectedmenuPopup - the Menupopup that will be openedprotected java.lang.String resolveLabel(java.lang.String labelKey)
labelKey - the key for which the label is requiredprotected void printDocument(WorkflowActionModel workflowActionModel, ConsignmentModel consignmentModel)
WorkflowActionModel that is to be performedworkflowActionModel - the WorkflowActionModel which will be used to know which document to print based on the task that is to be performedconsignmentModel - the ConsignmentModel whose status will be verifiedprotected void printReturnFormAndLabel(ConsignmentModel consignmentModel)
ConsignmentModel.RETURNFORM and ConsignmentModel.RETURNLABEL needs to be printed.consignmentModel - the ConsignmentModel for which return form and return label needs to be printedprotected void printExportSlip(ConsignmentModel consignmentModel)
ConsignmentModel if possible.consignmentModel - the ConsignmentModel for which the export slip will be printedprotected ConsignmentPrintDocumentStrategy getConsignmentPrintPickSlipStrategy()
protected ConsignmentPrintDocumentStrategy getConsignmentPrintPackSlipStrategy()
protected ConsignmentPrintDocumentStrategy getConsignmentPrintExportFormStrategy()
protected ConsignmentPrintDocumentStrategy getConsignmentPrintShippingLabelStrategy()
protected PrintExportFormStrategy getPrintExportFormStrategy()
protected ConsignmentPrintDocumentStrategy getConsignmentPrintReturnFormStrategy()
protected ConsignmentPrintDocumentStrategy getConsignmentPrintReturnShippingLabelStrategy()
protected ConfigurationService getConfigurationService()
protected java.util.List<ConsignmentStatus> getReallocableConsignmentStatuses()
Copyright © 2018 SAP SE. All Rights Reserved.