|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(List values,
String value)
Removes the specified required value from the list of values, throwing an exception if it is missing. |
boolean |
equals(Object o)
|
String[] |
getDisplayedOptions()
Returns the list of values displayed by this control, if any. |
String |
getID()
Returns the ID associated with the button, if any. |
String |
getName()
Returns the name of this control. |
String[] |
getOptionValues()
Returns the values permitted in this control. |
ScriptableObject |
getScriptableObject()
Returns a scriptable object which can act as a proxy for this control. |
String |
getValue()
Returns the value associated with this submit button. |
protected String |
getValueAttribute()
Returns the default value of this control in the form. |
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)
|
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 String getValue()
public String getID()
public boolean isImageButton()
public String[] getValues()
getValues
in class FormControl
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public void setPressed(boolean pressed)
public void setLocation(int x, int y)
public String getName()
public ScriptableObject getScriptableObject()
public String[] getOptionValues()
public String[] getDisplayedOptions()
public boolean isReadOnly()
public boolean isDisabled()
public boolean isTextControl()
public boolean isExclusive()
public boolean isMultiValued()
public boolean isFileParameter()
protected String getValueAttribute()
protected final void claimValueIsRequired(List values, String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |