Class browser.FormTagRef
All Packages This Package Previous Next
Class browser.FormTagRef
java.lang.Object
|
+----net.www.html.TagRef
|
+----browser.WRTagRef
|
+----browser.FormTagRef
-
public class
FormTagRef
-
extends WRTagRef
An instance of class FormTagRef is created for each occurrence of
a <form> tag in an html document. It serves as the definition of
an html FORM object as it appears in an html document.
-
Version:
-
1.15, 07 Apr 1995
-
Author:
-
Jonathan Payne
-
FormTagRef(Tag, int, boolean)
-
-
addInputItem(FormItem)
-
Adds an input item to this form.
-
apply(WRFormatter)
-
-
getInputItem()
-
Get the current select tag or return null if we're currently
not processing one.
-
getRadioGroup(String)
-
Returns the radio group associated with the specified name.
-
reset()
-
Resets all the form input items to their default value.
-
setInputItem(TagRef)
-
Set the current input item tag.
-
submit()
-
Submits this form.
FormTagRef
public FormTagRef(Tag t,
int pos,
boolean isEnd)
apply
public void apply(WRFormatter f)
addInputItem
public void addInputItem(FormItem item)
-
Adds an input item to this form. This is called by input
items which are created as a result of <input> tags that
appear in html documents.
getRadioGroup
public RadioGroup getRadioGroup(String name)
-
Returns the radio group associated with the specified name.
If there is no RadioGroup by that name, one is created.
setInputItem
public void setInputItem(TagRef r)
-
Set the current input item tag.
-
Throws: Exception
-
if there's already a select tag
getInputItem
public TagRef getInputItem()
-
Get the current select tag or return null if we're currently
not processing one.
submit
public void submit()
-
Submits this form. It walks through each input item asking
it for its FormString. Some form items may choose not to
return a value.
reset
public void reset()
-
Resets all the form input items to their default value.
All Packages This Package Previous Next