Class CreateBundleMappingOptionsHandler
java.lang.Object
de.hybris.platform.transportbackoffice.widgets.bundle.CreateBundleMappingOptionsHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
public class CreateBundleMappingOptionsHandler
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Custom Handler for the custom navigation action defined in the Bundle Template Wizard. This handler sets the target on
the customType based on the selected radio button.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetReferenceEditorId(org.zkoss.zul.Radio radio) Returns the id of the reference editor corresponding to the given radiovoidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter flowActionHandlerAdapter, Map<String, String> map) protected voidresetReferenceSelection(com.hybris.cockpitng.core.model.WidgetModel widgetModel, String radioId) Reset the selection in the reference editor corresponding to the radio button for the given radioId.protected booleanvalidateMandatoryFields(com.hybris.cockpitng.components.Widgetslot widgetslot) Validates if the mandatory reference editor is populated when the corresponding radio button is selected.
-
Field Details
-
MAPPING_ATTRIBUTE_KEY
- See Also:
-
CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_MESSAGE
- See Also:
-
CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_TITLE
- See Also:
-
-
Constructor Details
-
CreateBundleMappingOptionsHandler
public CreateBundleMappingOptionsHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter flowActionHandlerAdapter, Map<String, String> map) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
validateMandatoryFields
protected boolean validateMandatoryFields(com.hybris.cockpitng.components.Widgetslot widgetslot) Validates if the mandatory reference editor is populated when the corresponding radio button is selected.- Parameters:
widgetslot- as the widget slot- Returns:
- boolean true if it is valid, false otherwise
-
getReferenceEditorId
Returns the id of the reference editor corresponding to the given radio- Parameters:
radio- as the radio- Returns:
- the reference editor id
-
resetReferenceSelection
protected void resetReferenceSelection(com.hybris.cockpitng.core.model.WidgetModel widgetModel, String radioId) Reset the selection in the reference editor corresponding to the radio button for the given radioId.- Parameters:
widgetModel- as the widget model.radioId- as the id of the radio button
-