|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
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 |
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 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)
IAjaxCallListener
AjaxRequestAttributes.dataType
getSuccessHandler
in interface IAjaxCallListener
component
- the Component with the Ajax behavior
public CharSequence getFailureHandler(Component component)
IAjaxCallListener
getFailureHandler
in interface IAjaxCallListener
component
- the Component with the Ajax behavior
public CharSequence getBeforeHandler(Component component)
IAjaxCallListener
getBeforeHandler
in interface IAjaxCallListener
component
- the Component with the Ajax behavior
public CharSequence getAfterHandler(Component component)
IAjaxCallListener
getAfterHandler
in interface IAjaxCallListener
component
- 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 IAjaxCallListener
component
- the Component with the Ajax behavior
public CharSequence getPrecondition(Component component)
IAjaxCallListener
false
then the execution of the Ajax call will
be cancelled.
getPrecondition
in interface IAjaxCallListener
public void renderHead(Component component, IHeaderResponse response)
IComponentAwareHeaderContributor
renderHead
in interface IComponentAwareHeaderContributor
component
- 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 |