Allow arbitrary objects as values.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1579 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2005-01-25 05:41:47 +00:00
parent 573ce7859b
commit 2db3780ccf
@@ -95,7 +95,7 @@ public class FormTool
* Creates a text input field with the specified name and the * Creates a text input field with the specified name and the
* specified extra arguments and the specified value. * specified extra arguments and the specified value.
*/ */
public String fixedText (String name, String extra, String value) public String fixedText (String name, String extra, Object value)
{ {
return fixedInput("text", name, value, extra); return fixedInput("text", name, value, extra);
} }
@@ -347,7 +347,7 @@ public class FormTool
* parameters but is always the value supplied. * parameters but is always the value supplied.
*/ */
protected String fixedInput ( protected String fixedInput (
String type, String name, String value, String extra) String type, String name, Object value, String extra)
{ {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("<input type=\"").append(type).append("\""); buf.append("<input type=\"").append(type).append("\"");