public class AjaxClientInfoBehavior extends AbstractAjaxTimerBehavior
INDICATOR
Constructor and Description |
---|
AjaxClientInfoBehavior()
Constructor.
|
AjaxClientInfoBehavior(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, stop
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, unbind
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rendersPage
public AjaxClientInfoBehavior()
public AjaxClientInfoBehavior(Duration duration)
duration
.duration
- the duration of the client info behaviorprotected final void onTimer(AjaxRequestTarget target)
AbstractAjaxTimerBehavior
onTimer
in class AbstractAjaxTimerBehavior
target
- 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)
AbstractDefaultAjaxBehavior
updateAjaxAttributes
in class AbstractDefaultAjaxBehavior
public void renderHead(Component component, IHeaderResponse response)
Behavior
renderHead
in interface IComponentAwareHeaderContributor
renderHead
in class AbstractAjaxTimerBehavior
component
- 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
WebClientInfo
AjaxClientInfoBehavior
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.