Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit
Class FormControl.Scriptable  view FormControl.Scriptable download FormControl.Scriptable.java

java.lang.Object
  extended bycom.meterware.httpunit.scripting.ScriptableDelegate
      extended bycom.meterware.httpunit.HTMLElementScriptable
          extended bycom.meterware.httpunit.FormControl.Scriptable
All Implemented Interfaces:
com.meterware.httpunit.scripting.DocumentElement, com.meterware.httpunit.scripting.IdentifiedDelegate, com.meterware.httpunit.scripting.Input, com.meterware.httpunit.scripting.NamedDelegate
Direct Known Subclasses:
BooleanFormControl.Scriptable, Button.Scriptable, FileSubmitFormControl.Scriptable, SelectionFormControl.Scriptable, TextFormControl.Scriptable
Enclosing class:
FormControl

class FormControl.Scriptable
extends HTMLElementScriptable
implements com.meterware.httpunit.scripting.Input


Field Summary
 
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
 
Constructor Summary
FormControl.Scriptable()
           
 
Method Summary
 void click()
           
 java.lang.Object get(java.lang.String propertyName)
          Returns the value of the named property.
 java.lang.String getID()
           
 java.lang.String getName()
           
 void set(java.lang.String propertyName, java.lang.Object value)
          Sets the value of the named property.
 
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
doEvent, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormControl.Scriptable

public FormControl.Scriptable()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface com.meterware.httpunit.scripting.NamedDelegate

getID

public java.lang.String getID()
Specified by:
getID in interface com.meterware.httpunit.scripting.IdentifiedDelegate

get

public java.lang.Object get(java.lang.String propertyName)
Description copied from class: com.meterware.httpunit.scripting.ScriptableDelegate
Returns the value of the named property. Will return null if the property does not exist.

Specified by:
get in interface com.meterware.httpunit.scripting.Input
Overrides:
get in class HTMLElementScriptable

set

public void set(java.lang.String propertyName,
                java.lang.Object value)
Description copied from class: com.meterware.httpunit.scripting.ScriptableDelegate
Sets the value of the named property. Will throw a runtime exception if the property does not exist or cannot accept the specified value.

Specified by:
set in interface com.meterware.httpunit.scripting.Input

click

public void click()
           throws java.io.IOException,
                  org.xml.sax.SAXException
Specified by:
click in interface com.meterware.httpunit.scripting.Input