Package org.zkoss.zk.ui

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


  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


  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();
    }
  }
  public static void stop() throws InterruptedException {
View Full Code Here

  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

*/
public class MyExecCleanup implements ExecutionCleanup {
  public void cleanup(Execution exec,
  Execution parent, List errs) throws Exception {
    Desktop desktop = exec.getDesktop();
    desktop.removeAttribute("test");
  }
}
View Full Code Here

  public Object removeAttribute(String name, boolean recurse) {
    if (recurse && !hasAttribute(name)) {
      Desktop desktop = getDesktop();
      if (desktop != null) {
        if (desktop.hasAttribute(name, true))
          return desktop.removeAttribute(name, true);
      }
      return null;
    }
    return removeAttribute(name);
  }
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.