All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.FormButton

java.lang.Object
   |
   +----websphinx.Region
           |
           +----websphinx.Element
                   |
                   +----websphinx.Link
                           |
                           +----websphinx.FormButton

public class FormButton
extends Link
Button element in an HTML form -- for example, <INPUT TYPE=submit> or <INPUT TYPE=image>.

See Also:
Page, Link

Constructor Index

 o FormButton(Tag, Tag, Form)
Make a LinkElement from a start tag and end tag and its containing form.

Method Index

 o getForm()
Get the form.
 o getMethod()
Get the method used to access this link.
 o getURL()
Get the URL.
 o urlFromHref(Tag, URL)
Construct the URL for this button, from its start tag and a base URL (for relative references).

Constructors

 o FormButton
 public FormButton(Tag startTag,
                   Tag endTag,
                   Form form) throws MalformedURLException
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
endTag - End tag of button (or null if none)
form - Form containing this button

Methods

 o getURL
 public URL getURL()
Get the URL.

Returns:
the URL of the link
Overrides:
getURL in class Link
 o getForm
 public Form getForm()
Get the form.

Returns:
the form containing this button
 o getMethod
 public int getMethod()
Get the method used to access this link.

Returns:
GET or POST.
Overrides:
getMethod in class Link
 o urlFromHref
 protected URL urlFromHref(Tag tag,
                           URL base) throws MalformedURLException
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>.
base - Base URL used for relative references
Returns:
URL to which the button points
Overrides:
urlFromHref in class Link

All Packages  Class Hierarchy  This Package  Previous  Next  Index