public class AjaxSelfUpdatingTimerBehavior extends AbstractAjaxTimerBehavior
onTimer(AjaxRequestTarget),
onPostProcessTarget(AjaxRequestTarget),
Serialized FormINDICATOR| Constructor and Description |
|---|
AjaxSelfUpdatingTimerBehavior(org.apache.wicket.util.time.Duration updateInterval)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onPostProcessTarget(AjaxRequestTarget target)
Give the subclass a chance to add something to the target, like a javascript effect call.
|
static AjaxSelfUpdatingTimerBehavior |
onSelfUpdate(org.apache.wicket.util.time.Duration interval,
org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> onTimer)
Creates an
AbstractAjaxTimerBehavior based on lambda expressions |
protected void |
onTimer(AjaxRequestTarget target)
Listener method for the AJAX timer event.
|
getTimerId, getUpdateInterval, isStopped, onRemove, onTimer, onUnbind, renderHead, respond, restart, setUpdateInterval, shouldTrigger, stopfindIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, unbindbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrendersPagepublic AjaxSelfUpdatingTimerBehavior(org.apache.wicket.util.time.Duration updateInterval)
updateInterval - Duration between AJAX callbacksprotected final void onTimer(AjaxRequestTarget target)
AbstractAjaxTimerBehavioronTimer in class AbstractAjaxTimerBehaviortarget - The request targetAbstractAjaxTimerBehavior.onTimer(AjaxRequestTarget)protected void onPostProcessTarget(AjaxRequestTarget target)
target - The AJAX targetpublic static AjaxSelfUpdatingTimerBehavior onSelfUpdate(org.apache.wicket.util.time.Duration interval, org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> onTimer)
AbstractAjaxTimerBehavior based on lambda expressionsinterval - the interval for the self updateonTimer - the SerializableConsumer which accepts the AjaxRequestTargetAbstractAjaxTimerBehaviorCopyright © 2006–2018 Apache Software Foundation. All rights reserved.