|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.WebWindowImpl
com.gargoylesoftware.htmlunit.TopLevelWindow
public class TopLevelWindow
A window representing a top level browser window.
Constructor Summary | |
---|---|
TopLevelWindow(String name,
WebClient webClient)
Create an instance. |
Method Summary | |
---|---|
void |
close()
Close this window. |
WebWindow |
getOpener()
Return the opener property. |
WebWindow |
getParentWindow()
Return the window that contains this window. Since this is a top level window, return this window. |
WebWindow |
getTopWindow()
Return the top level window that contains this window. Since this is a top level window, return this window. |
protected boolean |
isJavaScriptInitializationNeeded()
Returns true if this window needs JavaScript initialization to occur when the enclosed page is set. |
void |
setOpener(WebWindow opener)
Set the opener property. |
String |
toString()
Return a string representation of this object |
Methods inherited from class com.gargoylesoftware.htmlunit.WebWindowImpl |
---|
addChildWindow, getEnclosedPage, getName, getScriptObject, getThreadManager, getWebClient, performRegistration, setEnclosedPage, setName, setScriptObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopLevelWindow(String name, WebClient webClient)
name
- The name of the new windowwebClient
- The web client that "owns" this window.Method Detail |
---|
public WebWindow getParentWindow()
getParentWindow
in interface WebWindow
public WebWindow getTopWindow()
getTopWindow
in interface WebWindow
protected boolean isJavaScriptInitializationNeeded()
isJavaScriptInitializationNeeded
in class WebWindowImpl
public String toString()
toString
in class Object
public void setOpener(WebWindow opener)
opener
- The new openerpublic WebWindow getOpener()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |