|
||||||||||
| 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. |
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. |
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. |
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 |
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 |
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()
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 height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||