com.meterware.httpunit
Class SubmitButton

java.lang.Object
  extended bycom.meterware.httpunit.HTMLElementBase
      extended bycom.meterware.httpunit.FormControl
          extended bycom.meterware.httpunit.Button
              extended bycom.meterware.httpunit.SubmitButton
All Implemented Interfaces:
HTMLElement

public class SubmitButton
extends Button

This class represents a submit button in an HTML form.


Field Summary
 
Fields inherited from class com.meterware.httpunit.Button
BUTTON_TYPE, CHECKBOX_TYPE, FILE_TYPE, HIDDEN_TYPE, IMAGE_BUTTON_TYPE, MULTIPLE_TYPE, PASSWORD_TYPE, RADIO_BUTTON_TYPE, RESET_BUTTON_TYPE, SINGLE_TYPE, SUBMIT_BUTTON_TYPE, TEXT_TYPE, TEXTAREA_TYPE, UNDEFINED_TYPE, WITH_ID, WITH_LABEL
 
Method Summary
 void click(int x, int y)
          Performs the action associated with clicking this button after running any 'onClick' script.
protected  void doButtonAction()
          Perform the normal action of this button.
 boolean equals(java.lang.Object o)
           
 java.lang.String getType()
          Return the type of the control, as seen from JavaScript.
 int hashCode()
           
 boolean isImageButton()
          Returns true if this submit button is an image map.
 java.lang.String toString()
           
 
Methods inherited from class com.meterware.httpunit.Button
claimValueIsRequired, click, doOnClickEvent, getAttribute, getAttribute, getClassName, getForm, getID, getName, getNode, getOptionValues, getParentDelegate, getScriptableDelegate, getText, getTitle, getValue, getValueAttribute, isDisabled, isSupportedAttribute, newScriptable, sendOnChangeEvent, sendOnClickEvent, setState, supportAttribute, toggle, verifyButtonEnabled
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public java.lang.String getType()
Description copied from class: com.meterware.httpunit.FormControl
Return the type of the control, as seen from JavaScript.

Overrides:
getType in class Button

isImageButton

public boolean isImageButton()
Returns true if this submit button is an image map.


click

public void click(int x,
                  int y)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Performs the action associated with clicking this button after running any 'onClick' script. For a submit button this typically submits the form.

Throws:
java.io.IOException
org.xml.sax.SAXException
Since:
1.6

doButtonAction

protected void doButtonAction()
                       throws java.io.IOException,
                              org.xml.sax.SAXException
Perform the normal action of this button.

Overrides:
doButtonAction in class Button
Throws:
java.io.IOException
org.xml.sax.SAXException

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

Copyright © 2000-2004 Russell Gold. See license agreement for rights granted.