org.apache.wicket.ajax.calldecorator
Class AjaxCallDecorator

java.lang.Object
  extended by org.apache.wicket.ajax.calldecorator.AjaxCallDecorator
All Implemented Interfaces:
java.io.Serializable, IAjaxCallDecorator, IClusterable

public abstract class AjaxCallDecorator
extends java.lang.Object
implements IAjaxCallDecorator

An adapter for implementations of IAjaxCallDecorator.

Since:
1.2
Author:
Igor Vaynberg (ivaynberg)
See Also:
for notes on escaping quotes in scripts, Serialized Form

Field Summary
 
Fields inherited from interface org.apache.wicket.ajax.IAjaxCallDecorator
WICKET_CALL_RESULT_VAR
 
Constructor Summary
AjaxCallDecorator()
           
 
Method Summary
 java.lang.CharSequence decorateOnFailureScript(java.lang.CharSequence script)
          Decorates the onFailure handler script
 java.lang.CharSequence decorateOnSuccessScript(java.lang.CharSequence script)
          Decorates the onSuccess handler script
 java.lang.CharSequence decorateScript(java.lang.CharSequence script)
          Decorates the script that performs the ajax call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxCallDecorator

public AjaxCallDecorator()
Method Detail

decorateScript

public java.lang.CharSequence decorateScript(java.lang.CharSequence script)
Description copied from interface: IAjaxCallDecorator
Decorates the script that performs the ajax call

Specified by:
decorateScript in interface IAjaxCallDecorator
Returns:
decorated script
See Also:
IAjaxCallDecorator.decorateScript(CharSequence)

decorateOnSuccessScript

public java.lang.CharSequence decorateOnSuccessScript(java.lang.CharSequence script)
Description copied from interface: IAjaxCallDecorator
Decorates the onSuccess handler script

Specified by:
decorateOnSuccessScript in interface IAjaxCallDecorator
Returns:
decorated onSuccess handler script
See Also:
IAjaxCallDecorator.decorateOnSuccessScript(CharSequence)

decorateOnFailureScript

public java.lang.CharSequence decorateOnFailureScript(java.lang.CharSequence script)
Description copied from interface: IAjaxCallDecorator
Decorates the onFailure handler script

Specified by:
decorateOnFailureScript in interface IAjaxCallDecorator
Returns:
decorated onFailure handler script
See Also:
IAjaxCallDecorator.decorateOnFailureScript(CharSequence)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.