com.meterware.httpunit.controls
Class SelectionFormControl.Option

java.lang.Object
  extended by com.meterware.httpunit.scripting.ScriptableDelegate
      extended by com.meterware.httpunit.controls.SelectionFormControl.Option
All Implemented Interfaces:
ScriptingEventHandler, ScriptingHandler, SelectionOption
Enclosing class:
SelectionFormControl

public static class SelectionFormControl.Option
extends ScriptableDelegate
implements SelectionOption


Field Summary
 
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE
 
Constructor Summary
SelectionFormControl.Option()
           
 
Method Summary
 int getIndex()
           
 java.lang.String getText()
           
 java.lang.String getValue()
           
 void initialize(java.lang.String text, java.lang.String value, boolean defaultSelected, boolean selected)
           
 boolean isDefaultSelected()
           
 boolean isSelected()
           
 void setSelected(boolean selected)
           
 void setText(java.lang.String text)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, set, setScriptEngine, supportsScriptLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionFormControl.Option

public SelectionFormControl.Option()
Method Detail

initialize

public void initialize(java.lang.String text,
                       java.lang.String value,
                       boolean defaultSelected,
                       boolean selected)
Specified by:
initialize in interface SelectionOption

getIndex

public int getIndex()
Specified by:
getIndex in interface SelectionOption

getText

public java.lang.String getText()
Specified by:
getText in interface SelectionOption

setText

public void setText(java.lang.String text)
Specified by:
setText in interface SelectionOption

getValue

public java.lang.String getValue()
Specified by:
getValue in interface SelectionOption

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface SelectionOption

isDefaultSelected

public boolean isDefaultSelected()
Specified by:
isDefaultSelected in interface SelectionOption

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface SelectionOption

isSelected

public boolean isSelected()
Specified by:
isSelected in interface SelectionOption


Copyright © 2011. All Rights Reserved.