Class PrintShippingLabelAction

    • Field Detail

      • POPUP_UNSAVED_CONSIGNMENT_MESSAGE

        protected static final java.lang.String POPUP_UNSAVED_CONSIGNMENT_MESSAGE
        See Also:
        Constant Field Values
      • POPUP_UNSAVED_CONSIGNMENT_TITLE

        protected static final java.lang.String POPUP_UNSAVED_CONSIGNMENT_TITLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • PrintShippingLabelAction

        public PrintShippingLabelAction()
    • Method Detail

      • canPerform

        public boolean canPerform​(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
        Specified by:
        canPerform in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>
      • needsConfirmation

        public boolean needsConfirmation​(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
        Specified by:
        needsConfirmation in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>
      • getConfirmationMessage

        public java.lang.String getConfirmationMessage​(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext)
        Specified by:
        getConfirmationMessage in interface com.hybris.cockpitng.actions.CockpitAction<ConsignmentModel,​ConsignmentModel>
      • processMessageboxEvent

        protected void processMessageboxEvent​(org.zkoss.zk.ui.event.Event clickEvent,
                                              com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> consignmentModelActionContext,
                                              java.util.Map<java.lang.String,​java.lang.Object> parentWidgetMap)
        Handles the message box popup action when the object is modified. Saves the ConsignmentModel on YES. Refreshes the ConsignmentModel on NO. Reloads the ConsignmentModel in backoffice.
        Parameters:
        clickEvent - the event that contains the button clicked
        consignmentModelActionContext - the action context that contains the consignment
      • getModelService

        protected ModelService getModelService()