org.wicketstuff.push
Class DummyChannelListener
java.lang.Object
org.wicketstuff.push.DummyChannelListener
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, IChannelListener
public class DummyChannelListener
- extends java.lang.Object
- implements IChannelListener
Convenience class for use with JavaScriptChannelEvents.
Use this channellistener when you're creating javascript-only pushes to the client
using the events of JavaScriptChannelEvent. As no roundtrip will be made,
this class's onEvent method never gets called.
- Author:
- Michael Sparer (msparer)
- See Also:
- Serialized Form
|
Method Summary |
void |
onEvent(java.lang.String channel,
java.util.Map<java.lang.String,java.lang.String> datas,
IChannelTarget target)
Method called when an event is triggered on a channel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyChannelListener
public DummyChannelListener()
onEvent
public void onEvent(java.lang.String channel,
java.util.Map<java.lang.String,java.lang.String> datas,
IChannelTarget target)
- Description copied from interface:
IChannelListener
- Method called when an event is triggered on a channel.
Implementations usually use the
IChannelTarget
to update the web page according to the event triggered.
- Specified by:
onEvent in interface IChannelListener
- Parameters:
channel - channel which be used to listen to eventdatas - data sent by the eventtarget - see IChannelTarget
Copyright © 2010. All Rights Reserved.