| java.lang.Object websphinx.Region websphinx.Element websphinx.Link websphinx.FormButton
FormButton | public class FormButton extends Link (Code) | | Button element in an HTML form -- for example, <INPUT TYPE=submit> or <INPUT TYPE=image>.
author: Rob Miller See Also: Page See Also: Link |
Constructor Summary | |
public | FormButton(Tag startTag, Tag endTag, Form form) Make a LinkElement from a start tag and end tag and its containing form. |
Method Summary | |
public Form | getForm() Get the form. | public int | getMethod() Get the method used to access this link. | public URL | getURL() Get the URL. | protected URL | urlFromHref(Tag tag, URL base) Construct the URL for this button, from its start tag and a base URL (for relative references). |
FormButton | public FormButton(Tag startTag, Tag endTag, Form form) throws MalformedURLException(Code) | | Make a LinkElement from a start tag and end tag and its containing form.
The tags and form must be on the same page.
Parameters: startTag - Start tag of button Parameters: endTag - End tag of button (or null if none) Parameters: form - Form containing this button |
getForm | public Form getForm()(Code) | | Get the form.
the form containing this button |
getMethod | public int getMethod()(Code) | | Get the method used to access this link.
GET or POST. |
getURL | public URL getURL()(Code) | | Get the URL.
the URL of the link |
urlFromHref | protected URL urlFromHref(Tag tag, URL base) throws MalformedURLException(Code) | | Construct the URL for this button, from its start tag and a base URL (for relative references).
Parameters: tag - Start tag of button, such as <INPUT TYPE=submit>. Parameters: base - Base URL used for relative references URL to which the button points |
|
|