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

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.Delegator
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptableProxy<Document>
          extended by com.gargoylesoftware.htmlunit.javascript.host.html.DocumentProxy
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 DocumentProxy
extends SimpleScriptableProxy<Document>

Proxy for a Document script object. In theory we could satisfy single-document requirements without a proxy, by reusing (with appropriate cleanup and re-initialization) a single Document 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: 6701 $
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
DocumentProxy(WebWindow webWindow)
          Construct a proxy for the Document of the WebWindow.
 
Method Summary
 Document 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

DocumentProxy

public DocumentProxy(WebWindow webWindow)
Construct a proxy for the Document of the WebWindow.

Parameters:
webWindow - the window
Method Detail

getDelegee

public Document getDelegee()

Specified by:
getDelegee in class SimpleScriptableProxy<Document>


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