01: /*
02: * $Id: org.eclipse.jdt.ui.prefs,v 1.6 2006/02/06 08:27:03 ivaynberg Exp $
03: * $Revision: 1.6 $ $Date: 2006/02/06 08:27:03 $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.ajax.calldecorator;
19:
20: import wicket.ajax.IAjaxCallDecorator;
21:
22: /**
23: * An adapter for implementations of {@link IAjaxCallDecorator}.
24: *
25: * @see IAjaxCallDecorator for notes on escaping quotes in scripts
26: *
27: * @since 1.2
28: *
29: * @author Igor Vaynberg (ivaynberg)
30: *
31: */
32: public abstract class AjaxCallDecorator implements IAjaxCallDecorator {
33:
34: /**
35: * @see wicket.ajax.IAjaxCallDecorator#decorateScript(CharSequence)
36: */
37: public CharSequence decorateScript(CharSequence script) {
38: return script;
39: }
40:
41: /**
42: * @see wicket.ajax.IAjaxCallDecorator#decorateOnSuccessScript(java.lang.String)
43: */
44: public CharSequence decorateOnSuccessScript(CharSequence script) {
45: return script;
46: }
47:
48: /**
49: * @see wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(java.lang.String)
50: */
51: public CharSequence decorateOnFailureScript(CharSequence script) {
52: return script;
53: }
54:
55: }
|