|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.HTMLElementBase com.meterware.httpunit.FormControl com.meterware.httpunit.Button com.meterware.httpunit.SubmitButton
This class represents a submit button in an HTML form.
Field Summary |
Fields inherited from class com.meterware.httpunit.Button |
WITH_ID, WITH_LABEL |
Fields inherited from class com.meterware.httpunit.FormControl |
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 |
Method Summary | |
protected void |
addValues(com.meterware.httpunit.protocol.ParameterProcessor processor,
java.lang.String characterSet)
addValues if not disabled and pressed |
void |
click(int x,
int y)
Performs the action associated with clicking this button after running any 'onClick' script. |
protected void |
doButtonAction(int x,
int y)
do the button Action |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getType()
Return the type of the control, as seen from JavaScript. |
protected java.lang.String[] |
getValues()
Returns the current value(s) associated with this control. |
int |
hashCode()
|
static boolean |
isAllowUnnamedImageButton()
|
boolean |
isFake()
getter for the fake flag Returns true for synthetic submit buttons, created by HttpUnit in forms that contain no submit buttons, or used during WebForm.submitNoButton() call. |
boolean |
isImageButton()
Returns true if this submit button is an image map. |
boolean |
isValidImageButton()
return whether this is a validImageButton |
java.lang.String |
positionParameterName(java.lang.String direction)
return the name of the positionParameter for this button (if this is an image Button) |
static void |
setAllowUnnamedImageButton(boolean allowUnnamedImageButton)
|
void |
throwDisabledException()
throw an exception that I'm disbled |
java.lang.String |
toString()
|
Methods inherited from class com.meterware.httpunit.Button |
click, doButtonAction, doOnClickSequence, getParentDelegate, getValue, isDisabled, newScriptable, rememberEnableState, verifyButtonEnabled |
Methods inherited from class com.meterware.httpunit.FormControl |
claimUniqueValue, claimValueIsRequired, doEvent, doEventScript, doOnChangeEvent, doOnClickEvent, doOnMouseDownEvent, doOnMouseUpEvent, emptyIfNull, getAttribute, getAttribute, getClassName, getDisplayedOptions, getForm, getID, getName, getNode, getOptionValues, getScriptingHandler, getTagName, getText, getTitle, getValueAttribute, handleEvent, isHidden, isMultiValued, isReadOnly, isSupportedAttribute, removeAttribute, reset, sendOnChangeEvent, sendOnClickEvent, sendOnMouseDownEvent, sendOnMouseUpEvent, setAttribute, setState, setValueAttribute, supportAttribute, toggle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getType()
FormControl
getType
in class Button
public boolean isImageButton()
public void click(int x, int y) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected void doButtonAction(int x, int y) throws java.io.IOException, org.xml.sax.SAXException
doButtonAction
in class Button
x
- - x coordinatey
- - y coordinate
java.io.IOException
org.xml.sax.SAXException
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object o)
public boolean isFake()
WebForm.submitNoButton()
call.
protected java.lang.String[] getValues()
getValues
in class Button
public static boolean isAllowUnnamedImageButton()
public static void setAllowUnnamedImageButton(boolean allowUnnamedImageButton)
allowUnnamedImageButton
- the allowUnnamedImageButton to setpublic boolean isValidImageButton()
public java.lang.String positionParameterName(java.lang.String direction)
direction
- e.g. "x" or "y"
protected void addValues(com.meterware.httpunit.protocol.ParameterProcessor processor, java.lang.String characterSet) throws java.io.IOException
addValues
in class Button
processor
- - the ParameterProcessor usedcharacterSet
- - the active character set
java.io.IOException
- if addValues failspublic void throwDisabledException()
Button
throwDisabledException
in class Button
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |