public interface WebWindow extends Serializable
Modifier and Type | Method and Description |
---|---|
Page |
getEnclosedPage()
Returns the currently loaded page or null if no page has been loaded.
|
History |
getHistory()
Returns this window's navigation history.
|
int |
getInnerHeight()
Returns the height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
|
int |
getInnerWidth()
Returns the width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
|
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.
|
int |
getOuterHeight()
Returns the height in pixels of the whole browser window.
|
int |
getOuterWidth()
Returns the width of the outside of the browser window.
|
WebWindow |
getParentWindow()
Returns the window that contains this window.
|
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
getScriptableObject()
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 |
setInnerHeight(int innerHeight)
Sets the height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.
|
void |
setInnerWidth(int innerWidth)
Sets the width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar.
|
void |
setName(String name)
Sets the name of this window.
|
void |
setOuterHeight(int outerHeight)
Sets the height in pixels of the whole browser window.
|
void |
setOuterWidth(int outerWidth)
Sets the width of the outside of the browser window.
|
void |
setScriptableObject(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scriptObject)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the JavaScript object that corresponds to this element. |
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 setScriptableObject(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject scriptObject)
scriptObject
- the JavaScript objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject getScriptableObject()
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManager getJobManager()
boolean isClosed()
true
when the window is closedint getInnerWidth()
void setInnerWidth(int innerWidth)
innerWidth
- the inner widthint getOuterWidth()
void setOuterWidth(int outerWidth)
outerWidth
- the outer widthint getInnerHeight()
void setInnerHeight(int innerHeight)
innerHeight
- the inner heightint getOuterHeight()
void setOuterHeight(int outerHeight)
outerHeight
- the outer heightCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.