com.gargoylesoftware.htmlunit.javascript.host.html
Class HTMLDocumentProxy

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.Delegator
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptableProxy<HTMLDocument>
          extended by com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocumentProxy
All Implemented Interfaces:
ScriptableWithFallbackGetter, Serializable, net.sourceforge.htmlunit.corejs.javascript.Callable, net.sourceforge.htmlunit.corejs.javascript.Function, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class HTMLDocumentProxy
extends SimpleScriptableProxy<HTMLDocument>

Proxy for a HTMLDocument script object. In theory we could satisfy single-document requirements without a proxy, by reusing (with appropriate cleanup and re-initialization) a single HTMLDocument instance across various pages. However, we allow users to keep references to old pages as they navigate across a series of pages, and all of these pages need to be usable -- so we can't just leave these old pages without a window.document object.

Version:
$Revision: 5565 $
Author:
Daniel Gredler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.Delegator
obj
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
HTMLDocumentProxy(WebWindow webWindow)
          Construct a proxy for the HTMLDocument of the WebWindow.
 
Method Summary
 HTMLDocument getDelegee()
          
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptableProxy
get, get, getWithFallback, has, has, hasInstance, put, put
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.Delegator
call, construct, delete, delete, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, newInstance, setDelegee, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
delete, delete, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, setParentScope, setPrototype
 

Constructor Detail

HTMLDocumentProxy

public HTMLDocumentProxy(WebWindow webWindow)
Construct a proxy for the HTMLDocument of the WebWindow.

Parameters:
webWindow - the window
Method Detail

getDelegee

public HTMLDocument getDelegee()

Specified by:
getDelegee in class SimpleScriptableProxy<HTMLDocument>


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.