|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractHeaderContributor
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 |
bind(Component hostComponent)
Bind this handler to the given component. |
java.lang.CharSequence |
getCallbackUrl()
Gets the url that references this handler. |
protected Component |
getComponent()
Gets the component that this handler is bound to. |
protected java.lang.String |
getImplementationId()
|
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. |
void |
onRendered(Component hostComponent)
Called when a component that has this behavior coupled was rendered. |
protected void |
onRenderHeadContribution(Response response)
|
protected void |
onRenderHeadInitContribution(Response response)
|
Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor |
---|
renderHead, returnRelativePath |
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
---|
afterRender, beforeRender, cleanup, detach, exception, isEnabled, isTemporary, onException, unbind |
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 interface IBehavior
bind
in class AbstractBehavior
hostComponent
- the component to bind toIBehavior.bind(org.apache.wicket.Component)
public java.lang.CharSequence getCallbackUrl()
public final void onComponentTag(Component component, ComponentTag tag)
IBehavior
onComponentTag
in interface IBehavior
onComponentTag
in class AbstractBehavior
component
- the component that renders this tag currentlytag
- the tag that is renderedIBehavior.onComponentTag(org.apache.wicket.Component,
org.apache.wicket.markup.ComponentTag)
public final void onRendered(Component hostComponent)
AbstractBehavior
onRendered
in class AbstractBehavior
hostComponent
- the component that has this behavior coupledAbstractBehavior.onRendered(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)
IBehavior
getStatelessHint
in interface IBehavior
getStatelessHint
in class AbstractBehavior
component
- the component that has this behavior coupled.
AbstractBehavior.getStatelessHint(Component)
protected final java.lang.String getImplementationId()
protected final void onRenderHeadContribution(Response response)
response
- protected final void onRenderHeadInitContribution(Response response)
response
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |