com.meterware.httpunit.scripting
Interface ScriptingEventHandler
- All Known Subinterfaces:
- FormScriptable, HTMLElement, ScriptingEngine, ScriptingHandler
- All Known Implementing Classes:
- AbstractDomComponent, AttrImpl, BlockElement, Button, CDATASectionImpl, CharacterDataImpl, CommentImpl, DocumentImpl, DocumentTypeImpl, DomWindow, ElementImpl, FormControl, FormControl.Scriptable, HTMLAnchorElementImpl, HTMLAppletElementImpl, HTMLAreaElementImpl, HTMLBaseElementImpl, HTMLBodyElementImpl, HTMLButtonElementImpl, HTMLControl, HTMLDocumentImpl, HTMLElementImpl, HTMLFormElementImpl, HTMLHeadElementImpl, HTMLHtmlElementImpl, HTMLIFrameElementImpl, HTMLImageElementImpl, HTMLInputElementImpl, HTMLLinkElementImpl, HTMLMetaElementImpl, HTMLOptionElementImpl, HTMLPage.Scriptable, HTMLParagraphElementImpl, HTMLSelectElementImpl, HTMLStyleElementImpl, HTMLTableCellElementImpl, HTMLTableElementImpl, HTMLTableRowElementImpl, HTMLTextAreaElementImpl, HTMLTitleElementImpl, JavaScript.Control, JavaScript.Document, JavaScript.Form, JavaScript.HTMLElement, JavaScript.Image, JavaScript.Link, JavaScript.Location, JavaScript.Navigator, JavaScript.Option, JavaScript.Options, JavaScript.Screen, JavaScript.Style, JavaScript.Window, NamespaceAwareNodeImpl, NodeImpl, ProcessingInstructionImpl, RadioButtonFormControl, RadioGroupFormControl, ResetButton, ScriptableDelegate, ScriptingEngineImpl, SelectionFormControl, SelectionFormControl.Option, SelectionFormControl.Options, SubmitButton, TableCell, TableRow, TextBlock, TextImpl, 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 |
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 |
doEvent
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
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
Copyright © 2011. All Rights Reserved.