adds a multiple choice element to this form with options from the specified
array of values
To better control the options use addChoice(HtmlChoice choice);
public void addTextField(String name,
String attribs)
adds a text field with the given name and other attributes
to this form. Is equivalent to:
addTag("input", "type=text name=" + name + ' ' + attribs)
ie. the code:
addTextField("name", "size=30 maxlength=30 value=Your name here");
would add this line to the html document
Adds a password field with the given name to the form.
a password field is identical to a text field except that the
the browser echo's some mask character to the user when they
type instead of the text that they type.
is equivalent to
addTag("input", "type=password name=" + name);
public void addPasswordField(String name,
String attribs)
Adds a password field with the given name and other attributes to
the form.
is equivalent to
addTag("input", "type=password name=" + name + ' ' + attribs);
public void addRadioButton(String name,
String value)
Adds a radio button to the form.
Multiple radio buttons added with the same name are interpreted
by the browser to be in the same group and only one of them can
be checked at any given time.
equivalent to:
addTag("input", "type=radio name=" + name + " value=" + value);
Parameters:
name - The name of this group of radio buttons.
value - Comma delimmited list of values for radio buttons in this group.
public void addChoice(String name,
String choices)
adds a multiple choice element to this form with options from the specified
array of values
To better control the options use addChoice(HtmlChoice choice);
Parameters:
name - the name attribute for the select tag
choices - comma delimmited list of choices for this element.
adds a multiple choice element to this form with options from the specified
array of values.
To better control the options use addChoice(HtmlChoice choice);
Parameters:
name - the name attribute for the select tag
attribs - other attributes of the select tag
choices - comma delimmited list of choices for this element.