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
-
FormButton(Tag, Tag, Form)
- Make a LinkElement from a start tag and end tag and its containing form.
-
getForm()
- Get the form.
-
getMethod()
- Get the method used to access this link.
-
getURL()
- Get the URL.
-
urlFromHref(Tag, URL)
- 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
- 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
getURL
public URL getURL()
- Get the URL.
- Returns:
- the URL of the link
- Overrides:
- getURL in class Link
getForm
public Form getForm()
- Get the form.
- Returns:
- the form containing this button
getMethod
public int getMethod()
- Get the method used to access this link.
- Returns:
- GET or POST.
- Overrides:
- getMethod in class Link
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