|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AbstractAjaxTimerBehavior
public abstract class AbstractAjaxTimerBehavior
A behavior that generates an AJAX update callback at a regular interval.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
INDICATOR |
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
AbstractAjaxTimerBehavior(Duration updateInterval)
Construct. |
|
| Method Summary | |
|---|---|
protected java.lang.CharSequence |
getCallbackScript()
|
protected java.lang.String |
getJsTimeoutCall(Duration updateInterval)
|
protected java.lang.CharSequence |
getPreconditionScript()
|
Duration |
getUpdateInterval()
Returns the update interval |
protected boolean |
onlyTargetActivePage()
|
protected abstract void |
onTimer(AjaxRequestTarget target)
Listener method for the AJAX timer event. |
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
protected void |
respond(AjaxRequestTarget target)
|
protected void |
setUpdateInterval(Duration updateInterval)
Sets the update interval duration. |
void |
stop()
Stops the timer |
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannelName, getFailureScript, getSuccessScript, onBind, onRequest, throttleScript |
| Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
|---|
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution |
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
|---|
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onException, rendered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAjaxTimerBehavior(Duration updateInterval)
updateInterval - Duration between AJAX callbacks| Method Detail |
|---|
public final void stop()
protected final void setUpdateInterval(Duration updateInterval)
onTimer(AjaxRequestTarget) method.
updateInterval - public final Duration getUpdateInterval()
public void renderHead(IHeaderResponse response)
IHeaderContributor
renderHead in interface IHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorresponse - Response objectAbstractAjaxBehavior.renderHead(org.apache.wicket.markup.html.IHeaderResponse)protected final java.lang.String getJsTimeoutCall(Duration updateInterval)
updateInterval - Duration between AJAX callbacks
protected java.lang.CharSequence getCallbackScript()
getCallbackScript in class AbstractDefaultAjaxBehaviorprotected java.lang.CharSequence getPreconditionScript()
getPreconditionScript in class AbstractDefaultAjaxBehaviorAbstractDefaultAjaxBehavior.getPreconditionScript()protected boolean onlyTargetActivePage()
protected final void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviortarget - The AJAX targetAbstractDefaultAjaxBehavior.respond(org.apache.wicket.ajax.AjaxRequestTarget)protected abstract void onTimer(AjaxRequestTarget target)
target - The request target
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||