Class AjaxPagingNavigationBehavior

  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationBehavior
All Implemented Interfaces:
Serializable, IBehavior, IBehaviorListener, IComponentConfigurationBehavior, IClusterable, IRequestListener, IHeaderContributor

public class AjaxPagingNavigationBehavior
extends AjaxEventBehavior

Ajax behavior for the paging navigation links. This behavior can only have one parent: the link it is attached to.

Martijn Dashorst
See Also:
Serialized Form

Field Summary
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
Constructor Summary
AjaxPagingNavigationBehavior(IAjaxLink owner, IPageable pageable, String event)
          Attaches the navigation behavior to the owner link and drives the pageable component.
Method Summary
protected  IAjaxCallDecorator getAjaxCallDecorator()
protected  void onComponentTag(ComponentTag tag)
          Called any time a component that has this handler registered is rendering the component tag.
protected  void onEvent(AjaxRequestTarget target)
          The ajax event handler.
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
generateCallbackScript, getEvent, getEventHandler, onCheckEvent, respond, setThrottleDelay
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getCallbackScript, getCallbackScript, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, renderHead, throttleScript
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
bind, getCallbackUrl, getCallbackUrl, getComponent, getImplementationId, getStatelessHint, onComponentRendered, onComponentTag, onRendered, onRenderHeadContribution, onRenderHeadInitContribution
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onConfigure, onException, rendered
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AjaxPagingNavigationBehavior(IAjaxLink owner,
                                    IPageable pageable,
                                    String event)
Attaches the navigation behavior to the owner link and drives the pageable component. The behavior is attached to the markup event.

owner - the owner ajax link
pageable - the pageable to update
event - the javascript event to bind to (e.g. onclick)
Method Detail


protected void onEvent(AjaxRequestTarget target)
The ajax event handler. This will execute the event, and update the following components, when present: the navigator the owner link is part of, or when the link is a stand alone component, the link itself. Also the pageable's parent markup container is updated, so its contents can be replaced with the newly generated pageable.

Specified by:
onEvent in class AjaxEventBehavior
See Also:


protected IAjaxCallDecorator getAjaxCallDecorator()
getAjaxCallDecorator in class AbstractDefaultAjaxBehavior
ajax call decorator used to decorate the call generated by this behavior or null for none
See Also:


protected void onComponentTag(ComponentTag tag)
Description copied from class: AbstractAjaxBehavior
Called any time a component that has this handler registered is rendering the component tag. Use this method e.g. to bind to javascript event handlers of the tag

onComponentTag in class AjaxEventBehavior
tag - the tag that is rendered
See Also:

Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.