/** * Returns the owner document. * @return the document */ public Object jsxGet_ownerDocument() { final Object document = getDomNodeOrDie().getOwnerDocument(); if (document == null) { return null; } return ((SgmlPage) document).getScriptObject(); }
/** * Returns the owner document. * @return the document */ public Object jsxGet_ownerDocument() { final Object document = getDomNodeOrDie().getOwnerDocument(); if (document == null) { return null; } return ((SgmlPage) document).getScriptObject(); }
/** * Returns the owner document. * @return the document */ public Object jsxGet_ownerDocument() { final Object document = this.<DomNode>getDomNodeOrDie().getOwnerDocument(); if (document == null) { return null; } return ((SgmlPage) document).getScriptObject(); }
/** * Returns the owner document. * @return the document */ public Object jsxGet_ownerDocument() { final Object document = getDomNodeOrDie().getOwnerDocument(); if (document == null) { return null; } return ((SgmlPage) document).getScriptObject(); }
/** * Initialize the parent scope of a newly created scriptable. * @param domNode the DOM node for the script object * @param scriptable the script object to initialize */ protected void initParentScope(final DomNode domNode, final SimpleScriptable scriptable) { final WebWindow enclosingWindow = domNode.getPage().getEnclosingWindow(); if (enclosingWindow.getEnclosedPage() == domNode.getPage()) { scriptable.setParentScope((Scriptable) enclosingWindow.getScriptObject()); } else { scriptable.setParentScope(ScriptableObject.getTopLevelScope(domNode.getPage().getScriptObject())); } }
/** * Initialize the parent scope of a newly created scriptable. * @param domNode the DOM node for the script object * @param scriptable the script object to initialize */ protected void initParentScope(final DomNode domNode, final SimpleScriptable scriptable) { final WebWindow enclosingWindow = domNode.getPage().getEnclosingWindow(); if (enclosingWindow.getEnclosedPage() == domNode.getPage()) { scriptable.setParentScope((Scriptable) enclosingWindow.getScriptObject()); } else { scriptable.setParentScope(ScriptableObject.getTopLevelScope(domNode.getPage().getScriptObject())); } }
/** * Initialize the parent scope of a newly created scriptable. * @param domNode the DOM node for the script object * @param scriptable the script object to initialize */ protected void initParentScope(final DomNode domNode, final SimpleScriptable scriptable) { final WebWindow enclosingWindow = domNode.getPage().getEnclosingWindow(); if (enclosingWindow.getEnclosedPage() == domNode.getPage()) { scriptable.setParentScope((Scriptable) enclosingWindow.getScriptObject()); } else { scriptable.setParentScope(ScriptableObject.getTopLevelScope(domNode.getPage().getScriptObject())); } }