Module org.htmlunit

Class WindowProxy

java.lang.Object
org.htmlunit.corejs.javascript.Delegator
org.htmlunit.javascript.HtmlUnitScriptableProxy<Window>
org.htmlunit.javascript.host.WindowProxy
All Implemented Interfaces:
Serializable, org.htmlunit.corejs.javascript.Callable, org.htmlunit.corejs.javascript.Constructable, org.htmlunit.corejs.javascript.Function, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class WindowProxy extends HtmlUnitScriptableProxy<Window>
Proxy for a Window script object.
Author:
Marc Guillemot, Ronald Brill
See Also:
  • Field Summary

    Fields inherited from class org.htmlunit.corejs.javascript.Delegator

    obj

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a proxy for the Window of the given WebWindow.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setParentScope(org.htmlunit.corejs.javascript.VarScope parent)
    Does nothing, as the window is the top-level scope and its parent scope must remain null.

    Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptableProxy

    get, get, getDefaultValue, has, has, hasInstance, put, put

    Methods inherited from class org.htmlunit.corejs.javascript.Delegator

    call, construct, delete, delete, delete, get, getClassName, getIds, getParentScope, getPrototype, has, newInstance, put, setDelegee, setPrototype

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.corejs.javascript.Function

    getDeclarationScope, isConstructor

    Methods inherited from interface org.htmlunit.corejs.javascript.Scriptable

    getAncestor
  • Constructor Details

    • WindowProxy

      public WindowProxy(WebWindow webWindow)
      Constructs a proxy for the Window of the given WebWindow.
      Parameters:
      webWindow - the web window to proxy
  • Method Details

    • getDelegee

      public Window getDelegee()
      Overrides:
      getDelegee in class org.htmlunit.corejs.javascript.Delegator
    • setParentScope

      public void setParentScope(org.htmlunit.corejs.javascript.VarScope parent)
      Does nothing, as the window is the top-level scope and its parent scope must remain null.
      Specified by:
      setParentScope in interface org.htmlunit.corejs.javascript.Scriptable
      Overrides:
      setParentScope in class org.htmlunit.corejs.javascript.Delegator
      Parameters:
      parent - the new parent scope (ignored)