Package com.meterware.httpunit.scripting
Interface ScriptingEventHandler
-
- All Known Subinterfaces:
FormScriptable
,HTMLElement
,ScriptingEngine
,ScriptingHandler
- All Known Implementing Classes:
BlockElement
,Button
,FormControl
,FormControl.Scriptable
,HTMLPage.Scriptable
,RadioButtonFormControl
,RadioGroupFormControl
,ResetButton
,ScriptableDelegate
,SubmitButton
,TableCell
,TableRow
,TextBlock
,WebApplet
,WebForm
,WebForm.Scriptable
,WebImage
,WebImage.Scriptable
,WebLink
,WebLink.Scriptable
,WebList
,WebRequestSource
,WebResponse.Scriptable
,WebTable
public interface ScriptingEventHandler
interface for every object that may have excutable events and their scripts attached- Author:
- Russell Gold
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
doEvent(java.lang.String eventScript)
Deprecated.since 1.7boolean
doEventScript(java.lang.String eventScript)
run the Script for the given Eventboolean
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
boolean doEvent(java.lang.String eventScript)
Deprecated.since 1.7run the Script for the given Event- Parameters:
eventScript
-- Returns:
- true if the script is empty or the result of the script
-
doEventScript
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
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
-
-