Class WorkflowSearchWidgetController

  • 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 WorkflowSearchWidgetController
    extends com.hybris.cockpitng.util.DefaultWidgetController
    Widget controller class for Workflow Search Widget
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String COMPONENT_DATE_RANGE_EDITOR  
      protected static java.lang.String COMPONENT_SEARCH_BUTTON  
      protected static java.lang.String MODEL_DATE_RANGE  
      protected static java.lang.String MODEL_STATUSES  
      protected static java.lang.String SETTING_PAGE_SIZE  
      protected static java.lang.String SOCKET_INPUT_REFRESH  
      protected static java.lang.String SOCKET_INPUT_STATUSES  
      protected static java.lang.String SOCKET_OUTPUT_RESULTS  
      • Fields inherited from class org.zkoss.zk.ui.util.GenericAutowireComposer

        _separator, application, applicationScope, arg, componentScope, desktop, desktopScope, execution, page, pageScope, param, requestScope, self, session, sessionScope, spaceOwner, spaceScope
      • Fields inherited from class org.zkoss.zk.ui.util.GenericComposer

        _applied
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doSearch()  
      protected com.hybris.cockpitng.components.Editor getRangeEditor()  
      protected WorkflowFacade getWorkflowFacade()  
      void initialize​(org.zkoss.zk.ui.Component comp)  
      void onDateRangeValueChanged​(org.zkoss.zk.ui.event.Event event)  
      void onSearchButtonClick​(org.zkoss.zk.ui.event.Event event)  
      void onStatusesChanged​(java.util.Collection<java.lang.String> statuses)  
      protected void sendSearchResults​(com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel> results)  
      • 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

      • SOCKET_INPUT_STATUSES

        protected static final java.lang.String SOCKET_INPUT_STATUSES
        See Also:
        Constant Field Values
      • SOCKET_INPUT_REFRESH

        protected static final java.lang.String SOCKET_INPUT_REFRESH
        See Also:
        Constant Field Values
      • SOCKET_OUTPUT_RESULTS

        protected static final java.lang.String SOCKET_OUTPUT_RESULTS
        See Also:
        Constant Field Values
      • COMPONENT_SEARCH_BUTTON

        protected static final java.lang.String COMPONENT_SEARCH_BUTTON
        See Also:
        Constant Field Values
      • COMPONENT_DATE_RANGE_EDITOR

        protected static final java.lang.String COMPONENT_DATE_RANGE_EDITOR
        See Also:
        Constant Field Values
      • MODEL_DATE_RANGE

        protected static final java.lang.String MODEL_DATE_RANGE
        See Also:
        Constant Field Values
      • SETTING_PAGE_SIZE

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

      • WorkflowSearchWidgetController

        public WorkflowSearchWidgetController()
    • Method Detail

      • initialize

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

        public void onStatusesChanged​(java.util.Collection<java.lang.String> statuses)
      • onSearchButtonClick

        public void onSearchButtonClick​(org.zkoss.zk.ui.event.Event event)
      • onDateRangeValueChanged

        public void onDateRangeValueChanged​(org.zkoss.zk.ui.event.Event event)
      • doSearch

        public void doSearch()
      • sendSearchResults

        protected void sendSearchResults​(com.hybris.cockpitng.search.data.pageable.Pageable<WorkflowModel> results)
      • getRangeEditor

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