public static class TimerChannelBehavior.TimerPushTarget extends Object implements org.wicketstuff.chat.channel.api.IPushTarget
IPushTarget implementation which enqueue DelayedMethodCallList, also
called triggers, for a TimerChannelBehavior identified by its id.
TimerPushTarget are thread safe, and can be used from any thread. Since it is not
serializable, it is not intended to be stored in a wicket component.| Constructor and Description |
|---|
TimerPushTarget(org.apache.wicket.Application application,
String id,
org.apache.wicket.util.time.Duration timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(org.apache.wicket.Component component)
Adds the component.
|
void |
addComponent(org.apache.wicket.Component component,
String markupId)
Adds the component.
|
void |
appendJavaScript(String javascript)
Append java script.
|
void |
focusComponent(org.apache.wicket.Component component)
Focus component.
|
boolean |
isConnected() |
void |
prependJavaScript(String javascript)
Prepend java script.
|
void |
trigger()
Trigger.
|
public TimerPushTarget(org.apache.wicket.Application application,
String id,
org.apache.wicket.util.time.Duration timeout)
public void addComponent(org.apache.wicket.Component component)
addComponent in interface org.wicketstuff.chat.channel.api.IChannelTargetcomponent - the componentpublic void addComponent(org.apache.wicket.Component component,
String markupId)
addComponent in interface org.wicketstuff.chat.channel.api.IChannelTargetcomponent - the componentmarkupId - the markup idpublic void appendJavaScript(String javascript)
appendJavaScript in interface org.wicketstuff.chat.channel.api.IChannelTargetjavascript - the javascriptpublic void focusComponent(org.apache.wicket.Component component)
focusComponent in interface org.wicketstuff.chat.channel.api.IChannelTargetcomponent - the componentpublic boolean isConnected()
isConnected in interface org.wicketstuff.chat.channel.api.IPushTargetpublic void prependJavaScript(String javascript)
prependJavaScript in interface org.wicketstuff.chat.channel.api.IChannelTargetjavascript - the javascriptpublic void trigger()
trigger in interface org.wicketstuff.chat.channel.api.IPushTargetCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.