Package org.zkoss.zk.ui.event

Examples of org.zkoss.zk.ui.event.EventQueue.publish()


          map.put("title", "Zksample2 Notification");
          map.put("message", "<br>Hello i'm a notification based on ZK-Gritter.<br><br>Many thanks to gekkio for writting the implementation.");
          map.put("autoClosing", false);
          EventQueue eq;
          eq = EventQueues.lookup("ApplicationEventQueue", EventQueues.APPLICATION, false);
          eq.publish(new Event("APPLICATION_NOTIFICATION", null, map));

          // notification with title + message + image
          map = new HashMap<String, Object>(0);
          map.put("title", "WOW !!!");
          map.put("message",
View Full Code Here


          map.put("autoClosing", true);
          map.put("image", "/images/sge.jpg");
          // EventQueues.lookup("ApplicationEventQueue",
          // EventQueues.APPLICATION, true).publish(new
          // Event("APPLICATION_NOTIFICATION", null, map));
          eq.publish(new Event("APPLICATION_NOTIFICATION", null, map));

        }
      });
      this.timer.setRunning(true);
    }
View Full Code Here

 
  @Override
  public void publish(Event event) {
    final EventQueue que = getEventQueue();
    if (que != null) {
      que.publish(event);
    }
  }
 
  protected EventQueue getEventQueue() {
    return _queue;
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.