|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebWindowImpl
public abstract class WebWindowImpl
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Base class for common WebWindow functionality. While public, this class is not
exposed in any other places of the API. Internally we can cast to this class
when we need access to functionality that is not present in WebWindow
| Constructor Summary | |
|---|---|
protected |
WebWindowImpl()
Deprecated. |
|
WebWindowImpl(WebClient webClient)
Creates a window and associates it with the client. |
| Method Summary | |
|---|---|
void |
addChildWindow(FrameWindow child)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
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. |
Object |
getScriptObject()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Returns the JavaScript object that corresponds to this element. |
WebClient |
getWebClient()
Returns the web client that "owns" this window. |
boolean |
isClosed()
Indicates if this window is closed. |
protected abstract boolean |
isJavaScriptInitializationNeeded()
Returns true if this window needs JavaScript initialization to occur when the enclosed page is set. |
protected void |
performRegistration()
Registers the window with the client. |
protected void |
setClosed()
Sets this window as 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 |
setJobManager(JavaScriptJobManager jobManager)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.gargoylesoftware.htmlunit.WebWindow |
|---|
getParentWindow, getTopWindow |
| Constructor Detail |
|---|
@Deprecated protected WebWindowImpl()
public WebWindowImpl(WebClient webClient)
webClient - the web client that "owns" this window| Method Detail |
|---|
protected void performRegistration()
public WebClient getWebClient()
getWebClient in interface WebWindowpublic Page getEnclosedPage()
getEnclosedPage in interface WebWindowpublic void setEnclosedPage(Page page)
setEnclosedPage in interface WebWindowpage - the new page or null if there is no page (ie empty window)protected abstract boolean isJavaScriptInitializationNeeded()
public void setScriptObject(Object scriptObject)
setScriptObject in interface WebWindowscriptObject - the JavaScript objectpublic Object getScriptObject()
getScriptObject in interface WebWindowpublic JavaScriptJobManager getJobManager()
getJobManager in interface WebWindowpublic void setJobManager(JavaScriptJobManager jobManager)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the JavaScript job manager for this window.
jobManager - the JavaScript job manager to usepublic void addChildWindow(FrameWindow child)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Adds a child to this window, for shutdown purposes.
child - the child window to associate with this windowpublic String getName()
getName in interface WebWindowpublic void setName(String name)
setName in interface WebWindowname - the new window namepublic History getHistory()
getHistory in interface WebWindowpublic boolean isClosed()
isClosed in interface WebWindowtrue when the window is closedprotected void setClosed()
public int getInnerWidth()
getInnerWidth in interface WebWindowpublic void setInnerWidth(int innerWidth)
setInnerWidth in interface WebWindowinnerWidth - the inner widthpublic int getOuterWidth()
getOuterWidth in interface WebWindowpublic void setOuterWidth(int outerWidth)
setOuterWidth in interface WebWindowouterWidth - the outer widthpublic int getInnerHeight()
getInnerHeight in interface WebWindowpublic void setInnerHeight(int innerHeight)
setInnerHeight in interface WebWindowinnerHeight - the inner heightpublic int getOuterHeight()
getOuterHeight in interface WebWindowpublic void setOuterHeight(int outerHeight)
setOuterHeight in interface WebWindowouterHeight - the outer height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||