01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package jsx3.html;
17:
18: import org.directwebremoting.ScriptBuffer;
19: import org.directwebremoting.proxy.ScriptProxy;
20: import org.directwebremoting.proxy.io.Context;
21:
22: /**
23: * Represents an HTML text node.
24:
25: This class is available only when the Charting add-in is enabled.
26: * @author Joe Walker [joe at getahead dot org]
27: * @author DRAPGEN - Dwr Reverse Ajax Proxy GENerator
28: */
29: public class Text extends jsx3.html.Tag {
30: /**
31: * All reverse ajax proxies need context to work from
32: * @param scriptProxy The place we are writing scripts to
33: * @param context The script that got us to where we are now
34: */
35: public Text(Context context, String extension,
36: ScriptProxy scriptProxy) {
37: super (context, extension, scriptProxy);
38: }
39:
40: /**
41: * The instance initializer.
42: * @param strText
43: */
44: public Text(String strText) {
45: super ((Context) null, (String) null, (ScriptProxy) null);
46: ScriptBuffer script = new ScriptBuffer();
47: script.appendCall("new Text", strText);
48: setInitScript(script);
49: }
50:
51: }
|