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
This commit is contained in:
@@ -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
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -139,6 +139,15 @@ public class FormTool
|
|||||||
return fixedInput("submit", "submit", text, "");
|
return fixedInput("submit", "submit", text, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a submit element with the name <code>submit</code> 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
|
* Constructs a submit element with the specified parameter name and
|
||||||
* the specified button text.
|
* the specified button text.
|
||||||
@@ -148,6 +157,15 @@ public class FormTool
|
|||||||
return fixedInput("submit", name, text, "");
|
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
|
* Constructs a image submit element with the specified parameter name
|
||||||
* and image path.
|
* and image path.
|
||||||
|
|||||||
Reference in New Issue
Block a user