com.meterware.httpunit
Class RadioButtonFormControl

java.lang.Object
  extended bycom.meterware.httpunit.HTMLElementBase
      extended bycom.meterware.httpunit.FormControl
          extended bycom.meterware.httpunit.BooleanFormControl
              extended bycom.meterware.httpunit.RadioButtonFormControl
All Implemented Interfaces:
HTMLElement, ScriptingEventHandler

public class RadioButtonFormControl
extends com.meterware.httpunit.BooleanFormControl


Field Summary
 
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
 
Constructor Summary
RadioButtonFormControl(WebForm form, com.meterware.httpunit.dom.HTMLInputElementImpl element)
           
 
Method Summary
protected  void addValues(com.meterware.httpunit.protocol.ParameterProcessor processor, java.lang.String characterSet)
           
protected  java.lang.String[] getDisplayedOptions()
          Returns the list of values displayed by this control, if any.
 java.lang.String[] getOptionValues()
          Returns the values permitted in this control.
 java.lang.String getQueryValue()
           
 java.lang.String getType()
          Return the type of the control, as seen from JavaScript.
protected  java.lang.String getValueAttribute()
          Returns the value of this control in the form.
 java.lang.String[] getValues()
          Returns the current value(s) associated with this control.
 boolean isExclusive()
          Returns true if only one control of this kind can have a value.
protected  boolean isValueRequired()
           
 ScriptableDelegate newScriptable()
          Creates and returns a scriptable object for this control.
 void setChecked(boolean checked)
           
protected  void setValueAttribute(java.lang.String value)
          Sets the value of this control in the form.
 
Methods inherited from class com.meterware.httpunit.FormControl
claimUniqueValue, claimValueIsRequired, doEvent, doEventScript, doOnChangeEvent, doOnClickEvent, doOnMouseDownEvent, doOnMouseUpEvent, emptyIfNull, getAttribute, getAttribute, getClassName, getForm, getID, getName, getNode, getParentDelegate, getScriptingHandler, getTagName, getText, getTitle, handleEvent, isDisabled, isHidden, isMultiValued, isReadOnly, isSupportedAttribute, removeAttribute, reset, sendOnChangeEvent, sendOnClickEvent, sendOnMouseDownEvent, sendOnMouseUpEvent, setAttribute, setState, supportAttribute, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButtonFormControl

public RadioButtonFormControl(WebForm form,
                              com.meterware.httpunit.dom.HTMLInputElementImpl element)
Method Detail

getType

public java.lang.String getType()
Description copied from class: FormControl
Return the type of the control, as seen from JavaScript.

Specified by:
getType in class FormControl

isExclusive

public boolean isExclusive()
Returns true if only one control of this kind can have a value.


getQueryValue

public java.lang.String getQueryValue()

newScriptable

public ScriptableDelegate newScriptable()
Description copied from class: FormControl
Creates and returns a scriptable object for this control. Subclasses should override this if they use a different implementation of Scriptable.

Specified by:
newScriptable in interface HTMLElement
Overrides:
newScriptable in class FormControl

getValueAttribute

protected java.lang.String getValueAttribute()
Description copied from class: FormControl
Returns the value of this control in the form. If no value is specified, defaults to the empty string.

Overrides:
getValueAttribute in class FormControl

setValueAttribute

protected void setValueAttribute(java.lang.String value)
Description copied from class: FormControl
Sets the value of this control in the form.

Overrides:
setValueAttribute in class FormControl

setChecked

public void setChecked(boolean checked)

getValues

public java.lang.String[] getValues()
Returns the current value(s) associated with this control. These values will be transmitted to the server if the control is 'successful'.

Specified by:
getValues in class FormControl

getOptionValues

public java.lang.String[] getOptionValues()
Returns the values permitted in this control.

Overrides:
getOptionValues in class FormControl

getDisplayedOptions

protected java.lang.String[] getDisplayedOptions()
Description copied from class: FormControl
Returns the list of values displayed by this control, if any.

Overrides:
getDisplayedOptions in class FormControl

addValues

protected void addValues(com.meterware.httpunit.protocol.ParameterProcessor processor,
                         java.lang.String characterSet)
                  throws java.io.IOException
Specified by:
addValues in class FormControl
Throws:
java.io.IOException

isValueRequired

protected boolean isValueRequired()

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.