|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.push.timer.TimerChannelService
public class TimerChannelService
| Constructor Summary | |
|---|---|
TimerChannelService(org.apache.wicket.util.time.Duration duration)
|
|
| Method Summary | |
|---|---|
void |
addChannelListener(org.apache.wicket.Component component,
java.lang.String listenerChannel,
IChannelListener listener)
Adds a behavior to the given component so that it will be notified of ChannelEvents. |
void |
publish(ChannelEvent event)
Publishes a channel event which will be sent to the channel listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerChannelService(org.apache.wicket.util.time.Duration duration)
| Method Detail |
|---|
public void addChannelListener(org.apache.wicket.Component component,
java.lang.String listenerChannel,
IChannelListener listener)
IChannelServiceChannelEvents.
Usually the component if a Page, even if it's not mandatory.
Indeed the components reacting to the event are defined in the IChannelListener,
by calling IChannelTarget methods. Hence any component on the page
can serve as the host of the behavior, as soon as it is visible.
addChannelListener in interface IChannelServicecomponent - the component to which the behavior should be addedlistenerChannel - the channel for which the listener should be notifiedlistener - the IChannelListener which should be notified of ChannelEventspublic void publish(ChannelEvent event)
IChannelService
publish in interface IChannelServiceevent - the event to publish to the listeners
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||