public class WebImage.Scriptable extends ScriptableDelegate implements NamedDelegate
NULL_SCRIPT_ENGINE
Constructor and Description |
---|
Scriptable() |
Modifier and Type | Method and Description |
---|---|
protected HTMLElement |
get_element() |
java.lang.Object |
get(java.lang.String propertyName)
get the property with the given name
|
java.lang.String |
getAttribute(java.lang.String attributeName)
get the content of the given attribute
|
java.lang.String |
getName() |
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.
|
void |
removeAttribute(java.lang.String attributeName)
remove the given attribute
|
void |
set(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the named property.
|
void |
setAttribute(java.lang.String attributeName,
java.lang.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 java.lang.String getName()
getName
in interface NamedDelegate
public java.lang.Object get(java.lang.String propertyName)
propertyName
- - the name of the property to getpublic void set(java.lang.String propertyName, java.lang.Object value)
ScriptableDelegate
set
in class ScriptableDelegate
protected HTMLElement get_element()
public java.lang.String getAttribute(java.lang.String attributeName)
attributeName
- public void setAttribute(java.lang.String attributeName, java.lang.Object value)
attributeName
- value
- public void removeAttribute(java.lang.String attributeName)
attributeName
- public boolean handleEvent(java.lang.String eventName)
ScriptableDelegate
handleEvent
in interface ScriptingEventHandler
handleEvent
in class ScriptableDelegate
eventName
- the name of the event for which a handler should be run.