public class WebImage.Scriptable extends ScriptableDelegate implements NamedDelegate
NULL_SCRIPT_ENGINE| Constructor and Description |
|---|
WebImage.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, supportsScriptLanguagepublic String getName()
getName in interface NamedDelegatepublic Object get(String propertyName)
propertyName - - the name of the property to getpublic void set(String propertyName, Object value)
ScriptableDelegateset in class ScriptableDelegateprotected 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)
ScriptableDelegatehandleEvent in interface ScriptingEventHandlerhandleEvent in class ScriptableDelegateeventName - the name of the event for which a handler should be run.Copyright © 2012. All Rights Reserved.