|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebWindow
An interface that represents one window in a browser. It could be a top level window or a frame.
Method Summary | |
---|---|
Page |
getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded. |
History |
getHistory()
Returns this window's navigation history. |
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManager |
getJobManager()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Returns the job manager for this window. |
String |
getName()
Returns the name of this window. |
WebWindow |
getParentWindow()
Returns the window that contains this window. |
Object |
getScriptObject()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Returns the JavaScript object that corresponds to this element. |
WebWindow |
getTopWindow()
Returns the top level window that contains this window. |
WebClient |
getWebClient()
Returns the web client that "owns" this window. |
boolean |
isClosed()
Indicates if this window is closed. |
void |
setEnclosedPage(Page page)
Sets the currently loaded page. |
void |
setName(String name)
Sets the name of this window. |
void |
setScriptObject(Object scriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Sets the JavaScript object that corresponds to this element. |
Method Detail |
---|
String getName()
void setName(String name)
name
- the new window namePage getEnclosedPage()
void setEnclosedPage(Page page)
page
- the new page or null if there is no page (ie empty window)WebWindow getParentWindow()
WebWindow getTopWindow()
WebClient getWebClient()
History getHistory()
void setScriptObject(Object scriptObject)
scriptObject
- the JavaScript objectObject getScriptObject()
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManager getJobManager()
boolean isClosed()
true
when the window is closed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |