Uses of Interface
org.htmlunit.WebWindow
-
Packages that use WebWindow Package Description org.htmlunit Framework classes (contains theWebClient
class which is the main entry point).org.htmlunit.css Classes supporting Cascading Style Sheets.org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPage
which represents an HTML document and provides access to its content.org.htmlunit.javascript Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.background Classes relating to background JavaScript execution, which is usually triggered viasetTimeout()
orsetInterval()
.org.htmlunit.javascript.host Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.html Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.javascript.host.xml Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't need anything in this package.org.htmlunit.xml Classes specific to XML pages. -
-
Uses of WebWindow in org.htmlunit
Classes in org.htmlunit that implement WebWindow Modifier and Type Class Description class
DialogWindow
A window opened in JavaScript via eitherwindow.showModalDialog
orwindow.showModelessDialog
.class
TopLevelWindow
A window representing a top level browser window.class
WebWindowImpl
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Base class for common WebWindow functionality.Fields in org.htmlunit declared as WebWindow Modifier and Type Field Description private WebWindow
WebClient. currentWindow_
private WebWindow
AbstractPage. enclosingWindow_
private WebWindow
SgmlPage. enclosingWindow_
private WebWindow
TopLevelWindow. opener_
The window which caused this window to be opened, if any.private WebWindow
WebClient.LoadJob. requestingWindow_
private WebWindow
History. window_
The window to which this navigation history belongs.Fields in org.htmlunit with type parameters of type WebWindow Modifier and Type Field Description private java.util.List<WebWindow>
WebClient. windows_
Methods in org.htmlunit that return WebWindow Modifier and Type Method Description WebWindow
WebClient. getCurrentWindow()
Returns the "current" window for this client.WebWindow
AbstractPage. getEnclosingWindow()
Returns the window that this page is sitting inside.WebWindow
Page. getEnclosingWindow()
Returns the window that this page is sitting inside.WebWindow
SgmlPage. getEnclosingWindow()
Returns the window that this page is sitting inside.WebWindow
TopLevelWindow. getOpener()
Returns the opener property.WebWindow
DialogWindow. getParentWindow()
Returns the window that contains this window.WebWindow
TopLevelWindow. getParentWindow()
Returns the window that contains this window.WebWindow
WebWindow. getParentWindow()
Returns the window that contains this window.WebWindow
DialogWindow. getTopWindow()
Returns the top level window that contains this window.WebWindow
TopLevelWindow. getTopWindow()
Returns the top level window that contains this window.WebWindow
WebWindow. getTopWindow()
Returns the top level window that contains this window.WebWindow
WebWindowEvent. getWebWindow()
Returns the web window that fired the event.WebWindow
WebClient. getWebWindowByName(java.lang.String name)
Returns the firstWebWindow
that matches the specified name.WebWindow
WebClient. openTargetWindow(WebWindow opener, java.lang.String windowName, java.lang.String defaultName)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Open the window with the specified name.WebWindow
WebClient. openWindow(java.net.URL url, java.lang.String windowName)
Open a new window with the specified name.WebWindow
WebClient. openWindow(java.net.URL url, java.lang.String windowName, WebWindow opener)
Open a new window with the specified name.private WebWindow
WebClient. resolveWindow(WebWindow opener, java.lang.String name)
Methods in org.htmlunit that return types with arguments of type WebWindow Modifier and Type Method Description java.util.List<WebWindow>
WebClient. getWebWindows()
Returns an immutable list of open web windows (whether they are top level windows or not).Methods in org.htmlunit with parameters of type WebWindow Modifier and Type Method Description boolean
WebClient. containsWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns true if the list of WebWindows contains the provided one.protected HtmlPage
DefaultPageCreator. createHtmlPage(WebResponse webResponse, WebWindow webWindow)
Creates an HtmlPage for this WebResponse.Page
DefaultPageCreator. createPage(WebResponse webResponse, WebWindow webWindow)
Create a Page object for the specified web response.Page
PageCreator. createPage(WebResponse webResponse, WebWindow webWindow)
Create a Page object for the specified web response.protected TextPage
DefaultPageCreator. createTextPage(WebResponse webResponse, WebWindow webWindow)
Creates a TextPage for this WebResponse.protected UnexpectedPage
DefaultPageCreator. createUnexpectedPage(WebResponse webResponse, WebWindow webWindow)
Creates an UnexpectedPage for this WebResponse.protected XHtmlPage
DefaultPageCreator. createXHtmlPage(WebResponse webResponse, WebWindow webWindow)
Creates an XHtmlPage for this WebResponse.protected SgmlPage
DefaultPageCreator. createXmlPage(WebResponse webResponse, WebWindow webWindow)
Creates an SgmlPage for this WebResponse.void
WebClient. deregisterWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Removes a window from the list of available windows.void
WebClient. download(WebWindow requestingWindow, java.lang.String target, WebRequest request, boolean checkHash, boolean forceLoad, boolean forceAttachment, java.lang.String description)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Perform the downloads and stores it for loading later into a window.<P extends Page>
PWebClient. getPage(WebWindow webWindow, WebRequest webRequest)
Send a request to a server and return a Page that represents the response from the server.(package private) <P extends Page>
PWebClient. getPage(WebWindow webWindow, WebRequest webRequest, boolean addToHistory)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Send a request to a server and return a Page that represents the response from the server.java.util.Map<java.lang.String,java.lang.String>
StorageHolder. getSessionStorage(WebWindow webWindow)
Gets the local storage (map).void
WebClient. initialize(WebWindow webWindow, Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new web window for JavaScript.void
WebClient. initializeEmptyWindow(WebWindow webWindow, Page page)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Initializes a new empty window for JavaScript.Page
WebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow)
Creates a page based on the specified response and inserts it into the specified window.Page
WebClient. loadWebResponseInto(WebResponse webResponse, WebWindow webWindow, boolean forceAttachment)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.private WebResponse
WebClient. makeWebResponseForJavaScriptUrl(WebWindow webWindow, java.net.URL url, java.nio.charset.Charset charset)
DialogWindow
WebClient. openDialogWindow(java.net.URL url, WebWindow opener, java.lang.Object dialogArguments)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.WebWindow
WebClient. openTargetWindow(WebWindow opener, java.lang.String windowName, java.lang.String defaultName)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Open the window with the specified name.WebWindow
WebClient. openWindow(java.net.URL url, java.lang.String windowName, WebWindow opener)
Open a new window with the specified name.private static void
WebClient. processOnlyHashChange(WebWindow window, java.net.URL urlWithOnlyHashChange)
void
WebClient. registerWebWindow(WebWindow webWindow)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Adds a new window to the list of available windows.private WebWindow
WebClient. resolveWindow(WebWindow opener, java.lang.String name)
void
WebClient. setCurrentWindow(WebWindow window)
Sets the "current" window for this client.void
SgmlPage. setEnclosingWindow(WebWindow window)
Sets the window that contains this page.void
TopLevelWindow. setOpener(WebWindow opener)
Sets the opener property.Constructors in org.htmlunit with parameters of type WebWindow Constructor Description AbstractPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.History(WebWindow window)
Creates a new navigation history for the specified window.LoadJob(WebRequest request, WebResponse response, WebWindow requestingWindow, java.lang.String target, boolean forceAttachment)
SgmlPage(WebResponse webResponse, WebWindow webWindow)
Creates an instance of SgmlPage.TextPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.UnexpectedPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.WebWindowEvent(WebWindow webWindow, int type, Page oldPage, Page newPage)
Creates an instance. -
Uses of WebWindow in org.htmlunit.css
Methods in org.htmlunit.css with parameters of type WebWindow Modifier and Type Method Description static boolean
CssStyleSheet. isActive(org.htmlunit.cssparser.dom.MediaListImpl mediaList, WebWindow webWindow)
Returns whether the specifiedMediaList
is active or not.private static boolean
CssStyleSheet. isActive(org.htmlunit.cssparser.parser.media.MediaQuery mediaQuery, WebWindow webWindow)
private static double
CssStyleSheet. pixelValue(org.htmlunit.cssparser.dom.CSSValueImpl cssValue, WebWindow webWindow)
-
Uses of WebWindow in org.htmlunit.html
Classes in org.htmlunit.html that implement WebWindow Modifier and Type Class Description class
FrameWindow
The web window for a frame or iframe.Methods in org.htmlunit.html that return WebWindow Modifier and Type Method Description WebWindow
FrameWindow. getParentWindow()
Returns the window that contains this window.WebWindow
FrameWindow. getTopWindow()
Returns the top level window that contains this window.Constructors in org.htmlunit.html with parameters of type WebWindow Constructor Description HtmlPage(WebResponse webResponse, WebWindow webWindow)
Creates an instance of HtmlPage.XHtmlPage(WebResponse webResponse, WebWindow webWindow)
Creates a new XHTML page instance. -
Uses of WebWindow in org.htmlunit.javascript
Methods in org.htmlunit.javascript with parameters of type WebWindow Modifier and Type Method Description private void
JavaScriptEngine. init(WebWindow webWindow, Page page, org.htmlunit.corejs.javascript.Context context)
Initializes all the JS stuff for the window.void
AbstractJavaScriptEngine. initialize(WebWindow webWindow, Page page)
Performs initialization for the given webWindow and page.void
JavaScriptEngine. initialize(WebWindow webWindow, Page page)
Performs initialization for the given webWindow.void
AbstractJavaScriptEngine. registerWindowAndMaybeStartEventLoop(WebWindow webWindow)
Register WebWindow with the JavaScriptExecutor.void
JavaScriptEngine. registerWindowAndMaybeStartEventLoop(WebWindow webWindow)
Register WebWindow with the JavaScriptExecutor. -
Uses of WebWindow in org.htmlunit.javascript.background
Fields in org.htmlunit.javascript.background with type parameters of type WebWindow Modifier and Type Field Description private java.lang.ref.WeakReference<WebWindow>
JavaScriptExecutionJob. window_
The window to which this job belongs (weakly referenced, so as not to leak memory).private java.lang.ref.WeakReference<WebWindow>
JavaScriptJobManagerImpl. window_
The window to which this job manager belongs (weakly referenced, so as not to leak memory).Methods in org.htmlunit.javascript.background that return WebWindow Modifier and Type Method Description private WebWindow
JavaScriptJobManagerImpl. getWindow()
Returns the window to which this job manager belongs, ornull
if it has been garbage collected.Methods in org.htmlunit.javascript.background with parameters of type WebWindow Modifier and Type Method Description void
DefaultJavaScriptExecutor. addWindow(WebWindow newWindow)
Register a window with the eventLoop.void
JavaScriptExecutor. addWindow(WebWindow newWindow)
Register a window with the eventLoop.JavaScriptJob
BackgroundJavaScriptFactory. createJavaScriptJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, java.lang.String script)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string.JavaScriptFunctionJob
BackgroundJavaScriptFactory. createJavaScriptJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, java.lang.Object[] args)
Creates a new JavaScript execution job, where the JavaScript code to execute is a function.JavaScriptJobManager
BackgroundJavaScriptFactory. createJavaScriptJobManager(WebWindow webWindow)
Creates a new JavaScriptJobManager for the given window.Constructors in org.htmlunit.javascript.background with parameters of type WebWindow Constructor Description JavaScriptExecutionJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string.JavaScriptFunctionJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, java.lang.Object[] args)
Creates a new JavaScript execution job, where the JavaScript code to execute is a function.JavaScriptJobManagerImpl(WebWindow window)
Creates a new instance.JavaScriptStringJob(int initialDelay, java.lang.Integer period, java.lang.String label, WebWindow window, java.lang.String script)
Creates a new JavaScript execution job, where the JavaScript code to execute is a string. -
Uses of WebWindow in org.htmlunit.javascript.host
Fields in org.htmlunit.javascript.host declared as WebWindow Modifier and Type Field Description private WebWindow
Window. webWindow_
private WebWindow
WindowProxy. webWindow_
Methods in org.htmlunit.javascript.host that return WebWindow Modifier and Type Method Description WebWindow
Window. getWebWindow()
Returns the WebWindow associated with this Window.Methods in org.htmlunit.javascript.host with parameters of type WebWindow Modifier and Type Method Description private static java.net.URL
History. buildNewStateUrl(WebWindow webWindow, java.lang.Object url)
static WindowProxy
Window. getProxy(WebWindow w)
Returns the proxy for the specified window.void
Window. initialize(WebWindow webWindow, Page pageToEnclose)
Initializes this window.Constructors in org.htmlunit.javascript.host with parameters of type WebWindow Constructor Description WindowProxy(WebWindow webWindow)
-
Uses of WebWindow in org.htmlunit.javascript.host.html
Fields in org.htmlunit.javascript.host.html declared as WebWindow Modifier and Type Field Description private WebWindow
DocumentProxy. webWindow_
Constructors in org.htmlunit.javascript.host.html with parameters of type WebWindow Constructor Description DocumentProxy(WebWindow webWindow)
-
Uses of WebWindow in org.htmlunit.javascript.host.xml
Methods in org.htmlunit.javascript.host.xml with parameters of type WebWindow Modifier and Type Method Description private static XmlPage
XMLDocument. createParserErrorXmlPage(java.lang.String message, WebWindow webWindow)
Constructors in org.htmlunit.javascript.host.xml with parameters of type WebWindow Constructor Description XMLDocument(WebWindow enclosingWindow)
Creates a new instance, with associated XmlPage. -
Uses of WebWindow in org.htmlunit.xml
Constructors in org.htmlunit.xml with parameters of type WebWindow Constructor Description XmlPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException)
Creates an instance.XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException, boolean handleXHTMLAsHTML)
Creates an instance.XmlPage(org.w3c.dom.Node node, WebWindow enclosingWindow)
Creates an instance.
-