Uses of Interface
org.htmlunit.WebWindow
Packages that use WebWindow
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes supporting Cascading Style Sheets.
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.Classes in this package are specific to the JavaScript engine - users of HtmlUnit shouldn't
need anything in this package.
Classes relating to background JavaScript execution, which is usually triggered via
setTimeout() or setInterval().Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Classes specific to XML pages.
-
Uses of WebWindow in org.htmlunit
Classes in org.htmlunit that implement WebWindowModifier and TypeClassDescriptionclassA window opened in JavaScript via eitherwindow.showModalDialogorwindow.showModelessDialog.classA window representing a top level browser window.classINTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Base class for common WebWindow functionality.Fields in org.htmlunit declared as WebWindowModifier and TypeFieldDescriptionprivate WebWindowWebClient.currentWindow_private final WebWindowAbstractPage.enclosingWindow_private WebWindowSgmlPage.enclosingWindow_private WebWindowTopLevelWindow.opener_The window which caused this window to be opened, if any.private final WebWindowWebClient.LoadJob.requestingWindow_private final WebWindowHistory.window_The window to which this navigation history belongs.Fields in org.htmlunit with type parameters of type WebWindowMethods in org.htmlunit that return WebWindowModifier and TypeMethodDescriptionWebClient.getCurrentWindow()Returns the "current" window for this client.AbstractPage.getEnclosingWindow()Returns the window that this page is sitting inside.Page.getEnclosingWindow()Returns the window that this page is sitting inside.SgmlPage.getEnclosingWindow()Returns the window that this page is sitting inside.TopLevelWindow.getOpener()Returns the opener property.DialogWindow.getParentWindow()Returns the window that contains this window.TopLevelWindow.getParentWindow()Returns the window that contains this window.WebWindow.getParentWindow()Returns the window that contains this window.DialogWindow.getTopWindow()Returns the top level window that contains this window.TopLevelWindow.getTopWindow()Returns the top level window that contains this window.WebWindow.getTopWindow()Returns the top level window that contains this window.WebWindowEvent.getWebWindow()Returns the web window that fired the event.WebClient.getWebWindowByName(String name) Returns the firstWebWindowthat matches the specified name.WebClient.openTargetWindow(WebWindow opener, String windowName, String defaultName) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Open the window with the specified name.WebClient.openWindow(URL url, String windowName) Open a new window with the specified name.WebClient.openWindow(URL url, String windowName, WebWindow opener) Open a new window with the specified name.private WebWindowWebClient.resolveWindow(WebWindow opener, String name) Methods in org.htmlunit that return types with arguments of type WebWindowModifier and TypeMethodDescriptionWebClient.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 WebWindowModifier and TypeMethodDescriptionbooleanWebClient.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 HtmlPageDefaultPageCreator.createHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an HtmlPage for this WebResponse.DefaultPageCreator.createPage(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.PageCreator.createPage(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.protected TextPageDefaultPageCreator.createTextPage(WebResponse webResponse, WebWindow webWindow) Creates a TextPage for this WebResponse.protected UnexpectedPageDefaultPageCreator.createUnexpectedPage(WebResponse webResponse, WebWindow webWindow) Creates an UnexpectedPage for this WebResponse.protected XHtmlPageDefaultPageCreator.createXHtmlPage(WebResponse webResponse, WebWindow webWindow) Creates an XHtmlPage for this WebResponse.protected SgmlPageDefaultPageCreator.createXmlPage(WebResponse webResponse, WebWindow webWindow) Creates an SgmlPage for this WebResponse.voidWebClient.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.voidWebClient.download(WebWindow requestingWindow, String target, WebRequest request, boolean checkHash, boolean forceLoad, boolean forceAttachment, 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.StorageHolder.getSessionStorage(WebWindow webWindow) Gets the local storage (map).voidWebClient.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.voidWebClient.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.WebClient.loadWebResponseInto(WebResponse webResponse, WebWindow webWindow) Creates a page based on the specified response and inserts it into the specified window.WebClient.loadWebResponseInto(WebResponse webResponse, WebWindow webWindow, boolean forceAttachment) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.private WebResponseWebClient.makeWebResponseForJavaScriptUrl(WebWindow webWindow, URL url, Charset charset) WebClient.openDialogWindow(URL url, WebWindow opener, Object dialogArguments) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.WebClient.openTargetWindow(WebWindow opener, String windowName, String defaultName) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Open the window with the specified name.WebClient.openWindow(URL url, String windowName, WebWindow opener) Open a new window with the specified name.private static voidWebClient.processOnlyHashChange(WebWindow window, URL urlWithOnlyHashChange) voidWebClient.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 WebWindowWebClient.resolveWindow(WebWindow opener, String name) voidWebClient.setCurrentWindow(WebWindow window) Sets the "current" window for this client.voidSgmlPage.setEnclosingWindow(WebWindow window) Sets the window that contains this page.voidSets the opener property.Constructors in org.htmlunit with parameters of type WebWindowModifierConstructorDescriptionAbstractPage(WebResponse webResponse, WebWindow enclosingWindow) Creates an instance.Creates a new navigation history for the specified window.(package private)LoadJob(WebRequest request, WebResponse response, WebWindow requestingWindow, 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 WebWindowModifier and TypeMethodDescriptionstatic booleanReturns whether the specifiedMediaListis active or not.private static booleanCssStyleSheet.isActive(org.htmlunit.cssparser.parser.media.MediaQuery mediaQuery, WebWindow webWindow) private static doubleCssStyleSheet.pixelValue(org.htmlunit.cssparser.dom.CSSValueImpl cssValue, WebWindow webWindow) -
Uses of WebWindow in org.htmlunit.html
Classes in org.htmlunit.html that implement WebWindowMethods in org.htmlunit.html that return WebWindowModifier and TypeMethodDescriptionFrameWindow.getParentWindow()Returns the window that contains this window.FrameWindow.getTopWindow()Returns the top level window that contains this window.Constructors in org.htmlunit.html with parameters of type WebWindowModifierConstructorDescriptionHtmlPage(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 WebWindowModifier and TypeMethodDescriptionprivate voidJavaScriptEngine.init(WebWindow webWindow, Page page, org.htmlunit.corejs.javascript.Context context) Initializes all the JS stuff for the window.voidAbstractJavaScriptEngine.initialize(WebWindow webWindow, Page page) Performs initialization for the given webWindow and page.voidJavaScriptEngine.initialize(WebWindow webWindow, Page page) Performs initialization for the given webWindow.voidAbstractJavaScriptEngine.registerWindowAndMaybeStartEventLoop(WebWindow webWindow) Register WebWindow with the JavaScriptExecutor.voidJavaScriptEngine.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 WebWindowModifier and TypeFieldDescriptionprivate final WeakReference<WebWindow> JavaScriptExecutionJob.window_The window to which this job belongs (weakly referenced, so as not to leak memory).private final 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 WebWindowModifier and TypeMethodDescriptionprivate WebWindowJavaScriptJobManagerImpl.getWindow()Returns the window to which this job manager belongs, ornullif it has been garbage collected.Methods in org.htmlunit.javascript.background with parameters of type WebWindowModifier and TypeMethodDescriptionvoidRegister a window with the eventLoop.voidRegister a window with the eventLoop.BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay, Integer period, String label, WebWindow window, String script) Creates a new JavaScript execution job, where the JavaScript code to execute is a string.BackgroundJavaScriptFactory.createJavaScriptJob(int initialDelay, Integer period, String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, Object[] args) Creates a new JavaScript execution job, where the JavaScript code to execute is a function.BackgroundJavaScriptFactory.createJavaScriptJobManager(WebWindow webWindow) Creates a new JavaScriptJobManager for the given window.Constructors in org.htmlunit.javascript.background with parameters of type WebWindowModifierConstructorDescription(package private)JavaScriptExecutionJob(int initialDelay, Integer period, String label, WebWindow window) Creates a new JavaScript execution job, where the JavaScript code to execute is a string.(package private)JavaScriptFunctionJob(int initialDelay, Integer period, String label, WebWindow window, org.htmlunit.corejs.javascript.Function function, Object[] args) Creates a new JavaScript execution job, where the JavaScript code to execute is a function.(package private)JavaScriptJobManagerImpl(WebWindow window) Creates a new instance.(package private)JavaScriptStringJob(int initialDelay, Integer period, String label, WebWindow window, 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 WebWindowModifier and TypeFieldDescriptionprivate WebWindowWindow.webWindow_private final WebWindowWindowProxy.webWindow_Methods in org.htmlunit.javascript.host that return WebWindowModifier and TypeMethodDescriptionWindow.getWebWindow()Returns the WebWindow associated with this Window.Methods in org.htmlunit.javascript.host with parameters of type WebWindowModifier and TypeMethodDescriptionprivate static URLHistory.buildNewStateUrl(WebWindow webWindow, Object url) static WindowProxyReturns the proxy for the specified window.voidWindow.initialize(WebWindow webWindow, Page pageToEnclose) Initializes this window.Constructors in org.htmlunit.javascript.host with parameters of type WebWindow -
Uses of WebWindow in org.htmlunit.javascript.host.html
Fields in org.htmlunit.javascript.host.html declared as WebWindowConstructors in org.htmlunit.javascript.host.html with parameters of type WebWindow -
Uses of WebWindow in org.htmlunit.javascript.host.xml
Methods in org.htmlunit.javascript.host.xml with parameters of type WebWindowModifier and TypeMethodDescriptionprivate static XmlPageXMLDocument.createParserErrorXmlPage(String message, WebWindow webWindow) Constructors in org.htmlunit.javascript.host.xml with parameters of type WebWindowModifierConstructorDescriptionXMLDocument(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 WebWindowModifierConstructorDescriptionXmlPage(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.Creates an instance.