protected ElementArray toElementArray( ScriptingHandler[] scriptables ) { JavaScriptEngine[] elements = new JavaScriptEngine[ scriptables.length ]; for (int i = 0; i < elements.length; i++) { elements[ i ] = (JavaScriptEngine) toScriptable( (ScriptableDelegate) scriptables[ i ] ); } ElementArray result = ElementArray.newElementArray( this ); result.initialize( elements ); return result; } }
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable ) throws JavaScriptException, NotAFunctionException, PropertyException, SAXException { super.initialize( parent, scriptable ); if (parent instanceof Form) _form = (Form) parent; }
/** * 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 Object jsGet_location() { return _parent == null ? NOT_FOUND : getWindow().jsGet_location(); }
protected void discardDocumentWriteBuffer() { jsGet_document().clearWriteBuffer(); }
/** * setter for the throwExceptions flag * @param throwExceptions - true if Exceptions should be thrown */ public void setThrowExceptionsOnError( boolean throwExceptions ) { JavaScript.setThrowExceptionsOnError( throwExceptions ); }
/** * getter for the throwExceptions flag * @return - true if Exceptions should be thrown */ public boolean isThrowExceptionsOnError() { return JavaScript.isThrowExceptionsOnError(); }
private Object convertIfNeeded( final Object property ) { if (property == null) return NOT_FOUND; if (property instanceof ScriptableDelegate[]) return toScriptable( (ScriptableDelegate[]) property ); if (!(property instanceof ScriptableDelegate)) return property; return toScriptable( (ScriptableDelegate) property ); }
public Scriptable jsGet_elements() throws PropertyException, NotAFunctionException, JavaScriptException { if (_controls == null) { initializeControls(); } return _controls; }
protected ElementArray toElementArray( ScriptingHandler[] scriptables ) { JavaScriptEngine[] elements = new JavaScriptEngine[ scriptables.length ]; for (int i = 0; i < elements.length; i++) { elements[ i ] = (JavaScriptEngine) toScriptable( (ScriptableDelegate) scriptables[ i ] ); } ElementArray result = ElementArray.newElementArray( this ); result.initialize( elements ); return result; } }
public Object jsGet_location() { return _parent == null ? NOT_FOUND : getWindow().jsGet_location(); }
protected void discardDocumentWriteBuffer() { jsGet_document().clearWriteBuffer(); }
/** * setter for the throwExceptions flag * @param throwExceptions - true if Exceptions should be thrown */ public void setThrowExceptionsOnError( boolean throwExceptions ) { JavaScript.setThrowExceptionsOnError( throwExceptions ); }
void initialize( JavaScriptEngine parent, ScriptableDelegate scriptable ) throws JavaScriptException, NotAFunctionException, PropertyException, SAXException { super.initialize( parent, scriptable ); if (parent instanceof Form) _form = (Form) parent; }
/** * getter for the throwExceptions flag * @return - true if Exceptions should be thrown */ public boolean isThrowExceptionsOnError() { return JavaScript.isThrowExceptionsOnError(); }
private Object convertIfNeeded( final Object property ) { if (property == null) return NOT_FOUND; if (property instanceof ScriptableDelegate[]) return toScriptable( (ScriptableDelegate[]) property ); if (!(property instanceof ScriptableDelegate)) return property; return toScriptable( (ScriptableDelegate) property ); }
protected ElementArray toElementArray( ScriptingHandler[] scriptables ) { JavaScriptEngine[] elements = new JavaScriptEngine[ scriptables.length ]; for (int i = 0; i < elements.length; i++) { elements[ i ] = (JavaScriptEngine) toScriptable( (ScriptableDelegate) scriptables[ i ] ); } ElementArray result = ElementArray.newElementArray( this ); result.initialize( elements ); return result; } }
public Object jsGet_location() { return _parent == null ? NOT_FOUND : getWindow().jsGet_location(); }
protected void discardDocumentWriteBuffer() { jsGet_document().clearWriteBuffer(); }
/** * setter for the throwExceptions flag * @param throwExceptions - true if Exceptions should be thrown */ public void setThrowExceptionsOnError( boolean throwExceptions ) { JavaScript.setThrowExceptionsOnError( throwExceptions ); }