/*
* Copyright 2005 Joe Walker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jsx3.html;
import org.directwebremoting.ScriptBuffer;
import org.directwebremoting.io.Context;
/**
* Represents an HTML text node.
This class is available only when the Charting add-in is enabled.
* @author Joe Walker [joe at getahead dot org]
* @author DRAPGEN - Dwr Reverse Ajax Proxy GENerator
*/
public class Text extends jsx3.html.Tag
{
/**
* All reverse ajax proxies need context to work from
* @param context The script that got us to where we are now
*/
public Text(Context context, String extension)
{
super(context, extension);
}
/**
* The instance initializer.
* @param strText
*/
public Text(String strText)
{
super((Context) null, (String) null);
ScriptBuffer script = new ScriptBuffer();
script.appendCall("new Text", strText);
setInitScript(script);
}
}