Class MultiCodeCouponGeneratorInset
- java.lang.Object
-
- de.hybris.platform.coupon.backoffice.cockpitng.editor.insets.MultiCodeCouponGeneratorInset
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
public class MultiCodeCouponGeneratorInset extends java.lang.Object implements com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUTTON_SCLASSprotected static java.lang.StringCURRENT_OBJECT_PARAMprotected static java.lang.StringEDITOR_PLACEHOLDERprotected static java.lang.StringERROR_GENERATE_FOR_NOT_SAVED_MSGprotected static java.lang.StringERROR_WRONG_PARENT_TYPE_MSGprotected static java.lang.StringGENERATE_BUTTON_LABELstatic java.lang.StringINSET_SCLASSprotected static java.lang.StringPARENT_OBJECT_PARAMstatic java.lang.StringTEXTBOX_SCLASSprotected static java.lang.StringUNEXPECTED_ERROR_MSG
-
Constructor Summary
Constructors Constructor Description MultiCodeCouponGeneratorInset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.ButtoncreateButtonForGenerateCouponCodes(org.zkoss.zul.Div insetContainer, com.hybris.cockpitng.engine.WidgetInstanceManager wim, MultiCodeCouponModel multiCodeCoupon, org.zkoss.zul.Intbox editorView)protected CouponCodeGenerationServicegetCouponCodeGenerationService()protected ModelServicegetModelService()protected com.hybris.cockpitng.util.notifications.NotificationServicegetNotificationService()protected booleanisDisabled(MultiCodeCouponModel multiCodeCoupon)voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)voidsetCouponCodeGenerationService(CouponCodeGenerationService couponCodeGenerationService)voidsetModelService(ModelService modelService)voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
-
-
-
Field Detail
-
ERROR_WRONG_PARENT_TYPE_MSG
protected static final java.lang.String ERROR_WRONG_PARENT_TYPE_MSG
- See Also:
- Constant Field Values
-
EDITOR_PLACEHOLDER
protected static final java.lang.String EDITOR_PLACEHOLDER
- See Also:
- Constant Field Values
-
GENERATE_BUTTON_LABEL
protected static final java.lang.String GENERATE_BUTTON_LABEL
- See Also:
- Constant Field Values
-
UNEXPECTED_ERROR_MSG
protected static final java.lang.String UNEXPECTED_ERROR_MSG
- See Also:
- Constant Field Values
-
ERROR_GENERATE_FOR_NOT_SAVED_MSG
protected static final java.lang.String ERROR_GENERATE_FOR_NOT_SAVED_MSG
- See Also:
- Constant Field Values
-
INSET_SCLASS
public static final java.lang.String INSET_SCLASS
- See Also:
- Constant Field Values
-
BUTTON_SCLASS
public static final java.lang.String BUTTON_SCLASS
- See Also:
- Constant Field Values
-
TEXTBOX_SCLASS
public static final java.lang.String TEXTBOX_SCLASS
- See Also:
- Constant Field Values
-
PARENT_OBJECT_PARAM
protected static final java.lang.String PARENT_OBJECT_PARAM
- See Also:
- Constant Field Values
-
CURRENT_OBJECT_PARAM
protected static final java.lang.String CURRENT_OBJECT_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)- Specified by:
renderin interfacecom.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
-
createButtonForGenerateCouponCodes
protected org.zkoss.zul.Button createButtonForGenerateCouponCodes(org.zkoss.zul.Div insetContainer, com.hybris.cockpitng.engine.WidgetInstanceManager wim, MultiCodeCouponModel multiCodeCoupon, org.zkoss.zul.Intbox editorView)
-
isDisabled
protected boolean isDisabled(MultiCodeCouponModel multiCodeCoupon)
-
getCouponCodeGenerationService
protected CouponCodeGenerationService getCouponCodeGenerationService()
-
setCouponCodeGenerationService
public void setCouponCodeGenerationService(CouponCodeGenerationService couponCodeGenerationService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getNotificationService
protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()
-
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService)
-
-