|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.ajax.attributes.AjaxCallListener
public class AjaxCallListener
An adapter for implementations of IAjaxCallListener.
| Constructor Summary | |
|---|---|
AjaxCallListener()
|
|
| Method Summary | |
|---|---|
CharSequence |
getAfterHandler(Component component)
The JavaScript that will be executed after the Ajax call. |
CharSequence |
getBeforeHandler(Component component)
The JavaScript that will be executed before the Ajax call, as early as possible. |
CharSequence |
getBeforeSendHandler(Component component)
The JavaScript that will be executed right before make of the the Ajax call, only if all preconditions pass. |
CharSequence |
getCompleteHandler(Component component)
The JavaScript that will be executed after both successful and unsuccessful return of the Ajax call. |
CharSequence |
getFailureHandler(Component component)
The JavaScript that will be executed after unsuccessful return of the Ajax call. |
CharSequence |
getPrecondition(Component component)
A JavaScript function that is invoked before the request executes. |
CharSequence |
getSuccessHandler(Component component)
The JavaScript that will be executed after successful return of the Ajax call. |
AjaxCallListener |
onAfter(CharSequence after)
|
AjaxCallListener |
onBefore(CharSequence before)
|
AjaxCallListener |
onBeforeSend(CharSequence beforeSend)
|
AjaxCallListener |
onComplete(CharSequence complete)
|
AjaxCallListener |
onFailure(CharSequence failure)
|
AjaxCallListener |
onPrecondition(CharSequence precondition)
|
AjaxCallListener |
onSuccess(CharSequence success)
|
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component-aware wants to contribute to the head section. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AjaxCallListener()
| Method Detail |
|---|
public AjaxCallListener onBefore(CharSequence before)
public AjaxCallListener onBeforeSend(CharSequence beforeSend)
public AjaxCallListener onAfter(CharSequence after)
public AjaxCallListener onSuccess(CharSequence success)
public AjaxCallListener onFailure(CharSequence failure)
public AjaxCallListener onComplete(CharSequence complete)
public AjaxCallListener onPrecondition(CharSequence precondition)
public CharSequence getSuccessHandler(Component component)
IAjaxCallListenerAjaxRequestAttributes.dataType
getSuccessHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
public CharSequence getFailureHandler(Component component)
IAjaxCallListener
getFailureHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
public CharSequence getBeforeHandler(Component component)
IAjaxCallListener
getBeforeHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
public CharSequence getBeforeSendHandler(Component component)
IAjaxCallListener
getBeforeSendHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
public CharSequence getAfterHandler(Component component)
IAjaxCallListener
getAfterHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
AjaxRequestAttributes.setAsynchronous(boolean))
then this JavaScript will be executed after the
complete handler.public CharSequence getCompleteHandler(Component component)
IAjaxCallListener
getCompleteHandler in interface IAjaxCallListenercomponent - the Component with the Ajax behavior
public CharSequence getPrecondition(Component component)
IAjaxCallListenerfalse then the execution of the Ajax call will
be cancelled.
The script will be executed in a function that receives the following parameters:
getPrecondition in interface IAjaxCallListener
public void renderHead(Component component,
IHeaderResponse response)
IComponentAwareHeaderContributor
renderHead in interface IComponentAwareHeaderContributorcomponent - component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse - Response object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||