Class AjaxPagingNavigationBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
- org.apache.wicket.ajax.AjaxEventBehavior
-
- org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationBehavior
-
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IRequestListener
,IComponentAwareHeaderContributor
,IClusterable
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.- Since:
- 1.2
- Author:
- Martijn Dashorst
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
-
-
Constructor Summary
Constructors Constructor Description AjaxPagingNavigationBehavior(IAjaxLink owner, IPageable pageable, String event)
Attaches the navigation behavior to the owner link and drives the pageable component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getEvent, onEvent, renderHead, respond, updateAjaxAttributes
-
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IRequestListener
rendersPage
-
-
-
-
Constructor Detail
-
AjaxPagingNavigationBehavior
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.- Parameters:
owner
- the owner ajax linkpageable
- the pageable to updateevent
- the javascript event to bind to (e.g. onclick)
-
-
Method Detail
-
onEvent
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 classAjaxEventBehavior
- Parameters:
target
- the current request handler- See Also:
AjaxEventBehavior.onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
-
onComponentTag
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- Overrides:
onComponentTag
in classAbstractAjaxBehavior
- Parameters:
tag
- the tag that is rendered- See Also:
AbstractAjaxBehavior.onComponentTag(org.apache.wicket.markup.ComponentTag)
-
-