public abstract class WebWindowImpl extends Object implements WebWindow
WebWindow| Modifier | Constructor and Description |
|---|---|
protected |
WebWindowImpl()
Deprecated.
As of 1.12
|
|
WebWindowImpl(WebClient webClient)
Creates a window and associates it with the client.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
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.
|
void |
setEnclosedPage(Page page)
Sets the currently loaded page.
|
void |
setJobManager(com.gargoylesoftware.htmlunit.javascript.background.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 |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentWindow, getTopWindow@Deprecated protected WebWindowImpl()
public WebWindowImpl(WebClient webClient)
webClient - the web client that "owns" this windowprotected 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 com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManager getJobManager()
getJobManager in interface WebWindowpublic void setJobManager(com.gargoylesoftware.htmlunit.javascript.background.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()
public void setName(String name)
public History getHistory()
getHistory in interface WebWindowCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.