|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
public abstract class AbstractAjaxBehavior
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.
| Field Summary |
|---|
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
AbstractAjaxBehavior()
Construct. |
|
| Method Summary | |
|---|---|
void |
afterRender(Component hostComponent)
Called when a component that has this behavior coupled was rendered. |
void |
bind(Component hostComponent)
Bind this handler to the given component. |
CharSequence |
getCallbackUrl()
Gets the url that references this handler. |
protected Component |
getComponent()
Gets the component that this handler is bound to. |
boolean |
getStatelessHint(Component component)
This method returns false if the behavior generates a callback url (for example ajax behaviors) |
protected void |
onBind()
Called when the component was bound to it's host component. |
protected void |
onComponentRendered()
Called to indicate that the component that has this handler registered has been rendered. |
void |
onComponentTag(Component component,
ComponentTag tag)
Called any time a component that has this behavior registered is rendering the component tag. |
protected void |
onComponentTag(ComponentTag tag)
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. |
void |
unbind(Component component)
Notifies the behavior it is removed from the specified component |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, 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.behavior.IBehaviorListener |
|---|
onRequest |
| Constructor Detail |
|---|
public AbstractAjaxBehavior()
| Method Detail |
|---|
public final void bind(Component hostComponent)
bind in class BehaviorhostComponent - the component to bind topublic CharSequence getCallbackUrl()
public final void onComponentTag(Component component,
ComponentTag tag)
Behavior
onComponentTag in class Behaviorcomponent - the component that renders this tag currentlytag - the tag that is renderedBehavior.onComponentTag(org.apache.wicket.Component,
org.apache.wicket.markup.ComponentTag)public final void afterRender(Component hostComponent)
Behavior
afterRender in class BehaviorhostComponent - the component that has this behavior coupledBehavior.afterRender(org.apache.wicket.Component)protected final Component getComponent()
protected void onComponentTag(ComponentTag tag)
tag - the tag that is renderedprotected void onBind()
protected void onComponentRendered()
public boolean getStatelessHint(Component component)
Behavior
getStatelessHint in class Behaviorcomponent - the component that has this behavior coupled.
Behavior.getStatelessHint(Component)public final void unbind(Component component)
Behavior
unbind in class Behaviorcomponent - the component this behavior is unbound fromprotected void onUnbind()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||