From f38943755277417d3a4e5cf7bfa03b4edce5fbdf Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 20 Oct 2003 16:59:07 +0000 Subject: [PATCH] Let us create submit buttons with extra text, oh so useful for those javascript hackoloas. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1271 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../com/samskivert/velocity/FormTool.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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.