public boolean supportsScriptLanguage( String language ) { return getScriptEngine().supportsScriptLanguage( language ); }
/** * arbitrary attribute access * @param attributeName * @return */ public Object jsFunction_getAttribute(String attributeName) { return _scriptable.get(attributeName); }
/** * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { String eventScript = (String) get(eventName); return doEventScript( eventScript ); }
public ScriptingEngine getScriptEngine( ScriptableDelegate child ) { return getScriptEngine().newScriptingEngine( child ); }
public void clearCaches() { getScriptEngine().clearCaches(); }
public boolean supportsScriptLanguage( String language ) { return getScriptEngine().supportsScriptLanguage( language ); }
/** * Executes the specified script, returning any intended replacement text. * @return the replacement text, which may be empty. **/ public String runScript( String language, String script ) { return (script.length() == 0) ? "" : getScriptEngine().runScript( language, script ); }
/** * Executes the specified scripted event. * @param eventScript - the eventScript to execute * @return true if the event has been handled. **/ public boolean doEventScript( String eventScript ) { return eventScript.length() == 0 || getScriptEngine().doEventScript( eventScript ); }
/** * Executes the specified scripted event. * @param eventScript - the eventScript to execute * @return true if the event has been handled. **/ public boolean doEventScript( String eventScript ) { return eventScript.length() == 0 || getScriptEngine().doEventScript( eventScript ); }
/** * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup * execute the script if it's assigned by calling doEvent for the script * @param eventName * @return */ public boolean handleEvent(String eventName) { return _scriptable.handleEvent(eventName); }
/** * handle the event that has the given script attached * by compiling the eventScript as a function and executing it * @param eventScript - the script to use * @deprecated since 1.7 - use doEventScript instead */ public boolean doEvent( String eventScript ) { return doEventScript(eventScript); }
public ScriptingEngine getScriptEngine( ScriptableDelegate child ) { return getScriptEngine().newScriptingEngine( child ); }
public void clearCaches() { getScriptEngine().clearCaches(); }
/** * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { String eventScript = (String) get(eventName); return doEventScript( eventScript ); }
public boolean supportsScriptLanguage( String language ) { return getScriptEngine().supportsScriptLanguage( language ); }
/** * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup * execute the script if it's assigned by calling doEvent for the script * @param eventName * @return */ public boolean handleEvent(String eventName) { return _scriptable.handleEvent(eventName); }
/** * handle the event that has the given script attached * by compiling the eventScript as a function and executing it * @param eventScript - the script to use * @deprecated since 1.7 - use doEventScript instead */ public boolean doEvent( String eventScript ) { return doEventScript(eventScript); }
public ScriptingEngine getScriptEngine( ScriptableDelegate child ) { return getScriptEngine().newScriptingEngine( child ); }
public void clearCaches() { getScriptEngine().clearCaches(); }
/** * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup * execute the script if it's assigned by calling doEvent for the script * @param eventName * @return */ public boolean handleEvent(String eventName) { return _scriptable.handleEvent(eventName); }