|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.FormControl | +--com.meterware.httpunit.SubmitButton
This class represents a submit button in an HTML form.
Field Summary | |
static SubmitButton |
UNNAMED_BUTTON
|
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. |
boolean |
equals(java.lang.Object o)
|
java.lang.String[] |
getDisplayedOptions()
Returns the list of values displayed by this control, if any. |
java.lang.String |
getID()
Returns the ID associated with the button, if any. |
java.lang.String |
getName()
Returns the name of this control. |
java.lang.String[] |
getOptionValues()
Returns the values permitted in this control. |
ScriptableObject |
getScriptableObject()
Returns a scriptable object which can act as a proxy for this control. |
java.lang.String |
getValue()
Returns the value associated with this submit button. |
protected java.lang.String |
getValueAttribute()
Returns the default value of this control in the form. |
java.lang.String[] |
getValues()
Returns the current value(s) associated with this control. |
int |
hashCode()
|
boolean |
isDisabled()
Returns true if this control is disabled, meaning that it will not send a value to the server as part of a request. |
boolean |
isExclusive()
Returns true if only one control of this kind can have a value. |
boolean |
isFileParameter()
Returns true if this control accepts a file for upload. |
boolean |
isImageButton()
Returns true if this submit button is an image map. |
boolean |
isMultiValued()
Returns true if a single control can have multiple values. |
boolean |
isReadOnly()
Returns true if this control is read-only. |
boolean |
isTextControl()
Returns true if this control accepts free-form text. |
void |
setLocation(int x,
int y)
|
void |
setPressed(boolean pressed)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static SubmitButton UNNAMED_BUTTON
Method Detail |
public java.lang.String getValue()
public java.lang.String getID()
public boolean isImageButton()
public java.lang.String[] getValues()
getValues
in class com.meterware.httpunit.FormControl
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void setPressed(boolean pressed)
public void setLocation(int x, int y)
public java.lang.String getName()
public ScriptableObject getScriptableObject()
public java.lang.String[] getOptionValues()
public java.lang.String[] getDisplayedOptions()
public boolean isReadOnly()
public boolean isDisabled()
public boolean isTextControl()
public boolean isExclusive()
public boolean isMultiValued()
public boolean isFileParameter()
protected java.lang.String getValueAttribute()
protected final void claimValueIsRequired(java.util.List values, java.lang.String value)
|
Copyright © 2000-2002 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |