org.atmosphere.gwt.client.extra
Class WindowSocket
java.lang.Object
org.atmosphere.gwt.client.extra.WindowSocket
public class WindowSocket
- extends Object
- Author:
- p.havelaar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowSocket
public WindowSocket()
exists
public static boolean exists(Window w,
String socketName)
post
public static void post(Window w,
String socketName,
String message)
crossPost
public static void crossPost(Window source,
Window target,
String socketName,
String message)
forcePost
public static void forcePost(Window w,
String socketName,
String message)
- This will create a socket in the target window to receive the message
even if the target window did not bind a WindowSocket yet.
This will create a queue that can be picket up when the target window will bind.
- Parameters:
w - socketName - message -
bind
public void bind(String name)
unbind
public void unbind()
addHandler
public com.google.gwt.event.shared.HandlerRegistration addHandler(WindowSocket.MessageHandler handler)
Copyright © 2013. All Rights Reserved.