com.meterware.httpunit
Class RadioGroupFormControl

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

public class RadioGroupFormControl
extends FormControl

Radio button control


Nested Class Summary
 
Nested classes inherited from class com.meterware.httpunit.FormControl
FormControl.Scriptable
 
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
RadioGroupFormControl(WebForm form)
          construct Radiobuttons for a form
 
Method Summary
protected  void addValues(com.meterware.httpunit.protocol.ParameterProcessor processor, java.lang.String characterSet)
           
protected  void claimUniqueValue(java.util.List values)
          Sets this control to the next compatible value from the list, removing it from the list.
protected  java.lang.String[] getDisplayedOptions()
          Returns the options displayed for this radio button group.
 java.lang.String[] getOptionValues()
          Returns the option values defined for this radio button group.
 java.lang.String getType()
          Return the type of the control, as seen from JavaScript.
 java.lang.String[] getValues()
          get the values for the buttons
protected  void reset()
          Resets this control to its initial value.
 
Methods inherited from class com.meterware.httpunit.FormControl
claimValueIsRequired, doEvent, doEventScript, doOnChangeEvent, doOnClickEvent, doOnMouseDownEvent, doOnMouseUpEvent, emptyIfNull, getAttribute, getAttribute, getClassName, getForm, getID, getName, getNode, getParentDelegate, getScriptingHandler, getTagName, getText, getTitle, getValueAttribute, handleEvent, isDisabled, isHidden, isMultiValued, isReadOnly, isSupportedAttribute, newScriptable, removeAttribute, 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
 

Constructor Detail

RadioGroupFormControl

public RadioGroupFormControl(WebForm form)
construct Radiobuttons for a form

Parameters:
form -
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

getValues

public java.lang.String[] getValues()
get the values for the buttons

Specified by:
getValues in class FormControl
Returns:
an array of String values

getOptionValues

public java.lang.String[] getOptionValues()
Returns the option values defined for this radio button group.

Overrides:
getOptionValues in class FormControl

getDisplayedOptions

protected java.lang.String[] getDisplayedOptions()
Returns the options displayed for this radio button group.

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

claimUniqueValue

protected void claimUniqueValue(java.util.List values)
Description copied from class: FormControl
Sets this control to the next compatible value from the list, removing it from the list.

Overrides:
claimUniqueValue in class FormControl

reset

protected void reset()
Description copied from class: FormControl
Resets this control to its initial value.

Overrides:
reset in class FormControl

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