com.meterware.httpunit.scripting
Interface ScriptingEventHandler

All Known Subinterfaces:
FormScriptable, HTMLElement, ScriptingEngine, ScriptingHandler
All Known Implementing Classes:
BlockElement, com.meterware.httpunit.HTMLElementBase, ScriptableDelegate, WebForm.Scriptable, WebRequestSource

public interface ScriptingEventHandler

interface for every object that may have excutable events and their scripts attached

Author:
Russell Gold

Method Summary
 boolean doEvent(java.lang.String eventScript)
          Deprecated. since 1.7
 boolean doEventScript(java.lang.String eventScript)
          run the Script for the given Event
 boolean handleEvent(java.lang.String eventName)
          handle the event with the given name by getting the attribute and then executing the eventScript for it
 

Method Detail

doEvent

public boolean doEvent(java.lang.String eventScript)
Deprecated. since 1.7

run the Script for the given Event

Parameters:
eventScript -
Returns:
true if the script is empty or the result of the script

doEventScript

public boolean doEventScript(java.lang.String eventScript)
run the Script for the given Event

Parameters:
eventScript -
Returns:
true if the script is empty or the result of the script
Since:
1.7

handleEvent

public boolean handleEvent(java.lang.String eventName)
handle the event with the given name by getting the attribute and then executing the eventScript for it

Parameters:
eventName -
Returns:
the result of doEventScript

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