ScriptingEventHandler, ScriptingHandlerFormControl.Scriptable, HTMLPage.Scriptable, WebForm.Scriptable, WebImage.Scriptable, WebLink.Scriptable, WebResponse.Scriptablepublic abstract class ScriptableDelegate extends java.lang.Object implements ScriptingHandler
| Modifier and Type | Field | Description |
|---|---|---|
static ScriptingEngine |
NULL_SCRIPT_ENGINE |
a dummy ScriptingEngine implementation
|
| Constructor | Description |
|---|---|
ScriptableDelegate() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearCaches() |
|
boolean |
doEvent(java.lang.String eventScript) |
Deprecated.
since 1.7 - use doEventScript instead
|
boolean |
doEventScript(java.lang.String eventScript) |
Executes the specified scripted event.
|
java.lang.Object |
evaluateExpression(java.lang.String urlString) |
Evaluates the specified javascript expression, returning its value.
|
java.lang.Object |
get(int index) |
Returns the value of the index property.
|
java.lang.Object |
get(java.lang.String propertyName) |
Returns the value of the named property.
|
protected ScriptableDelegate[] |
getDelegates(HTMLElement[] elements) |
|
ScriptingEngine |
getScriptEngine() |
|
ScriptingEngine |
getScriptEngine(ScriptableDelegate child) |
|
boolean |
handleEvent(java.lang.String eventName) |
Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.
|
java.lang.String |
runScript(java.lang.String language,
java.lang.String script) |
Executes the specified script, returning any intended replacement text.
|
void |
set(java.lang.String propertyName,
java.lang.Object value) |
Sets the value of the named property.
|
void |
setScriptEngine(ScriptingEngine scriptEngine) |
Specifies the scripting engine to be used.
|
boolean |
supportsScriptLanguage(java.lang.String language) |
public static final ScriptingEngine NULL_SCRIPT_ENGINE
public boolean supportsScriptLanguage(java.lang.String language)
supportsScriptLanguage in interface ScriptingHandlerpublic boolean doEvent(java.lang.String eventScript)
doEvent in interface ScriptingEventHandlereventScript - - the script to usepublic boolean doEventScript(java.lang.String eventScript)
doEventScript in interface ScriptingEventHandlereventScript - - the eventScript to executepublic boolean handleEvent(java.lang.String eventName)
handleEvent in interface ScriptingEventHandlereventName - the name of the event for which a handler should be run.public java.lang.String runScript(java.lang.String language,
java.lang.String script)
runScript in interface ScriptingHandlerpublic java.lang.Object evaluateExpression(java.lang.String urlString)
evaluateExpression in interface ScriptingHandlerpublic void clearCaches()
clearCaches in interface ScriptingHandlerpublic java.lang.Object get(java.lang.String propertyName)
public java.lang.Object get(int index)
public void set(java.lang.String propertyName,
java.lang.Object value)
public void setScriptEngine(ScriptingEngine scriptEngine)
public ScriptingEngine getScriptEngine()
public ScriptingEngine getScriptEngine(ScriptableDelegate child)
protected ScriptableDelegate[] getDelegates(HTMLElement[] elements)