Class AtpViewController
- java.lang.Object
-
- org.zkoss.zk.ui.event.GenericEventListener
-
- org.zkoss.zk.ui.util.GenericComposer<T>
-
- org.zkoss.zk.ui.util.GenericAutowireComposer<T>
-
- org.zkoss.zk.ui.util.GenericForwardComposer<org.zkoss.zk.ui.Component>
-
- com.hybris.cockpitng.util.ViewAnnotationAwareComposer
-
- com.hybris.cockpitng.util.DefaultWidgetController
-
- de.hybris.platform.warehousingbackoffice.widgets.atp.AtpViewController
-
- 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 AtpViewController extends com.hybris.cockpitng.util.DefaultWidgetControllerDisplays atp formulas based on the form input collected by the user- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringIN_SOCKETprotected static java.lang.StringWAREHOUSINGBACKOFFICE_ATP_VIEWS_TITLEprotected org.zkoss.zk.ui.ComponentwidgetComponent
-
Constructor Summary
Constructors Constructor Description AtpViewController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AtpFormulaServicegetAtpFormulaService()protected org.zkoss.zul.ListboxgetAtpListView()protected WarehousingCommerceStockServicegetWarehousingCommerceStockService()voidinitialize(org.zkoss.zk.ui.Component component)voidinitializeView(AtpFormDto atpFormDto)Initializes the list view.protected voidpopulateAtpFormula(AtpFormDto atpFormDto, ProductModel product, BaseStoreModel baseStore, java.util.List<AtpViewDto> atpViewEntries, AtpFormulaModel atpFormula)Populates theAtpFormulaModelwith the provided fields.voidsetAtpFormulaService(AtpFormulaService atpFormulaService)voidsetWarehousingCommerceStockService(WarehousingCommerceStockService warehousingCommerceStockService)-
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
-
-
-
-
Field Detail
-
WAREHOUSINGBACKOFFICE_ATP_VIEWS_TITLE
protected static final java.lang.String WAREHOUSINGBACKOFFICE_ATP_VIEWS_TITLE
- See Also:
- Constant Field Values
-
IN_SOCKET
protected static final java.lang.String IN_SOCKET
- See Also:
- Constant Field Values
-
widgetComponent
protected org.zkoss.zk.ui.Component widgetComponent
-
-
Method Detail
-
initialize
public void initialize(org.zkoss.zk.ui.Component component)
- Overrides:
initializein classcom.hybris.cockpitng.util.DefaultWidgetController
-
initializeView
public void initializeView(AtpFormDto atpFormDto)
Initializes the list view.- Parameters:
atpFormDto- the form containing atp information
-
populateAtpFormula
protected void populateAtpFormula(AtpFormDto atpFormDto, ProductModel product, BaseStoreModel baseStore, java.util.List<AtpViewDto> atpViewEntries, AtpFormulaModel atpFormula)
Populates theAtpFormulaModelwith the provided fields.- Parameters:
atpFormDto-product-baseStore-atpViewEntries-atpFormula-
-
getWarehousingCommerceStockService
protected WarehousingCommerceStockService getWarehousingCommerceStockService()
-
setWarehousingCommerceStockService
public void setWarehousingCommerceStockService(WarehousingCommerceStockService warehousingCommerceStockService)
-
getAtpFormulaService
protected AtpFormulaService getAtpFormulaService()
-
setAtpFormulaService
public void setAtpFormulaService(AtpFormulaService atpFormulaService)
-
getAtpListView
protected org.zkoss.zul.Listbox getAtpListView()
-
-