Class 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 java.lang.Object
    implements org.zkoss.zk.ui.Desktop, org.zkoss.zk.ui.sys.DesktopCtrl
    • Constructor Detail

      • DummyDesktop

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

      • addEventInterceptor

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

        public void addListener​(java.lang.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 java.lang.Object getAttribute​(java.lang.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 java.util.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 java.lang.String getBookmark()
        Specified by:
        getBookmark in interface org.zkoss.zk.ui.Desktop
      • getComponentByUuid

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

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

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

        public java.lang.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 java.lang.String getDeviceType()
        Specified by:
        getDeviceType in interface org.zkoss.zk.ui.Desktop
      • getDownloadMediaURI

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

        public java.lang.String getDynamicMediaURI​(org.zkoss.zk.ui.Component comp,
                                                   java.lang.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 java.lang.String getId()
        Specified by:
        getId in interface org.zkoss.zk.ui.Desktop
      • getPage

        public org.zkoss.zk.ui.Page getPage​(java.lang.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​(java.lang.String pageId)
        Specified by:
        getPageIfAny in interface org.zkoss.zk.ui.Desktop
      • getPages

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

        public java.lang.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 java.lang.String getUpdateURI​(java.lang.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​(java.lang.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 java.lang.Object removeAttribute​(java.lang.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​(java.lang.Object listener)
        Specified by:
        removeListener in interface org.zkoss.zk.ui.Desktop
      • setAttribute

        public java.lang.Object setAttribute​(java.lang.String name,
                                             java.lang.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​(java.lang.String name)
        Specified by:
        setBookmark in interface org.zkoss.zk.ui.Desktop
      • setCurrentDirectory

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

        public void setDeviceType​(java.lang.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 java.lang.InterruptedException
        Specified by:
        activateServerPush in interface org.zkoss.zk.ui.sys.DesktopCtrl
        Throws:
        java.lang.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,
                                            java.lang.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 java.lang.Object getActivationLock()
        Specified by:
        getActivationLock in interface org.zkoss.zk.ui.sys.DesktopCtrl
      • getDownloadMedia

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

        public java.lang.Object getLastResponse​(java.lang.String channel,
                                                java.lang.String reqId)
      • getNextKey

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

        public java.lang.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 java.util.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,
                                            java.util.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​(java.lang.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​(java.lang.String channel,
                                 java.lang.String reqId,
                                 java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String arg0,
                                boolean arg1)
        Specified by:
        setBookmark in interface org.zkoss.zk.ui.Desktop