/** * 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); }
/** * 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); }
/** * 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); }
/** * 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) { // check whether onclick is activated if (eventName.toLowerCase().equals("onclick")) { handleEvent("onmousedown"); } String eventScript = getAttribute( eventName ); boolean result=doEventScript(eventScript); if (eventName.toLowerCase().equals("onclick")) { handleEvent("onmouseup"); } return result; }