Class AtpFormController

  • All Implemented Interfaces:
    com.hybris.cockpitng.core.WidgetController, com.hybris.cockpitng.dnd.WidgetDragAndDropAware, com.hybris.cockpitng.engine.WidgetInstanceManagerAware, java.io.Serializable, org.zkoss.zk.ui.event.EventListener, org.zkoss.zk.ui.event.SerializableEventListener, org.zkoss.zk.ui.util.ComponentActivationListener, org.zkoss.zk.ui.util.ComponentCloneListener, org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>, org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zk.ui.Component>

    public class AtpFormController
    extends com.hybris.cockpitng.util.DefaultWidgetController
    A form for the user to enter required information to search for a particular ATP formula.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addListeners()
      Adds listeners on all components which will receive user input.
      protected org.zkoss.zul.Combobox getBaseStores()  
      protected BaseStoreService getBaseStoreService()  
      protected org.zkoss.zul.Combobox getPointOfServices()  
      protected com.hybris.cockpitng.components.Editor getProduct()  
      void initialize​(org.zkoss.zk.ui.Component component)  
      void performSearchOperation()
      Populates the AtpFormDto with the user input and sends it as an event to be displayed in a list.
      protected void refreshForm()
      Refreshes the form
      void setBaseStoreService​(BaseStoreService baseStoreService)  
      protected void validateForm()
      ` Validates the form and verifies whether the user input is correct.
      • Methods inherited from class com.hybris.cockpitng.util.DefaultWidgetController

        doAfterCompose, doBeforeCompose, doBeforeComposeChildren, executeOperation, getDragAndDropStrategy, getLabel, getLabel, getModel, getValue, getWidgetDragAndDropStrategyRepository, getWidgetInstanceManager, getWidgetRoot, getWidgetSettings, getWidgetslot, getWidgetTitle, getWidgetUtils, initDragAndDropAwareness, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, initWidgetSetting, invokeListenerMethod, onSocketInput, preInitialize, sendOutput, sendOutputAfterOperation, sendOutputAfterOperation, sendOutputAfterOperation, setValue, setWidgetInstanceManager, setWidgetTitle
      • Methods inherited from class com.hybris.cockpitng.util.ViewAnnotationAwareComposer

        scanEventListeners
      • Methods inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer

        alert, didActivate, getPage, willClone, willPassivate
      • Methods inherited from class org.zkoss.zk.ui.util.GenericComposer

        doCatch, doFinally
      • Methods inherited from class org.zkoss.zk.ui.event.GenericEventListener

        bindComponent, getController, onEvent, unbindComponent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_MISSING_BASE_STORE

        protected static final java.lang.String WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_MISSING_BASE_STORE
        See Also:
        Constant Field Values
      • WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_MISSING_PRODUCT_CODE

        protected static final java.lang.String WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_MISSING_PRODUCT_CODE
        See Also:
        Constant Field Values
      • WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_VALID_POS

        protected static final java.lang.String WAREHOUSINGBACKOFFICE_ATPFORM_VALIDATION_VALID_POS
        See Also:
        Constant Field Values
      • ON_STORE_CHANGE

        protected static final java.lang.String ON_STORE_CHANGE
        See Also:
        Constant Field Values
      • ON_LATER_STORE_CHANGE

        protected static final java.lang.String ON_LATER_STORE_CHANGE
        See Also:
        Constant Field Values
      • ON_LATER_POS_CHANGE

        protected static final java.lang.String ON_LATER_POS_CHANGE
        See Also:
        Constant Field Values
      • WAREHOUSINGBACKOFFICE_ATPFORM_TITLE

        protected static final java.lang.String WAREHOUSINGBACKOFFICE_ATPFORM_TITLE
        See Also:
        Constant Field Values
      • SELECT_A_POINT_OF_SERVICE

        protected static final java.lang.String SELECT_A_POINT_OF_SERVICE
        See Also:
        Constant Field Values
      • SELECT_A_BASE_STORE

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

      • AtpFormController

        public AtpFormController()
    • Method Detail

      • initialize

        public void initialize​(org.zkoss.zk.ui.Component component)
        Overrides:
        initialize in class com.hybris.cockpitng.util.DefaultWidgetController
      • refreshForm

        protected void refreshForm()
        Refreshes the form
      • performSearchOperation

        public void performSearchOperation()
        Populates the AtpFormDto with the user input and sends it as an event to be displayed in a list.
      • addListeners

        protected void addListeners()
        Adds listeners on all components which will receive user input.
      • validateForm

        protected void validateForm()
        ` Validates the form and verifies whether the user input is correct.
      • setBaseStoreService

        public void setBaseStoreService​(BaseStoreService baseStoreService)
      • getBaseStores

        protected org.zkoss.zul.Combobox getBaseStores()
      • getPointOfServices

        protected org.zkoss.zul.Combobox getPointOfServices()
      • getProduct

        protected com.hybris.cockpitng.components.Editor getProduct()