|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meterware.httpunit.Button
com.meterware.httpunit.ResetButton
public class ResetButton
Represents a form 'reset' button.
Field Summary | |
---|---|
static java.lang.String |
BUTTON_TYPE
|
static java.lang.String |
CHECKBOX_TYPE
|
static java.lang.String |
FILE_TYPE
|
static java.lang.String |
HIDDEN_TYPE
|
static java.lang.String |
IMAGE_BUTTON_TYPE
|
static java.lang.String |
MULTIPLE_TYPE
|
static java.lang.String |
PASSWORD_TYPE
|
static java.lang.String |
RADIO_BUTTON_TYPE
|
static java.lang.String |
RESET_BUTTON_TYPE
|
static java.lang.String |
SINGLE_TYPE
|
static java.lang.String |
SUBMIT_BUTTON_TYPE
|
static java.lang.String |
TEXT_TYPE
|
static java.lang.String |
TEXTAREA_TYPE
|
static java.lang.String |
UNDEFINED_TYPE
|
Fields inherited from class com.meterware.httpunit.Button |
---|
WITH_ID, WITH_LABEL |
Method Summary | |
---|---|
protected void |
claimValueIsRequired(java.util.List values,
java.lang.String value)
Removes the specified required value from the list of values, throwing an exception if it is missing. |
protected void |
doButtonAction()
Perform the normal action of this button. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of the attribute of this element with the specified name. |
protected java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
|
java.lang.String |
getClassName()
Returns the class associated with this element. |
protected WebForm |
getForm()
|
java.lang.String |
getID()
Returns the ID associated with this element. |
java.lang.String |
getName()
Returns the name associated with this element. |
protected org.w3c.dom.Node |
getNode()
|
java.lang.String[] |
getOptionValues()
Returns the values permitted in this control. |
ScriptableDelegate |
getScriptableDelegate()
Returns a scriptable object which can act as a proxy for this control. |
java.lang.String |
getTagName()
Returns the tag name of this node. |
java.lang.String |
getText()
Returns the text value of this block. |
java.lang.String |
getTitle()
Returns the title associated with this element. |
java.lang.String |
getType()
Return the type of the control, as seen from JavaScript. |
protected java.lang.String |
getValueAttribute()
Returns the default value of this control in the form. |
boolean |
isSupportedAttribute(java.lang.String name)
Returns true if this element may have an attribute with the specified name. |
protected void |
sendOnChangeEvent()
Performs the 'onChange' event defined for this control. |
protected void |
sendOnClickEvent()
Performs the 'onClick' event defined for this control. |
void |
setState(boolean state)
Sets the state of this boolean control. |
protected void |
supportAttribute(java.lang.String name)
|
void |
toggle()
Toggles the value of this control. |
Methods inherited from class com.meterware.httpunit.Button |
---|
click, doOnClickEvent, getParentDelegate, getValue, isDisabled, newScriptable, verifyButtonEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNDEFINED_TYPE
public static final java.lang.String BUTTON_TYPE
public static final java.lang.String RESET_BUTTON_TYPE
public static final java.lang.String SUBMIT_BUTTON_TYPE
public static final java.lang.String IMAGE_BUTTON_TYPE
public static final java.lang.String RADIO_BUTTON_TYPE
public static final java.lang.String CHECKBOX_TYPE
public static final java.lang.String TEXT_TYPE
public static final java.lang.String PASSWORD_TYPE
public static final java.lang.String HIDDEN_TYPE
public static final java.lang.String TEXTAREA_TYPE
public static final java.lang.String FILE_TYPE
public static final java.lang.String SINGLE_TYPE
public static final java.lang.String MULTIPLE_TYPE
Method Detail |
---|
public java.lang.String getType()
getType
in class Button
protected void doButtonAction()
Button
doButtonAction
in class Button
protected final WebForm getForm()
public java.lang.String[] getOptionValues()
public void toggle()
public void setState(boolean state)
protected void sendOnChangeEvent()
protected void sendOnClickEvent()
protected java.lang.String getValueAttribute()
protected final void claimValueIsRequired(java.util.List values, java.lang.String value)
public java.lang.String getID()
HTMLElement
getID
in interface HTMLElement
public java.lang.String getClassName()
HTMLElement
getClassName
in interface HTMLElement
public java.lang.String getTitle()
HTMLElement
getTitle
in interface HTMLElement
public java.lang.String getName()
HTMLElement
getName
in interface HTMLElement
public ScriptableDelegate getScriptableDelegate()
getScriptableDelegate
in interface HTMLElement
public java.lang.String getText()
getText
in interface HTMLElement
public java.lang.String getTagName()
HTMLElement
getTagName
in interface HTMLElement
public java.lang.String getAttribute(java.lang.String name)
HTMLElement
getAttribute
in interface HTMLElement
public boolean isSupportedAttribute(java.lang.String name)
HTMLElement
isSupportedAttribute
in interface HTMLElement
protected java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
protected org.w3c.dom.Node getNode()
protected void supportAttribute(java.lang.String name)
|
Copyright © 2000-2006 Russell Gold. See license agreement for rights granted. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |