java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IRequestListener
,IComponentAwareHeaderContributor
,IClusterable
- Direct Known Subclasses:
AbstractDefaultAjaxBehavior
Abstract class for handling Ajax roundtrips. This class serves as a base for javascript specific
implementations, like ones based on Dojo or Scriptaculous, or Wicket's default.
- Author:
- Eelco Hillenius, Ralf Ebert, Igor Vaynberg
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
afterRender
(Component hostComponent) Called when a component that has this behavior coupled was rendered.final void
Bind this handler to the given component.Gets the url that references this handler.protected final Component
Gets the component that this handler is bound to.protected void
onBind()
Called when the component was bound to it's host component.protected void
Called to indicate that the component that has this handler registered has been rendered.final void
onComponentTag
(Component component, ComponentTag tag) Called any time a component that has this behavior registered is rendering the component tag.protected void
Called any time a component that has this handler registered is rendering the component tag.protected void
onUnbind()
Called when the behavior is removed from its component.final void
Notifies the behavior it is removed from the specified componentMethods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
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
onRequest, rendersPage
-
Constructor Details
-
AbstractAjaxBehavior
public AbstractAjaxBehavior()Constructor.
-
-
Method Details
-
bind
Bind this handler to the given component. -
getCallbackUrl
Gets the url that references this handler.- Returns:
- the url that references this handler
-
onComponentTag
Description copied from class:Behavior
Called any time a component that has this behavior registered is rendering the component tag.- Overrides:
onComponentTag
in classBehavior
- Parameters:
component
- the component that renders this tag currentlytag
- the tag that is rendered
-
afterRender
Description copied from class:Behavior
Called when a component that has this behavior coupled was rendered.- Overrides:
afterRender
in classBehavior
- Parameters:
hostComponent
- the component that has this behavior coupled
-
getComponent
Gets the component that this handler is bound to.- Returns:
- the component that this handler is bound to
-
onComponentTag
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- Parameters:
tag
- the tag that is rendered
-
onBind
Called when the component was bound to it's host component. You can get the bound host component by calling getComponent. -
onComponentRendered
Called to indicate that the component that has this handler registered has been rendered. Use this method to do any cleaning up of temporary state -
unbind
Description copied from class:Behavior
Notifies the behavior it is removed from the specified component -
onUnbind
Called when the behavior is removed from its component. The bound host component is still available through getComponent(). The relation to it will be removed right after the finish of the execution of this method.
-