|
||||||||||
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.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. |
CharSequence |
getCallbackUrl()
Gets the url that references this handler. |
CharSequence |
getCallbackUrl(boolean onlyTargetActivePage)
Gets the url that references this handler. |
protected Component |
getComponent()
Gets the component that this handler is bound to. |
protected 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)
|
void |
renderHead(IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
---|
afterRender, beforeRender, cleanup, detach, detachModel, exception, isEnabled, isTemporary, onConfigure, onException, rendered |
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 CharSequence getCallbackUrl()
public CharSequence getCallbackUrl(boolean onlyTargetActivePage)
onlyTargetActivePage
- if true the callback to this behavior will be ignore if the page is not the last
one the user accessed
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)
public void renderHead(IHeaderResponse response)
IHeaderContributor
renderHead
in interface IHeaderContributor
renderHead
in class AbstractBehavior
response
- Response objectIHeaderContributor.renderHead(IHeaderResponse)
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 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 |