org.apache.wicket.ajax
Class AjaxSelfUpdatingTimerBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AbstractAjaxTimerBehavior
org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable
public class AjaxSelfUpdatingTimerBehavior
- extends AbstractAjaxTimerBehavior
Automatically re-renders the component it is attached to via AJAX at a regular interval.
- Since:
- 1.2
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxSelfUpdatingTimerBehavior
public AjaxSelfUpdatingTimerBehavior(Duration updateInterval)
- Construct.
- Parameters:
updateInterval
- Duration between AJAX callbacks
onTimer
protected final void onTimer(AjaxRequestTarget target)
- Description copied from class:
AbstractAjaxTimerBehavior
- Listener method for the AJAX timer event.
- Specified by:
onTimer
in class AbstractAjaxTimerBehavior
- Parameters:
target
- The request target- See Also:
AbstractAjaxTimerBehavior.onTimer(AjaxRequestTarget)
onPostProcessTarget
protected void onPostProcessTarget(AjaxRequestTarget target)
- Give the subclass a chance to add something to the target, like a javascript effect call.
Called after the hosting component has been added to the target.
- Parameters:
target
- The AJAX target
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.