diff --git a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java index 311a78e4..18adf3e6 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java @@ -1,5 +1,5 @@ // -// $Id: FormTool.java,v 1.2 2001/11/01 00:22:48 mdb Exp $ +// $Id: FormTool.java,v 1.3 2001/11/01 00:28:30 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -169,6 +169,22 @@ public class FormTool return fixedInput("hidden", name, value, ""); } + /** + * Constructs a checkbox input field with the specified name and + * default value. + */ + public String checkbox (String name, boolean defaultValue) + { + StringBuffer buf = new StringBuffer(); + buf.append(""); + return buf.toString(); + } + /** * Generates an input form field with the specified type, name, * defaultValue and extra attributes.