|
|||||
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(java.lang.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. |
void |
setOpener(WebWindow opener)
Set the opener property. |
java.lang.String |
toString()
Return a string representation of this object |
Methods inherited from class com.gargoylesoftware.htmlunit.WebWindowImpl |
---|
addChildWindow, getEnclosedPage, getName, getScriptObject, getThreadManager, getWebClient, setEnclosedPage, setName, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopLevelWindow(java.lang.String name, WebClient webClient)
name
- The name of the new windowwebClient
- The web client that "owns" this window.Method Detail |
---|
public void close()
public WebWindow getOpener()
public WebWindow getParentWindow()
getParentWindow
in interface WebWindow
public WebWindow getTopWindow()
getTopWindow
in interface WebWindow
public void setOpener(WebWindow opener)
opener
- The new openerpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |