public class AjaxClientInfoBehavior extends AbstractAjaxTimerBehavior
INDICATOR| Constructor and Description |
|---|
AjaxClientInfoBehavior()
Constructor.
|
AjaxClientInfoBehavior(org.apache.wicket.util.time.Duration duration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected WebClientInfo |
newWebClientInfo(RequestCycle requestCycle) |
protected void |
onClientInfo(AjaxRequestTarget target,
WebClientInfo clientInfo)
A callback method invoked when the client info is collected.
|
static AjaxClientInfoBehavior |
onClientInfo(org.danekja.java.util.function.serializable.SerializableBiConsumer<AjaxRequestTarget,WebClientInfo> onClientInfo)
Creates an
AjaxClientInfoBehavior based on lambda expressions |
protected void |
onTimer(AjaxRequestTarget target)
Listener method for the AJAX timer event.
|
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.
|
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
Gives a chance to the specializations to modify the attributes.
|
getTimerId, getUpdateInterval, isStopped, onRemove, onTimer, onUnbind, respond, restart, setUpdateInterval, shouldTrigger, stopfindIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributesafterRender, 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 AjaxClientInfoBehavior()
public AjaxClientInfoBehavior(org.apache.wicket.util.time.Duration duration)
duration.duration - the duration of the client info behaviorprotected final void onTimer(AjaxRequestTarget target)
AbstractAjaxTimerBehavioronTimer in class AbstractAjaxTimerBehaviortarget - The request targetprotected WebClientInfo newWebClientInfo(RequestCycle requestCycle)
protected void onClientInfo(AjaxRequestTarget target, WebClientInfo clientInfo)
target - The Ajax request handlerclientInfo - The collected info for the clientprotected void updateAjaxAttributes(AjaxRequestAttributes attributes)
AbstractDefaultAjaxBehaviorupdateAjaxAttributes in class AbstractDefaultAjaxBehaviorpublic void renderHead(Component component, IHeaderResponse response)
BehaviorrenderHead in interface IComponentAwareHeaderContributorrenderHead in class AbstractAjaxTimerBehaviorcomponent - component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse - Response objectBehavior.renderHead(Component,
org.apache.wicket.markup.head.IHeaderResponse)public static AjaxClientInfoBehavior onClientInfo(org.danekja.java.util.function.serializable.SerializableBiConsumer<AjaxRequestTarget,WebClientInfo> onClientInfo)
AjaxClientInfoBehavior based on lambda expressionsonClientInfo - the SerializableBiConsumer which accepts the AjaxRequestTarget and the
WebClientInfoAjaxClientInfoBehaviorCopyright © 2006–2018 Apache Software Foundation. All rights reserved.