Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Desktop.addListener()


    final Desktop desktop = exec.getDesktop();
    synchronized (_dts) {
      boolean startRequired = false;
      DesktopThread dtthd = (DesktopThread)_dts.get(desktop);
      if (dtthd == null) {
        desktop.addListener(new EQCleanup());
          //OK to call addListener since it is the current desktop
        _dts.put(desktop, dtthd = new DesktopThread(desktop));
        startRequired = true;
      }
View Full Code Here


      dtthd.subscribe(listener, callback, async);

      if (startRequired) {
        if (!desktop.isServerPushEnabled()) {
          dtthd.enableCurrentServerPush();
          desktop.addListener(new EQService(dtthd));
            //add here since desktop is the current desktop
        }
        dtthd.start();
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.