Added fixedTextarea().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1588 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2005-02-11 18:58:06 +00:00
parent 066260a3cb
commit 48be8ab71a
@@ -329,6 +329,15 @@ public class FormTool
* parameters, and default text.
*/
public String textarea (String name, String extra, Object defaultValue)
{
return fixedTextarea(name, extra, getValue(name, defaultValue));
}
/**
* Construct a text area with the specified name, optional extra parameters
* and the specified text.
*/
public String fixedTextarea (String name, String extra, Object value)
{
StringBuffer buf = new StringBuffer();
buf.append("<textarea name=\"").append(name).append("\"");
@@ -336,7 +345,7 @@ public class FormTool
buf.append(" ").append(extra);
}
buf.append(">");
buf.append(getValue(name, defaultValue));
buf.append(value);
buf.append("</textarea>");
return buf.toString();
}