diff --git a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java index 9f7b35d0..7a79a682 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.10 2003/10/15 00:16:17 eric Exp $ +// $Id: FormTool.java,v 1.11 2003/10/20 16:59:07 eric Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -139,6 +139,15 @@ public class FormTool return fixedInput("submit", "submit", text, ""); } + /** + * Constructs a submit element with the name submit and + * the specified button text with the specified extra text. + */ + public String submitExtra (String text, String extra) + { + return fixedInput("submit", "submit", text, extra); + } + /** * Constructs a submit element with the specified parameter name and * the specified button text. @@ -148,6 +157,15 @@ public class FormTool return fixedInput("submit", name, text, ""); } + /** + * Constructs a submit element with the specified parameter name and + * the specified button text with the specified extra text. + */ + public String submitExtra (String name, String text, String extra) + { + return fixedInput("submit", name, text, extra); + } + /** * Constructs a image submit element with the specified parameter name * and image path.