Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Desktop


        }
    }

    public static void stop() throws InterruptedException
    {
        final Desktop desktop = Executions.getCurrent().getDesktop();
        if (desktop.isServerPushEnabled())
        {
            desktop.enableServerPush(false);
        }
        else
        {
            Messagebox.show("Already stopped");
        }
View Full Code Here


      smartUpdate("filebrowserFlashUploadUrl", filebrowserFlashUploadUrl);
    }
  }

  private String getEncodedURL(String path) {
      final Desktop dt = getDesktop(); //it might not belong to any desktop
      return dt != null ? dt.getExecution().encodeURL(path): "";      
  }
View Full Code Here

      url = FilebrowserController.getFolderUrl(url);
        String path = request.getContextPath() + url;
     
     
      if (item != null) {
        final Desktop desktop = ((WebAppCtrl)sess.getWebApp())
          .getDesktopCache(sess).getDesktopIfAny(dtid);
        CKeditor ckez = (CKeditor)desktop.getComponentByUuidIfAny(uuid);
        String nextURI = "~./ckez/html/fileupload-done.html.dsp";
        final Map attrs = new HashMap();
        attrs.put("CKEditorFuncNum", request.getParameter("CKEditorFuncNum"));
        attrs.put("path", ckez.writeFileItem(path,
            desktop.getWebApp().getRealPath(url), item, type));
        Servlets.forward(_ctx, request, response,
          nextURI, attrs, Servlets.PASS_THRU_ATTR);
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

            @Override
            public void onEvent(Event arg0) throws Exception
            {
                Boolean isPush = (Boolean) auto.getAttribute("push");
                Desktop desktop = Executions.getCurrent().getDesktop();
                if (!isPush)
                {
                    desktop.enableServerPush(true);

                    new WorkingThread(auto, dfPlot1, databuff.get(0), 5).start();
                    new WorkingThread(auto, dfPlot2, databuff.get(1), 10).start();
                }
                else
                {
                    desktop.enableServerPush(false);
                }
                auto.setAttribute("push", !isPush);

                // ListModelList dataModelNew=makeModel();
                //              
View Full Code Here

  public static void start(Component info, Textbox tb) throws InterruptedException {
    start(null, info, tb);
  }
  public static void start(org.zkoss.zk.ui.sys.ServerPush sp, Component info, Textbox tb) throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      Messagebox.show("Already started");
    } else {
      desktop.removeAttribute("sp.ceased");
      if (sp != null)
        ((DesktopCtrl)desktop).enableServerPush(sp);
      else
        desktop.enableServerPush(true);
      new WorkingThread(info, tb).start();
    }
  }
View Full Code Here

        desktop.enableServerPush(true);
      new WorkingThread(info, tb).start();
    }
  }
  public static void stop() throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      desktop.enableServerPush(false);
      desktop.setAttribute("sp.ceased", Boolean.TRUE);
    } else {
      Messagebox.show("Already stopped");
    }
  }
View Full Code Here

*
* @author tomyeh
*/
public class B2202620 {
  public static void start(Component info) throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      Messagebox.show("Already started");
    } else {
      desktop.removeAttribute("sp.ceased");
      desktop.enableServerPush(true);
      new WorkingThread(info).start();
    }
  }
View Full Code Here

      desktop.enableServerPush(true);
      new WorkingThread(info).start();
    }
  }
  public static void stop() throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      desktop.enableServerPush(false);
      desktop.setAttribute("sp.ceased", Boolean.TRUE);
    } else {
      Messagebox.show("Already stopped");
    }
  }
View Full Code Here

  public static void start(Component info, Textbox tb) throws InterruptedException {
    start(null, info, tb);
  }
  public static void start(org.zkoss.zk.ui.sys.ServerPush sp, Component info, Textbox tb) throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      Messagebox.show("Already started");
    } else {
      desktop.removeAttribute("sp.ceased");
      if (sp != null)
        ((DesktopCtrl)desktop).enableServerPush(sp);
      else
        desktop.enableServerPush(true);
      new WorkingThread(info, tb).start();
    }
  }
View Full Code Here

        desktop.enableServerPush(true);
      new WorkingThread(info, tb).start();
    }
  }
  public static void stop() throws InterruptedException {
    final Desktop desktop = Executions.getCurrent().getDesktop();
    if (desktop.isServerPushEnabled()) {
      desktop.enableServerPush(false);
      desktop.setAttribute("sp.ceased", Boolean.TRUE);
    } else {
      Messagebox.show("Already stopped");
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.Desktop

Copyright © 2018 www.massapicom. 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.