public class WebLink.Scriptable extends ScriptableDelegate implements NamedDelegate
NULL_SCRIPT_ENGINE
Constructor and Description |
---|
WebLink.Scriptable() |
Modifier and Type | Method and Description |
---|---|
protected HTMLElement |
get_element() |
Object |
get(String propertyName)
get the property with the given name
|
String |
getAttribute(String attributeName)
get the content of the given attribute
|
String |
getName() |
boolean |
handleEvent(String eventName)
Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined.
|
void |
removeAttribute(String attributeName)
remove the given attribute
|
void |
set(String propertyName,
Object value)
Sets the value of the named property.
|
void |
setAttribute(String attributeName,
Object value)
set the attribute with the given attribute name to the given value
|
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, runScript, setScriptEngine, supportsScriptLanguage
public String getName()
getName
in interface NamedDelegate
public Object get(String propertyName)
propertyName
- - the name of the property to getpublic void set(String propertyName, Object value)
ScriptableDelegate
set
in class ScriptableDelegate
protected HTMLElement get_element()
public String getAttribute(String attributeName)
attributeName
- public void setAttribute(String attributeName, Object value)
attributeName
- value
- public void removeAttribute(String attributeName)
attributeName
- public boolean handleEvent(String eventName)
ScriptableDelegate
handleEvent
in interface ScriptingEventHandler
handleEvent
in class ScriptableDelegate
eventName
- the name of the event for which a handler should be run.Copyright © 2012. All Rights Reserved.