Class DummyDesktop

java.lang.Object
de.hybris.platform.cockpit.zk.mock.DummyDesktop
All Implemented Interfaces:
org.zkoss.zk.ui.Desktop, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.sys.DesktopCtrl

public class DummyDesktop extends Object implements org.zkoss.zk.ui.Desktop, org.zkoss.zk.ui.sys.DesktopCtrl
  • Constructor Details

    • DummyDesktop

      public DummyDesktop(org.springframework.context.ApplicationContext applicationContext)
      Parameters:
      applicationContext -
  • Method Details

    • addEventInterceptor

      public void addEventInterceptor(org.zkoss.zk.ui.util.EventInterceptor eventInterceptor)
    • addListener

      public void addListener(Object listener)
      Specified by:
      addListener in interface org.zkoss.zk.ui.Desktop
    • enableServerPush

      public boolean enableServerPush(boolean enable)
      Specified by:
      enableServerPush in interface org.zkoss.zk.ui.Desktop
    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface org.zkoss.zk.ui.Desktop
      Specified by:
      getAttribute in interface org.zkoss.zk.ui.ext.Scope
    • getAttributes

      public Map getAttributes()
      Specified by:
      getAttributes in interface org.zkoss.zk.ui.Desktop
      Specified by:
      getAttributes in interface org.zkoss.zk.ui.ext.Scope
    • getBookmark

      public String getBookmark()
      Specified by:
      getBookmark in interface org.zkoss.zk.ui.Desktop
    • getComponentByUuid

      public org.zkoss.zk.ui.Component getComponentByUuid(String uuid)
      Specified by:
      getComponentByUuid in interface org.zkoss.zk.ui.Desktop
    • getComponentByUuidIfAny

      public org.zkoss.zk.ui.Component getComponentByUuidIfAny(String uuid)
      Specified by:
      getComponentByUuidIfAny in interface org.zkoss.zk.ui.Desktop
    • getComponents

      public Collection getComponents()
      Specified by:
      getComponents in interface org.zkoss.zk.ui.Desktop
    • getCurrentDirectory

      public String getCurrentDirectory()
      Specified by:
      getCurrentDirectory in interface org.zkoss.zk.ui.Desktop
    • getDevice

      public org.zkoss.zk.device.Device getDevice()
      Specified by:
      getDevice in interface org.zkoss.zk.ui.Desktop
    • getDeviceType

      public String getDeviceType()
      Specified by:
      getDeviceType in interface org.zkoss.zk.ui.Desktop
    • getDownloadMediaURI

      public String getDownloadMediaURI(org.zkoss.util.media.Media media, String pathInfo)
      Specified by:
      getDownloadMediaURI in interface org.zkoss.zk.ui.Desktop
    • getDynamicMediaURI

      public String getDynamicMediaURI(org.zkoss.zk.ui.Component comp, String pathInfo)
      Specified by:
      getDynamicMediaURI in interface org.zkoss.zk.ui.Desktop
    • getExecution

      public org.zkoss.zk.ui.Execution getExecution()
      Specified by:
      getExecution in interface org.zkoss.zk.ui.Desktop
    • getId

      public String getId()
      Specified by:
      getId in interface org.zkoss.zk.ui.Desktop
    • getPage

      public org.zkoss.zk.ui.Page getPage(String pageId) throws org.zkoss.zk.ui.ComponentNotFoundException
      Specified by:
      getPage in interface org.zkoss.zk.ui.Desktop
      Throws:
      org.zkoss.zk.ui.ComponentNotFoundException
    • getPageIfAny

      public org.zkoss.zk.ui.Page getPageIfAny(String pageId)
      Specified by:
      getPageIfAny in interface org.zkoss.zk.ui.Desktop
    • getPages

      public Collection getPages()
      Specified by:
      getPages in interface org.zkoss.zk.ui.Desktop
    • getRequestPath

      public String getRequestPath()
      Specified by:
      getRequestPath in interface org.zkoss.zk.ui.Desktop
    • getSession

      public org.zkoss.zk.ui.Session getSession()
      Specified by:
      getSession in interface org.zkoss.zk.ui.Desktop
    • getUpdateURI

      public String getUpdateURI(String pathInfo)
      Specified by:
      getUpdateURI in interface org.zkoss.zk.ui.Desktop
    • getWebApp

      public org.zkoss.zk.ui.WebApp getWebApp()
      Specified by:
      getWebApp in interface org.zkoss.zk.ui.Desktop
    • hasPage

      public boolean hasPage(String pageId)
      Specified by:
      hasPage in interface org.zkoss.zk.ui.Desktop
    • invalidate

      public void invalidate()
      Specified by:
      invalidate in interface org.zkoss.zk.ui.Desktop
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface org.zkoss.zk.ui.Desktop
    • isServerPushEnabled

      public boolean isServerPushEnabled()
      Specified by:
      isServerPushEnabled in interface org.zkoss.zk.ui.Desktop
    • removeAttribute

      public Object removeAttribute(String name)
      Specified by:
      removeAttribute in interface org.zkoss.zk.ui.Desktop
      Specified by:
      removeAttribute in interface org.zkoss.zk.ui.ext.Scope
    • removeEventInterceptor

      public boolean removeEventInterceptor(org.zkoss.zk.ui.util.EventInterceptor eventInterceptor)
    • removeListener

      public boolean removeListener(Object listener)
      Specified by:
      removeListener in interface org.zkoss.zk.ui.Desktop
    • setAttribute

      public Object setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface org.zkoss.zk.ui.Desktop
      Specified by:
      setAttribute in interface org.zkoss.zk.ui.ext.Scope
    • setBookmark

      public void setBookmark(String name)
      Specified by:
      setBookmark in interface org.zkoss.zk.ui.Desktop
    • setCurrentDirectory

      public void setCurrentDirectory(String dir)
      Specified by:
      setCurrentDirectory in interface org.zkoss.zk.ui.Desktop
    • setDeviceType

      public void setDeviceType(String deviceType)
      Specified by:
      setDeviceType in interface org.zkoss.zk.ui.Desktop
    • setServerPushDelay

      public void setServerPushDelay(int min, int max, int factor)
    • activateServerPush

      public boolean activateServerPush(long timeout) throws InterruptedException
      Specified by:
      activateServerPush in interface org.zkoss.zk.ui.sys.DesktopCtrl
      Throws:
      InterruptedException
    • addComponent

      public void addComponent(org.zkoss.zk.ui.Component comp)
      Specified by:
      addComponent in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • addPage

      public void addPage(org.zkoss.zk.ui.Page page)
      Specified by:
      addPage in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • afterComponentAttached

      public void afterComponentAttached(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.Page page)
      Specified by:
      afterComponentAttached in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • afterComponentDetached

      public void afterComponentDetached(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.Page prevpage)
      Specified by:
      afterComponentDetached in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • afterComponentMoved

      public void afterComponentMoved(org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component prevparent)
      Specified by:
      afterComponentMoved in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • afterProcessEvent

      public void afterProcessEvent(org.zkoss.zk.ui.event.Event event)
      Specified by:
      afterProcessEvent in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • beforePostEvent

      public org.zkoss.zk.ui.event.Event beforePostEvent(org.zkoss.zk.ui.event.Event event)
      Specified by:
      beforePostEvent in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • beforeProcessEvent

      public org.zkoss.zk.ui.event.Event beforeProcessEvent(org.zkoss.zk.ui.event.Event event)
      Specified by:
      beforeProcessEvent in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • beforeSendEvent

      public org.zkoss.zk.ui.event.Event beforeSendEvent(org.zkoss.zk.ui.event.Event event)
      Specified by:
      beforeSendEvent in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • ceaseSuspendedThread

      public boolean ceaseSuspendedThread(org.zkoss.zk.ui.sys.EventProcessingThread evtthd, String cause)
      Specified by:
      ceaseSuspendedThread in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • deactivateServerPush

      public void deactivateServerPush()
      Specified by:
      deactivateServerPush in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • enableServerPush

      public boolean enableServerPush(org.zkoss.zk.ui.sys.ServerPush serverpush)
      Specified by:
      enableServerPush in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getActivationLock

      public Object getActivationLock()
      Specified by:
      getActivationLock in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getDownloadMedia

      public org.zkoss.util.media.Media getDownloadMedia(String medId, boolean reserved)
      Specified by:
      getDownloadMedia in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getLastResponse

      public Object getLastResponse(String channel, String reqId)
    • getNextKey

      public int getNextKey()
      Specified by:
      getNextKey in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getNextUuid

      public String getNextUuid()
    • getRequestQueue

      public org.zkoss.zk.ui.sys.RequestQueue getRequestQueue()
      Specified by:
      getRequestQueue in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getResponseId

      public int getResponseId(boolean advance)
      Specified by:
      getResponseId in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getServerPush

      public org.zkoss.zk.ui.sys.ServerPush getServerPush()
      Specified by:
      getServerPush in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getSuspendedThreads

      public Collection getSuspendedThreads()
      Specified by:
      getSuspendedThreads in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • getVisualizer

      public org.zkoss.zk.ui.sys.Visualizer getVisualizer()
      Specified by:
      getVisualizer in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • invokeDesktopCleanups

      public void invokeDesktopCleanups()
      Specified by:
      invokeDesktopCleanups in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • invokeExecutionCleanups

      public void invokeExecutionCleanups(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Execution parent, List errs)
      Specified by:
      invokeExecutionCleanups in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • invokeExecutionInits

      public void invokeExecutionInits(org.zkoss.zk.ui.Execution exec, org.zkoss.zk.ui.Execution parent) throws org.zkoss.zk.ui.UiException
      Specified by:
      invokeExecutionInits in interface org.zkoss.zk.ui.sys.DesktopCtrl
      Throws:
      org.zkoss.zk.ui.UiException
    • onPiggyback

      public void onPiggyback()
      Specified by:
      onPiggyback in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • onPiggybackListened

      public void onPiggybackListened(org.zkoss.zk.ui.Component comp, boolean listen)
      Specified by:
      onPiggybackListened in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • recoverDidFail

      public void recoverDidFail(Throwable exception)
      Specified by:
      recoverDidFail in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • removeComponent

      public void removeComponent(org.zkoss.zk.ui.Component comp)
    • removePage

      public void removePage(org.zkoss.zk.ui.Page page)
      Specified by:
      removePage in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • responseSent

      public void responseSent(String channel, String reqId, Object resInfo)
    • sessionDidActivate

      public void sessionDidActivate(org.zkoss.zk.ui.Session sess)
      Specified by:
      sessionDidActivate in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • sessionWillPassivate

      public void sessionWillPassivate(org.zkoss.zk.ui.Session sess)
      Specified by:
      sessionWillPassivate in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • setBookmarkByClient

      public void setBookmarkByClient(String name)
    • setExecution

      public void setExecution(org.zkoss.zk.ui.Execution exec)
      Specified by:
      setExecution in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • setId

      public void setId(String id)
      Specified by:
      setId in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • setResponseId

      public void setResponseId(int resId)
      Specified by:
      setResponseId in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • setVisualizer

      public void setVisualizer(org.zkoss.zk.ui.sys.Visualizer visualizer)
      Specified by:
      setVisualizer in interface org.zkoss.zk.ui.sys.DesktopCtrl
    • setBookmark

      public void setBookmark(String arg0, boolean arg1)
      Specified by:
      setBookmark in interface org.zkoss.zk.ui.Desktop