|
||||||||||
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
A button in a form.
Field Summary | |
static HTMLElementPredicate |
WITH_ID
|
static HTMLElementPredicate |
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)
|
void |
click()
Performs the action associated with clicking this button after running any 'onClick' script. |
protected void |
doButtonAction()
Perform the normal action of this button. |
protected void |
doButtonAction(int x,
int y)
Perform the normal action of this button. |
protected boolean |
doOnClickSequence(int x,
int y)
the onClickSequence for this button |
ScriptableDelegate |
getParentDelegate()
Returns the scriptable delegate which can provide the scriptable delegate for this element. |
java.lang.String |
getType()
Return the type of the control, as seen from JavaScript. |
java.lang.String |
getValue()
Returns the value associated with this button. |
protected java.lang.String[] |
getValues()
Returns the current value(s) associated with this control. |
boolean |
isDisabled()
Returns true if this button is disabled, meaning that it cannot be clicked. |
ScriptableDelegate |
newScriptable()
Creates and returns a scriptable object for this control. |
void |
rememberEnableState()
remember wether the button was enabled |
void |
throwDisabledException()
throw an exception that I'm disbled |
protected void |
verifyButtonEnabled()
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final HTMLElementPredicate WITH_ID
public static final HTMLElementPredicate WITH_LABEL
Method Detail |
public java.lang.String getType()
FormControl
getType
in class FormControl
public java.lang.String getValue()
protected boolean doOnClickSequence(int x, int y) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void click() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void rememberEnableState()
protected void verifyButtonEnabled()
public void throwDisabledException()
public boolean isDisabled()
isDisabled
in class FormControl
protected void doButtonAction(int x, int y) throws java.io.IOException, org.xml.sax.SAXException
x
- - the x coordinatey
- - the y coordinate
java.io.IOException
org.xml.sax.SAXException
protected void doButtonAction() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected java.lang.String[] getValues()
FormControl
getValues
in class FormControl
protected void addValues(com.meterware.httpunit.protocol.ParameterProcessor processor, java.lang.String characterSet) throws java.io.IOException
addValues
in class FormControl
java.io.IOException
public ScriptableDelegate newScriptable()
FormControl
newScriptable
in interface HTMLElement
newScriptable
in class FormControl
public ScriptableDelegate getParentDelegate()
HTMLElement
getParentDelegate
in interface HTMLElement
getParentDelegate
in class FormControl
|
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 |