|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAjaxCallListener
Interface used to listen at the most important points when Wicket performs an Ajax callback.
Ajax call listeners are potential contributors to the page header by implementing
IComponentAwareHeaderContributor
. E.g. the JavaScript used
by the listener may depend on some JavaScript library, by implementing
IComponentAwareHeaderContributor
interface
they can assure it will be loaded.
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. |
Method Detail |
---|
CharSequence getSuccessHandler(Component component)
AjaxRequestAttributes.dataType
component
- the Component with the Ajax behavior
CharSequence getFailureHandler(Component component)
component
- the Component with the Ajax behavior
CharSequence getBeforeHandler(Component component)
component
- the Component with the Ajax behavior
CharSequence getAfterHandler(Component component)
component
- the Component with the Ajax behavior
AjaxRequestAttributes.setAsynchronous(boolean)
)
then this JavaScript will be executed after the
complete handler.CharSequence getCompleteHandler(Component component)
component
- the Component with the Ajax behavior
CharSequence getPrecondition(Component component)
false
then the execution of the Ajax call will
be cancelled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |