package org.apache.wicket.behavior;
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(s):
- Eelco Hillenius
- Ralf Ebert
- Igor Vaynberg
the component that this handler is bound to.
Bind this handler to the given component.
- Parameters:
hostComponent
the component to bind to
if (hostComponent == null)
"multiple components; it is already attached to component " + component +
", but component " + hostComponent + " wants to be attached too");
Gets the url that references this handler.
- Returns:
- the url that references this handler
Gets the url that references this handler.
- Parameters:
onlyTargetActivePage
if true the callback to this behavior will be ignore if the page is not the last
one the user accessed- Returns:
- the url that references this handler
"Behavior must be bound to a component to create the URL");
if (onlyTargetActivePage)
Gets the component that this handler is bound to.
- Returns:
- the component that this handler is bound to
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
Called when the component was bound to it's host component. You can get the bound host
component by calling getComponent.
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