Class Window

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable, WindowOrWorkerGlobalScope

    public class Window
    extends EventTarget
    implements WindowOrWorkerGlobalScope, java.lang.AutoCloseable
    A JavaScript object for Window.
    See Also:
    MSDN documentation, Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Window.AnimationFrame  
      private static class  Window.Filter  
      • Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
    • Constructor Summary

      Constructors 
      Constructor Description
      Window()
      Creates an instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void alert​(java.lang.Object message)
      The JavaScript function alert().
      int animateAnimationsFrames()
      Invokes all the animation callbacks registered for this window by calling requestAnimationFrame(Object) once.
      java.lang.String atob​(java.lang.String encodedData)
      Decodes a string of data which has been encoded using base-64 encoding.
      void blur()
      Removes focus from this element.
      java.lang.String btoa​(java.lang.String stringToEncode)
      Creates a base-64 encoded ASCII string from a string of binary data.
      void cancelAnimationFrame​(java.lang.Object requestId)
      Remove the callback from the list of animationFrames.
      void captureEvents​(java.lang.String type)
      Does nothing special anymore.
      void clearInterval​(int intervalID)
      Cancels the interval previously started using the setInterval(Context, Scriptable, Scriptable, Object[], Function) method.
      void clearTimeout​(int timeoutId)
      Cancels a time-out previously set with the setTimeout(Context, Scriptable, Scriptable, Object[], Function) method.
      void close()
      void close_js()
      Closes this window.
      boolean confirm​(java.lang.String message)
      The JavaScript function confirm.
      boolean dispatchEvent​(Event event)
      Dispatches an event into the event system (standards-conformant browsers only).
      void dump​(java.lang.String message)
      Logs messages to the browser's standard output (stdout).
      boolean find​(java.lang.String search, boolean caseSensitive, boolean backwards, boolean wrapAround, boolean wholeWord, boolean searchInFrames, boolean showDialog)
      Stub only at the moment.
      void focus()
      Sets the focus to this element.
      java.lang.Object get​(int index, org.htmlunit.corejs.javascript.Scriptable start)
      BrowserVersion getBrowserVersion()
      Gets the browser version currently used.
      java.lang.Object getClientInformation()
      Returns the JavaScript property clientInformation.
      ComputedCSSStyleDeclaration getComputedStyle​(java.lang.Object element, java.lang.String pseudoElement)
      Returns computed style of the element.
      java.lang.Object getControllers()
      Gets the controllers.
      Crypto getCrypto()
      Returns the crypto property.
      Event getCurrentEvent()
      Returns the current event (used internally regardless of the emulation mode).
      int getDevicePixelRatio()
      Returns the devicePixelRatio property.
      Document getDocument()
      Returns the window's current document.
      DocumentProxy getDocument_js()
      Returns the JavaScript property document.
      private java.lang.Object getElementsByName​(HtmlPage page, java.lang.String name)  
      java.lang.Object getEvent()
      Returns the current event.
      External getExternal()
      Returns the external property.
      HtmlUnitScriptable getFrameElement()
      Returns the (i)frame in which the window is contained.
      private HTMLCollection getFrames()
      Returns the live collection of frames contained by this window.
      Window getFrames_js()
      Returns the value of the frames property.
      private static java.lang.Object getFrameWindowByName​(HtmlPage page, java.lang.String name)  
      History getHistory()
      Returns the history property.
      int getInnerHeight()
      Returns the innerHeight.
      int getInnerWidth()
      Returns the innerWidth.
      java.lang.Object getIsSecureContext()  
      int getLength()
      Returns the number of frames contained by this window.
      Storage getLocalStorage()
      Returns the localStorage property.
      Location getLocation()
      Returns the location property.
      int getMozInnerScreenX()
      Returns the value of mozInnerScreenX property.
      int getMozInnerScreenY()
      Returns the value of mozInnerScreenY property.
      java.lang.String getName()
      Returns the value of the window's name property.
      Navigator getNavigator()
      Returns the JavaScript property navigator.
      Netscape getNetscape()
      Returns the value of netscape property.
      java.lang.Object getOffscreenBuffering()
      Returns the offscreenBuffering property.
      org.htmlunit.corejs.javascript.Function getOnabort()
      Returns the onabort event handler.
      org.htmlunit.corejs.javascript.Function getOnafterprint()
      Returns the onafterprint event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationend()
      Returns the onanimationend event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationiteration()
      Returns the onanimationiteration event handler.
      org.htmlunit.corejs.javascript.Function getOnanimationstart()
      Returns the onanimationstart event handler.
      org.htmlunit.corejs.javascript.Function getOnauxclick()
      Returns the onauxclick event handler.
      org.htmlunit.corejs.javascript.Function getOnbeforeprint()
      Returns the onbeforeprint event handler.
      java.lang.Object getOnbeforeunload()
      Returns the value of the window's onbeforeunload property.
      java.lang.Object getOnblur()
      Returns the onblur property (not necessary a function if something else has been set).
      org.htmlunit.corejs.javascript.Function getOncancel()
      Returns the oncancel event handler.
      org.htmlunit.corejs.javascript.Function getOncanplay()
      Returns the oncanplay event handler.
      org.htmlunit.corejs.javascript.Function getOncanplaythrough()
      Returns the oncanplaythrough event handler.
      java.lang.Object getOnchange()
      Getter for the onchange event handler.
      java.lang.Object getOnclick()
      Returns the onclick property (not necessary a function if something else has been set).
      org.htmlunit.corejs.javascript.Function getOnclose()
      Returns the onclose event handler.
      org.htmlunit.corejs.javascript.Function getOncontextmenu()
      Returns the oncontextmenu event handler.
      org.htmlunit.corejs.javascript.Function getOncuechange()
      Returns the oncuechange event handler.
      java.lang.Object getOndblclick()
      Returns the ondblclick property (not necessary a function if something else has been set).
      org.htmlunit.corejs.javascript.Function getOndevicemotion()
      Returns the ondevicemotion event handler.
      org.htmlunit.corejs.javascript.Function getOndeviceorientation()
      Returns the ondeviceorientation event handler.
      org.htmlunit.corejs.javascript.Function getOndeviceorientationabsolute()
      Returns the ondeviceorientationabsolute event handler.
      org.htmlunit.corejs.javascript.Function getOndrag()
      Returns the ondrag event handler.
      org.htmlunit.corejs.javascript.Function getOndragend()
      Returns the ondragend event handler.
      org.htmlunit.corejs.javascript.Function getOndragenter()
      Returns the ondragenter event handler.
      org.htmlunit.corejs.javascript.Function getOndragleave()
      Returns the ondragleave event handler.
      org.htmlunit.corejs.javascript.Function getOndragover()
      Returns the ondragover event handler.
      org.htmlunit.corejs.javascript.Function getOndragstart()
      Returns the ondragstart event handler.
      org.htmlunit.corejs.javascript.Function getOndrop()
      Returns the ondrop event handler.
      org.htmlunit.corejs.javascript.Function getOndurationchange()
      Returns the ondurationchange event handler.
      org.htmlunit.corejs.javascript.Function getOnemptied()
      Returns the onemptied event handler.
      org.htmlunit.corejs.javascript.Function getOnended()
      Returns the onended event handler.
      java.lang.Object getOnerror()
      Returns the value of the window's onerror property.
      org.htmlunit.corejs.javascript.Function getOnfocus()
      Returns the onfocus event handler.
      org.htmlunit.corejs.javascript.Function getOngotpointercapture()
      Returns the ongotpointercapture event handler.
      java.lang.Object getOnhashchange()
      Returns the onhashchange property (not necessary a function if something else has been set).
      org.htmlunit.corejs.javascript.Function getOninput()
      Returns the oninput event handler.
      org.htmlunit.corejs.javascript.Function getOninvalid()
      Returns the oninvalid event handler.
      org.htmlunit.corejs.javascript.Function getOnkeydown()
      Returns the onkeydown event handler.
      org.htmlunit.corejs.javascript.Function getOnkeypress()
      Returns the onkeypress event handler.
      org.htmlunit.corejs.javascript.Function getOnkeyup()
      Returns the onkeyup event handler.
      org.htmlunit.corejs.javascript.Function getOnlanguagechange()
      Returns the onlanguagechange event handler.
      java.lang.Object getOnload()
      Returns the onload property.
      org.htmlunit.corejs.javascript.Function getOnloadeddata()
      Returns the onloadeddata event handler.
      org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
      Returns the onloadedmetadata event handler.
      org.htmlunit.corejs.javascript.Function getOnloadstart()
      Returns the onloadstart event handler.
      org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
      Returns the onlostpointercapture event handler.
      java.lang.Object getOnmessage()
      Returns the value of the window's onmessage property.
      org.htmlunit.corejs.javascript.Function getOnmousedown()
      Returns the onmousedown event handler.
      org.htmlunit.corejs.javascript.Function getOnmouseenter()
      Returns the onmouseenter event handler.
      org.htmlunit.corejs.javascript.Function getOnmouseleave()
      Returns the onmouseleave event handler.
      org.htmlunit.corejs.javascript.Function getOnmousemove()
      Returns the onmousemove event handler.
      org.htmlunit.corejs.javascript.Function getOnmouseout()
      Returns the onmouseout event handler.
      org.htmlunit.corejs.javascript.Function getOnmouseover()
      Returns the onmouseover event handler.
      org.htmlunit.corejs.javascript.Function getOnmouseup()
      Returns the onmouseup event handler.
      org.htmlunit.corejs.javascript.Function getOnmousewheel()
      Returns the onmousewheel event handler.
      org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
      Returns the onmozfullscreenchange event handler.
      org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
      Returns the onmozfullscreenerror event handler.
      org.htmlunit.corejs.javascript.Function getOnoffline()
      Returns the onoffline event handler.
      org.htmlunit.corejs.javascript.Function getOnonline()
      Returns the ononline event handler.
      org.htmlunit.corejs.javascript.Function getOnpagehide()
      Returns the onpagehide event handler.
      org.htmlunit.corejs.javascript.Function getOnpageshow()
      Returns the onpageshow event handler.
      org.htmlunit.corejs.javascript.Function getOnpause()
      Returns the onpause event handler.
      org.htmlunit.corejs.javascript.Function getOnplay()
      Returns the onplay event handler.
      org.htmlunit.corejs.javascript.Function getOnplaying()
      Returns the onplaying event handler.
      org.htmlunit.corejs.javascript.Function getOnpointercancel()
      Returns the onpointercancel event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerdown()
      Returns the onpointerdown event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerenter()
      Returns the onpointerenter event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerleave()
      Returns the onpointerleave event handler.
      org.htmlunit.corejs.javascript.Function getOnpointermove()
      Returns the onpointermove event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerout()
      Returns the onpointerout event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerover()
      Returns the onpointerover event handler.
      org.htmlunit.corejs.javascript.Function getOnpointerup()
      Returns the onpointerup event handler.
      org.htmlunit.corejs.javascript.Function getOnpopstate()
      Returns the onpopstate event handler.
      org.htmlunit.corejs.javascript.Function getOnprogress()
      Returns the onprogress event handler.
      org.htmlunit.corejs.javascript.Function getOnratechange()
      Returns the onratechange event handler.
      org.htmlunit.corejs.javascript.Function getOnrejectionhandled()
      Returns the onrejectionhandled event handler.
      org.htmlunit.corejs.javascript.Function getOnreset()
      Returns the onreset event handler.
      org.htmlunit.corejs.javascript.Function getOnresize()
      Returns the onresize event handler.
      org.htmlunit.corejs.javascript.Function getOnscroll()
      Returns the onscroll event handler.
      org.htmlunit.corejs.javascript.Function getOnsearch()
      Returns the onsearch event handler.
      org.htmlunit.corejs.javascript.Function getOnseeked()
      Returns the onseeked event handler.
      org.htmlunit.corejs.javascript.Function getOnseeking()
      Returns the onseeking event handler.
      org.htmlunit.corejs.javascript.Function getOnselect()
      Returns the onselect event handler.
      org.htmlunit.corejs.javascript.Function getOnstalled()
      Returns the onstalled event handler.
      org.htmlunit.corejs.javascript.Function getOnstorage()
      Returns the onstorage event handler.
      java.lang.Object getOnsubmit()
      Getter for the onsubmit event handler.
      org.htmlunit.corejs.javascript.Function getOnsuspend()
      Returns the onsuspend event handler.
      org.htmlunit.corejs.javascript.Function getOntimeupdate()
      Returns the ontimeupdate event handler.
      org.htmlunit.corejs.javascript.Function getOntoggle()
      Returns the ontoggle event handler.
      org.htmlunit.corejs.javascript.Function getOntransitionend()
      Returns the ontransitionend event handler.
      org.htmlunit.corejs.javascript.Function getOnunhandledrejection()
      Returns the onunhandledrejection event handler.
      org.htmlunit.corejs.javascript.Function getOnunload()
      Returns the onunload event handler.
      org.htmlunit.corejs.javascript.Function getOnvolumechange()
      Returns the onvolumechange event handler.
      org.htmlunit.corejs.javascript.Function getOnwaiting()
      Returns the onwaiting event handler.
      org.htmlunit.corejs.javascript.Function getOnwebkitanimationend()
      Returns the onwebkitanimationend event handler.
      org.htmlunit.corejs.javascript.Function getOnwebkitanimationiteration()
      Returns the onwebkitanimationiteration event handler.
      org.htmlunit.corejs.javascript.Function getOnwebkitanimationstart()
      Returns the onwebkitanimationstart event handler.
      org.htmlunit.corejs.javascript.Function getOnwebkittransitionend()
      Returns the onwebkittransitionend event handler.
      org.htmlunit.corejs.javascript.Function getOnwheel()
      Returns the onwheel event handler.
      java.lang.Object getOpener()
      Returns the value of the opener property.
      int getOuterHeight()
      Returns the outerHeight.
      int getOuterWidth()
      Returns the outerWidth.
      int getPageXOffset()
      Returns the value of pageXOffset property.
      int getPageYOffset()
      Returns the value of pageYOffset property.
      org.htmlunit.corejs.javascript.ScriptableObject getParent()
      Returns the value of the parent property.
      Performance getPerformance()
      Returns the performance property.
      static int getPort​(java.net.URL url)
      Returns the port of the specified URL.
      org.htmlunit.corejs.javascript.Scriptable getPrototype​(java.lang.Class<? extends HtmlUnitScriptable> jsClass)
      Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope.
      static WindowProxy getProxy​(WebWindow w)
      Returns the proxy for the specified window.
      Screen getScreen()
      Returns the screen property.
      int getScrollX()
      Returns the value of scrollX property.
      int getScrollY()
      Returns the value of scrollY property.
      Selection getSelection()
      Returns the current selection.
      Selection getSelectionImpl()
      Returns the current selection.
      Window getSelf()
      Returns the self property.
      Storage getSessionStorage()
      Returns the sessionStorage property.
      SpeechSynthesis getSpeechSynthesis()
      Returns the speechSynthesis property.
      java.lang.String getStatus()
      Returns the text from the status line.
      Storage getStorage​(StorageHolder.Type storageType)
      Gets the storage of the specified type.
      StyleMedia getStyleMedia()
      Returns the styleMedia property.
      java.lang.Object getTop()
      Returns the value of the top property.
      WebWindow getWebWindow()
      Returns the WebWindow associated with this Window.
      Window getWindow_js()
      Returns the window property.
      java.lang.Object getWithFallback​(java.lang.String name)
      To be called when the property detection fails in normal scenarios.
      void initialize()
      Initializes the object.
      void initialize​(Page enclosedPage)
      Initialize the object.
      void initialize​(WebWindow webWindow, Page pageToEnclose)
      Initializes this window.
      boolean isClosed()
      Indicates if this window is closed.
      boolean isConst​(java.lang.String name)
      Used to allow re-declaration of constants (eg: "var undefined;").
      static org.htmlunit.corejs.javascript.Scriptable jsConstructor​(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function ctorObj, boolean inNewExpr)
      Creates an instance.
      private java.net.URL makeUrlForOpenWindow​(java.lang.String urlString)  
      MediaQueryList matchMedia​(java.lang.String mediaQueryString)
      Returns a new MediaQueryList object representing the parsed results of the specified media query string.
      void moveBy​(int x, int y)
      Does nothing.
      void moveTo​(int x, int y)
      Does nothing.
      WindowProxy open​(java.lang.Object url, java.lang.Object name, java.lang.Object features, java.lang.Object replace)
      Opens a new window.
      static void postMessage​(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function funObj)
      Posts a message.
      void print()
      Prints the current page.
      java.lang.String prompt​(java.lang.String message, java.lang.Object defaultValue)
      The JavaScript function prompt.
      void put​(java.lang.String name, org.htmlunit.corejs.javascript.Scriptable start, java.lang.Object value)
      private void readObject​(java.io.ObjectInputStream stream)
      Restores the transient fields during deserialization.
      void releaseEvents​(java.lang.String type)
      Does nothing special anymore.
      int requestAnimationFrame​(java.lang.Object callback)
      Add callback to the list of animationFrames.
      void resizeBy​(int width, int height)
      Does nothing.
      void resizeTo​(int width, int height)
      Does nothing.
      void scroll​(int x, int y)
      Scrolls to the specified location on the page.
      void scrollBy​(int x, int y)
      Scrolls the window content the specified distance.
      void scrollByLines​(int lines)
      Scrolls the window content down by the specified number of lines.
      void scrollByPages​(int pages)
      Scrolls the window content down by the specified number of pages.
      void scrollTo​(int x, int y)
      Scrolls to the specified location on the page.
      void setClientInformation​(java.lang.Object clientInformation)  
      void setControllers​(java.lang.Object value)
      Sets the controllers.
      void setCurrentEvent​(Event event)
      Sets the current event.
      private void setHandlerForJavaScript​(java.lang.String eventName, java.lang.Object handler)  
      void setInnerHeight​(int height)
      Sets the innerHeight.
      void setInnerWidth​(int width)
      Sets the innerWidth.
      static java.lang.Object setInterval​(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
      Sets a chunk of JavaScript to be invoked each time a specified number of milliseconds has elapsed.
      void setLocation​(java.lang.String newLocation)
      Sets the location property.
      void setName​(java.lang.String name)
      Sets the value of the window's name property.
      void setOnabort​(java.lang.Object onabort)
      Sets the onabort event handler.
      void setOnafterprint​(java.lang.Object onafterprint)
      Sets the onafterprint event handler.
      void setOnanimationend​(java.lang.Object onanimationend)
      Sets the onanimationend event handler.
      void setOnanimationiteration​(java.lang.Object onanimationiteration)
      Sets the onanimationiteration event handler.
      void setOnanimationstart​(java.lang.Object onanimationstart)
      Sets the onanimationstart event handler.
      void setOnauxclick​(java.lang.Object onauxclick)
      Sets the onauxclick event handler.
      void setOnbeforeprint​(java.lang.Object onbeforeprint)
      Sets the onbeforeprint event handler.
      void setOnbeforeunload​(java.lang.Object onbeforeunload)
      Sets the value of the window's onbeforeunload property.
      void setOnblur​(java.lang.Object onblur)
      Sets the value of the onblur event handler.
      void setOncancel​(java.lang.Object oncancel)
      Sets the oncancel event handler.
      void setOncanplay​(java.lang.Object oncanplay)
      Sets the oncanplay event handler.
      void setOncanplaythrough​(java.lang.Object oncanplaythrough)
      Sets the oncanplaythrough event handler.
      void setOnchange​(java.lang.Object onchange)
      Setter for the onchange event handler.
      void setOnclick​(java.lang.Object onclick)
      Sets the value of the onclick event handler.
      void setOnclose​(java.lang.Object onclose)
      Sets the onclose event handler.
      void setOncontextmenu​(java.lang.Object oncontextmenu)
      Sets the oncontextmenu event handler.
      void setOncuechange​(java.lang.Object oncuechange)
      Sets the oncuechange event handler.
      void setOndblclick​(java.lang.Object ondblclick)
      Sets the value of the ondblclick event handler.
      void setOndevicemotion​(java.lang.Object ondevicemotion)
      Sets the ondevicemotion event handler.
      void setOndeviceorientation​(java.lang.Object ondeviceorientation)
      Sets the ondeviceorientation event handler.
      void setOndeviceorientationabsolute​(java.lang.Object ondeviceorientationabsolute)
      Sets the ondeviceorientationabsolute event handler.
      void setOndrag​(java.lang.Object ondrag)
      Sets the ondrag event handler.
      void setOndragend​(java.lang.Object ondragend)
      Sets the ondragend event handler.
      void setOndragenter​(java.lang.Object ondragenter)
      Sets the ondragenter event handler.
      void setOndragleave​(java.lang.Object ondragleave)
      Sets the ondragleave event handler.
      void setOndragover​(java.lang.Object ondragover)
      Sets the ondragover event handler.
      void setOndragstart​(java.lang.Object ondragstart)
      Sets the ondragstart event handler.
      void setOndrop​(java.lang.Object ondrop)
      Sets the ondrop event handler.
      void setOndurationchange​(java.lang.Object ondurationchange)
      Sets the ondurationchange event handler.
      void setOnemptied​(java.lang.Object onemptied)
      Sets the onemptied event handler.
      void setOnended​(java.lang.Object onended)
      Sets the onended event handler.
      void setOnerror​(java.lang.Object onerror)
      Sets the value of the window's onerror property.
      void setOnfocus​(java.lang.Object onfocus)
      Sets the onfocus event handler.
      void setOngotpointercapture​(java.lang.Object ongotpointercapture)
      Sets the ongotpointercapture event handler.
      void setOnhashchange​(java.lang.Object onhashchange)
      Sets the value of the onhashchange event handler.
      void setOninput​(java.lang.Object oninput)
      Sets the oninput event handler.
      void setOninvalid​(java.lang.Object oninvalid)
      Sets the oninvalid event handler.
      void setOnkeydown​(java.lang.Object onkeydown)
      Sets the onkeydown event handler.
      void setOnkeypress​(java.lang.Object onkeypress)
      Sets the onkeypress event handler.
      void setOnkeyup​(java.lang.Object onkeyup)
      Sets the onkeyup event handler.
      void setOnlanguagechange​(java.lang.Object onlanguagechange)
      Sets the onlanguagechange event handler.
      void setOnload​(java.lang.Object onload)
      Sets the value of the onload event handler.
      void setOnloadeddata​(java.lang.Object onloadeddata)
      Sets the onloadeddata event handler.
      void setOnloadedmetadata​(java.lang.Object onloadedmetadata)
      Sets the onloadedmetadata event handler.
      void setOnloadstart​(java.lang.Object onloadstart)
      Sets the onloadstart event handler.
      void setOnlostpointercapture​(java.lang.Object onlostpointercapture)
      Sets the onlostpointercapture event handler.
      void setOnmessage​(java.lang.Object onmessage)
      Sets the value of the window's onmessage property.
      void setOnmousedown​(java.lang.Object onmousedown)
      Sets the onmousedown event handler.
      void setOnmouseenter​(java.lang.Object onmouseenter)
      Sets the onmouseenter event handler.
      void setOnmouseleave​(java.lang.Object onmouseleave)
      Sets the onmouseleave event handler.
      void setOnmousemove​(java.lang.Object onmousemove)
      Sets the onmousemove event handler.
      void setOnmouseout​(java.lang.Object onmouseout)
      Sets the onmouseout event handler.
      void setOnmouseover​(java.lang.Object onmouseover)
      Sets the onmouseover event handler.
      void setOnmouseup​(java.lang.Object onmouseup)
      Sets the onmouseup event handler.
      void setOnmousewheel​(java.lang.Object onmousewheel)
      Sets the onmousewheel event handler.
      void setOnmozfullscreenchange​(java.lang.Object onmozfullscreenchange)
      Sets the onmozfullscreenchange event handler.
      void setOnmozfullscreenerror​(java.lang.Object onmozfullscreenerror)
      Sets the onmozfullscreenerror event handler.
      void setOnoffline​(java.lang.Object onoffline)
      Sets the onoffline event handler.
      void setOnonline​(java.lang.Object ononline)
      Sets the ononline event handler.
      void setOnpagehide​(java.lang.Object onpagehide)
      Sets the onpagehide event handler.
      void setOnpageshow​(java.lang.Object onpageshow)
      Sets the onpageshow event handler.
      void setOnpause​(java.lang.Object onpause)
      Sets the onpause event handler.
      void setOnplay​(java.lang.Object onplay)
      Sets the onplay event handler.
      void setOnplaying​(java.lang.Object onplaying)
      Sets the onplaying event handler.
      void setOnpointercancel​(java.lang.Object onpointercancel)
      Sets the onpointercancel event handler.
      void setOnpointerdown​(java.lang.Object onpointerdown)
      Sets the onpointerdown event handler.
      void setOnpointerenter​(java.lang.Object onpointerenter)
      Sets the onpointerenter event handler.
      void setOnpointerleave​(java.lang.Object onpointerleave)
      Sets the onpointerleave event handler.
      void setOnpointermove​(java.lang.Object onpointermove)
      Sets the onpointermove event handler.
      void setOnpointerout​(java.lang.Object onpointerout)
      Sets the onpointerout event handler.
      void setOnpointerover​(java.lang.Object onpointerover)
      Sets the onpointerover event handler.
      void setOnpointerup​(java.lang.Object onpointerup)
      Sets the onpointerup event handler.
      void setOnpopstate​(java.lang.Object onpopstate)
      Sets the onpopstate event handler.
      void setOnprogress​(java.lang.Object onprogress)
      Sets the onprogress event handler.
      void setOnratechange​(java.lang.Object onratechange)
      Sets the onratechange event handler.
      void setOnrejectionhandled​(java.lang.Object onrejectionhandled)
      Sets the onrejectionhandled event handler.
      void setOnreset​(java.lang.Object onreset)
      Sets the onreset event handler.
      void setOnresize​(java.lang.Object onresize)
      Sets the onresize event handler.
      void setOnscroll​(java.lang.Object onscroll)
      Sets the onscroll event handler.
      void setOnsearch​(java.lang.Object onsearch)
      Sets the onsearch event handler.
      void setOnseeked​(java.lang.Object onseeked)
      Sets the onseeked event handler.
      void setOnseeking​(java.lang.Object onseeking)
      Sets the onseeking event handler.
      void setOnselect​(java.lang.Object onselect)
      Sets the onselect event handler.
      void setOnstalled​(java.lang.Object onstalled)
      Sets the onstalled event handler.
      void setOnstorage​(java.lang.Object onstorage)
      Sets the onstorage event handler.
      void setOnsubmit​(java.lang.Object onsubmit)
      Setter for the onsubmit event handler.
      void setOnsuspend​(java.lang.Object onsuspend)
      Sets the onsuspend event handler.
      void setOntimeupdate​(java.lang.Object ontimeupdate)
      Sets the ontimeupdate event handler.
      void setOntoggle​(java.lang.Object ontoggle)
      Sets the ontoggle event handler.
      void setOntransitionend​(java.lang.Object ontransitionend)
      Sets the ontransitionend event handler.
      void setOnunhandledrejection​(java.lang.Object onunhandledrejection)
      Sets the onunhandledrejection event handler.
      void setOnunload​(java.lang.Object onunload)
      Sets the onunload event handler.
      void setOnvolumechange​(java.lang.Object onvolumechange)
      Sets the onvolumechange event handler.
      void setOnwaiting​(java.lang.Object onwaiting)
      Sets the onwaiting event handler.
      void setOnwebkitanimationend​(java.lang.Object onwebkitanimationend)
      Sets the onwebkitanimationend event handler.
      void setOnwebkitanimationiteration​(java.lang.Object onwebkitanimationiteration)
      Sets the onwebkitanimationiteration event handler.
      void setOnwebkitanimationstart​(java.lang.Object onwebkitanimationstart)
      Sets the onwebkitanimationstart event handler.
      void setOnwebkittransitionend​(java.lang.Object onwebkittransitionend)
      Sets the onwebkittransitionend event handler.
      void setOnwheel​(java.lang.Object onwheel)
      Sets the onwheel event handler.
      void setOpener​(java.lang.Object newValue)
      Sets the opener property.
      void setOuterHeight​(int height)
      Sets the outerHeight.
      void setOuterWidth​(int width)
      Sets the outerWidth.
      void setParentScope​(org.htmlunit.corejs.javascript.Scriptable parent)
      Does nothing.
      void setPrototypes​(java.util.Map<java.lang.Class<? extends org.htmlunit.corejs.javascript.Scriptable>,​org.htmlunit.corejs.javascript.Scriptable> map)
      Sets the prototypes for HtmlUnit host classes.
      void setStatus​(java.lang.String message)
      Sets the text from the status line.
      static java.lang.Object setTimeout​(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args, org.htmlunit.corejs.javascript.Function function)
      Sets a chunk of JavaScript to be invoked at some specified time later.
      void setTop​(java.lang.Object o)
      Sets the value of the top property.
      void stop()
      Should implement the stop() function on the window object.
      void triggerOnError​(ScriptException e)
      Triggers the onerror handler, if one has been set.
      • Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • clientInformation_

        private java.lang.Object clientInformation_
      • screen_

        private Screen screen_
      • history_

        private History history_
      • currentEvent_

        private Event currentEvent_
      • status_

        private java.lang.String status_
      • prototypes_

        private java.util.Map<java.lang.Class<? extends org.htmlunit.corejs.javascript.Scriptable>,​org.htmlunit.corejs.javascript.Scriptable> prototypes_
      • controllers_

        private java.lang.Object controllers_
      • opener_

        private java.lang.Object opener_
      • top_

        private java.lang.Object top_
      • crypto_

        private Crypto crypto_
    • Constructor Detail

      • Window

        public Window()
        Creates an instance.
    • Method Detail

      • jsConstructor

        public static org.htmlunit.corejs.javascript.Scriptable jsConstructor​(org.htmlunit.corejs.javascript.Context cx,
                                                                              org.htmlunit.corejs.javascript.Scriptable scope,
                                                                              java.lang.Object[] args,
                                                                              org.htmlunit.corejs.javascript.Function ctorObj,
                                                                              boolean inNewExpr)
        Creates an instance.
        Parameters:
        cx - the current context
        scope - the scope
        args - the arguments
        ctorObj - the function object
        inNewExpr - Is new or not
        Returns:
        the java object to allow JavaScript to access
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Restores the transient fields during deserialization.
        Parameters:
        stream - the stream to read the object from
        Throws:
        java.io.IOException - if an IO error occurs
        java.lang.ClassNotFoundException - if a class is not found
      • getPrototype

        public org.htmlunit.corejs.javascript.Scriptable getPrototype​(java.lang.Class<? extends HtmlUnitScriptable> jsClass)
        Returns the prototype object corresponding to the specified HtmlUnit class inside the window scope.
        Overrides:
        getPrototype in class HtmlUnitScriptable
        Parameters:
        jsClass - the class whose prototype is to be returned
        Returns:
        the prototype object corresponding to the specified class inside the specified scope
      • setPrototypes

        public void setPrototypes​(java.util.Map<java.lang.Class<? extends org.htmlunit.corejs.javascript.Scriptable>,​org.htmlunit.corejs.javascript.Scriptable> map)
        Sets the prototypes for HtmlUnit host classes.
        Parameters:
        map - a Map of (Class, Scriptable)
      • alert

        public void alert​(java.lang.Object message)
        The JavaScript function alert().
        Parameters:
        message - the message
      • btoa

        public java.lang.String btoa​(java.lang.String stringToEncode)
        Creates a base-64 encoded ASCII string from a string of binary data.
        Specified by:
        btoa in interface WindowOrWorkerGlobalScope
        Parameters:
        stringToEncode - string to encode
        Returns:
        the encoded string
      • atob

        public java.lang.String atob​(java.lang.String encodedData)
        Decodes a string of data which has been encoded using base-64 encoding.
        Specified by:
        atob in interface WindowOrWorkerGlobalScope
        Parameters:
        encodedData - the encoded string
        Returns:
        the decoded value
      • confirm

        public boolean confirm​(java.lang.String message)
        The JavaScript function confirm.
        Parameters:
        message - the message
        Returns:
        true if ok was pressed, false if cancel was pressed
      • prompt

        public java.lang.String prompt​(java.lang.String message,
                                       java.lang.Object defaultValue)
        The JavaScript function prompt.
        Parameters:
        message - the message
        defaultValue - the default value displayed in the text input field
        Returns:
        the value typed in or null if the user pressed cancel
      • getDocument_js

        public DocumentProxy getDocument_js()
        Returns the JavaScript property document.
        Returns:
        the document
      • getDocument

        public Document getDocument()
        Returns the window's current document.
        Returns:
        the window's current document
      • getEvent

        public java.lang.Object getEvent()
        Returns the current event.
        Returns:
        the current event, or null if no event is currently available
      • getCurrentEvent

        public Event getCurrentEvent()
        Returns the current event (used internally regardless of the emulation mode).
        Returns:
        the current event, or null if no event is currently available
      • setCurrentEvent

        public void setCurrentEvent​(Event event)
        Sets the current event.
        Parameters:
        event - the current event
      • open

        public WindowProxy open​(java.lang.Object url,
                                java.lang.Object name,
                                java.lang.Object features,
                                java.lang.Object replace)
        Opens a new window.
        Parameters:
        url - when a new document is opened, url is a String that specifies a MIME type for the document. When a new window is opened, url is a String that specifies the URL to render in the new window
        name - the name
        features - the features
        replace - whether to replace in the history list or no
        Returns:
        the newly opened window, or null if popup windows have been disabled
        See Also:
        WebClientOptions.isPopupBlockerEnabled(), MSDN documentation
      • makeUrlForOpenWindow

        private java.net.URL makeUrlForOpenWindow​(java.lang.String urlString)
      • setTimeout

        public static java.lang.Object setTimeout​(org.htmlunit.corejs.javascript.Context context,
                                                  org.htmlunit.corejs.javascript.Scriptable scope,
                                                  org.htmlunit.corejs.javascript.Scriptable thisObj,
                                                  java.lang.Object[] args,
                                                  org.htmlunit.corejs.javascript.Function function)
        Sets a chunk of JavaScript to be invoked at some specified time later. The invocation occurs only if the window is opened after the delay and does not contain an other page than the one that originated the setTimeout.
        Parameters:
        context - the JavaScript context
        scope - the scope
        thisObj - the scriptable
        args - the arguments passed into the method
        function - the function
        Returns:
        the id of the created timer
        See Also:
        MDN web docs
      • setInterval

        public static java.lang.Object setInterval​(org.htmlunit.corejs.javascript.Context context,
                                                   org.htmlunit.corejs.javascript.Scriptable scope,
                                                   org.htmlunit.corejs.javascript.Scriptable thisObj,
                                                   java.lang.Object[] args,
                                                   org.htmlunit.corejs.javascript.Function function)
        Sets a chunk of JavaScript to be invoked each time a specified number of milliseconds has elapsed.
        Parameters:
        context - the JavaScript context
        scope - the scope
        thisObj - the scriptable
        args - the arguments passed into the method
        function - the function
        Returns:
        the id of the created interval
        See Also:
        MDN web docs
      • getNavigator

        public Navigator getNavigator()
        Returns the JavaScript property navigator.
        Returns:
        the navigator
      • getClientInformation

        public java.lang.Object getClientInformation()
        Returns the JavaScript property clientInformation.
        Returns:
        the client information
      • setClientInformation

        public void setClientInformation​(java.lang.Object clientInformation)
        Parameters:
        clientInformation - the new value
      • getWindow_js

        public Window getWindow_js()
        Returns the window property. This is a synonym for self.
        Returns:
        the window property (a reference to this)
      • getSelf

        public Window getSelf()
        Returns the self property.
        Returns:
        this
      • getLocalStorage

        public Storage getLocalStorage()
        Returns the localStorage property.
        Returns:
        the localStorage property
      • getSessionStorage

        public Storage getSessionStorage()
        Returns the sessionStorage property.
        Returns:
        the sessionStorage property
      • getStorage

        public Storage getStorage​(StorageHolder.Type storageType)
        Gets the storage of the specified type.
        Parameters:
        storageType - the type
        Returns:
        the storage
      • getLocation

        public Location getLocation()
        Returns the location property.
        Returns:
        the location property
      • setLocation

        public void setLocation​(java.lang.String newLocation)
                         throws java.io.IOException
        Sets the location property. This will cause a reload of the window.
        Parameters:
        newLocation - the URL of the new content
        Throws:
        java.io.IOException - when location loading fails
      • dump

        public void dump​(java.lang.String message)
        Logs messages to the browser's standard output (stdout). If the browser was started from a terminal, output sent to dump() will appear in the terminal. Output from dump() is not sent to the browser's developer tools console. To log to the developer tools console, use console.log().

        HtmlUnit always uses the WebConsole.

        Parameters:
        message - the message to log
      • animateAnimationsFrames

        public int animateAnimationsFrames()
        Invokes all the animation callbacks registered for this window by calling requestAnimationFrame(Object) once.
        Returns:
        the number of pending animation callbacks
      • requestAnimationFrame

        public int requestAnimationFrame​(java.lang.Object callback)
        Add callback to the list of animationFrames.
        Parameters:
        callback - the function to call when it's time to update the animation
        Returns:
        an identification id
        See Also:
        MDN Doc
      • cancelAnimationFrame

        public void cancelAnimationFrame​(java.lang.Object requestId)
        Remove the callback from the list of animationFrames.
        Parameters:
        requestId - the ID value returned by the call to window.requestAnimationFrame()
        See Also:
        MDN Doc
      • getScreen

        public Screen getScreen()
        Returns the screen property.
        Returns:
        the screen property
      • getHistory

        public History getHistory()
        Returns the history property.
        Returns:
        the history property
      • getExternal

        public External getExternal()
        Returns the external property.
        Returns:
        the external property
      • initialize

        public void initialize​(WebWindow webWindow,
                               Page pageToEnclose)
        Initializes this window.
        Parameters:
        webWindow - the web window corresponding to this window
        pageToEnclose - the page that will become the enclosing page
      • initialize

        public void initialize​(Page enclosedPage)
        Initialize the object.
        Parameters:
        enclosedPage - the page containing the JavaScript
      • initialize

        public void initialize()
        Initializes the object. Only called for Windows with no contents.
      • getTop

        public java.lang.Object getTop()
        Returns the value of the top property.
        Returns:
        the value of top
      • setTop

        public void setTop​(java.lang.Object o)
        Sets the value of the top property.
        Parameters:
        o - the new value
      • getParent

        public org.htmlunit.corejs.javascript.ScriptableObject getParent()
        Returns the value of the parent property.
        Returns:
        the value of the parent property
      • getOpener

        public java.lang.Object getOpener()
        Returns the value of the opener property.
        Returns:
        the value of the opener, or null for a top level window
      • setOpener

        public void setOpener​(java.lang.Object newValue)
        Sets the opener property.
        Parameters:
        newValue - the new value
      • getFrameElement

        public HtmlUnitScriptable getFrameElement()
        Returns the (i)frame in which the window is contained.
        Returns:
        null for a top level window
      • getFrames_js

        public Window getFrames_js()
        Returns the value of the frames property.
        Returns:
        the value of the frames property
      • getLength

        public int getLength()
        Returns the number of frames contained by this window.
        Returns:
        the number of frames contained by this window
      • getFrames

        private HTMLCollection getFrames()
        Returns the live collection of frames contained by this window.
        Returns:
        the live collection of frames contained by this window
      • getWebWindow

        public WebWindow getWebWindow()
        Returns the WebWindow associated with this Window.
        Returns:
        the WebWindow
      • focus

        public void focus()
        Sets the focus to this element.
      • blur

        public void blur()
        Removes focus from this element.
      • close_js

        public void close_js()
        Closes this window.
      • isClosed

        public boolean isClosed()
        Indicates if this window is closed.
        Returns:
        true if this window is closed
      • moveTo

        public void moveTo​(int x,
                           int y)
        Does nothing.
        Parameters:
        x - the horizontal position
        y - the vertical position
      • moveBy

        public void moveBy​(int x,
                           int y)
        Does nothing.
        Parameters:
        x - the horizontal position
        y - the vertical position
      • resizeBy

        public void resizeBy​(int width,
                             int height)
        Does nothing.
        Parameters:
        width - the width offset
        height - the height offset
      • resizeTo

        public void resizeTo​(int width,
                             int height)
        Does nothing.
        Parameters:
        width - the width of the Window in pixel after resize
        height - the height of the Window in pixel after resize
      • scroll

        public void scroll​(int x,
                           int y)
        Scrolls to the specified location on the page.
        Parameters:
        x - the horizontal position to scroll to
        y - the vertical position to scroll to
      • scrollBy

        public void scrollBy​(int x,
                             int y)
        Scrolls the window content the specified distance.
        Parameters:
        x - the horizontal distance to scroll by
        y - the vertical distance to scroll by
      • scrollByLines

        public void scrollByLines​(int lines)
        Scrolls the window content down by the specified number of lines.
        Parameters:
        lines - the number of lines to scroll down
      • scrollByPages

        public void scrollByPages​(int pages)
        Scrolls the window content down by the specified number of pages.
        Parameters:
        pages - the number of pages to scroll down
      • scrollTo

        public void scrollTo​(int x,
                             int y)
        Scrolls to the specified location on the page.
        Parameters:
        x - the horizontal position to scroll to
        y - the vertical position to scroll to
      • getOnload

        public java.lang.Object getOnload()
        Returns the onload property. Note that this is not necessarily a function if something else has been set.
        Returns:
        the onload property
      • setOnload

        public void setOnload​(java.lang.Object onload)
        Sets the value of the onload event handler.
        Parameters:
        onload - the new handler
      • setOnblur

        public void setOnblur​(java.lang.Object onblur)
        Sets the value of the onblur event handler.
        Parameters:
        onblur - the new handler
      • getOnblur

        public java.lang.Object getOnblur()
        Returns the onblur property (not necessary a function if something else has been set).
        Returns:
        the onblur property
      • getOnclick

        public java.lang.Object getOnclick()
        Returns the onclick property (not necessary a function if something else has been set).
        Returns:
        the onclick property
      • setOnclick

        public void setOnclick​(java.lang.Object onclick)
        Sets the value of the onclick event handler.
        Parameters:
        onclick - the new handler
      • getOndblclick

        public java.lang.Object getOndblclick()
        Returns the ondblclick property (not necessary a function if something else has been set).
        Returns:
        the ondblclick property
      • setOndblclick

        public void setOndblclick​(java.lang.Object ondblclick)
        Sets the value of the ondblclick event handler.
        Parameters:
        ondblclick - the new handler
      • getOnhashchange

        public java.lang.Object getOnhashchange()
        Returns the onhashchange property (not necessary a function if something else has been set).
        Returns:
        the onhashchange property
      • setOnhashchange

        public void setOnhashchange​(java.lang.Object onhashchange)
        Sets the value of the onhashchange event handler.
        Parameters:
        onhashchange - the new handler
      • getName

        public java.lang.String getName()
        Returns the value of the window's name property.
        Returns:
        the value of the window's name property
      • setName

        public void setName​(java.lang.String name)
        Sets the value of the window's name property.
        Parameters:
        name - the value of the window's name property
      • getOnbeforeunload

        public java.lang.Object getOnbeforeunload()
        Returns the value of the window's onbeforeunload property.
        Returns:
        the value of the window's onbeforeunload property
      • setOnbeforeunload

        public void setOnbeforeunload​(java.lang.Object onbeforeunload)
        Sets the value of the window's onbeforeunload property.
        Parameters:
        onbeforeunload - the value of the window's onbeforeunload property
      • getOnerror

        public java.lang.Object getOnerror()
        Returns the value of the window's onerror property.
        Returns:
        the value of the window's onerror property
      • setOnerror

        public void setOnerror​(java.lang.Object onerror)
        Sets the value of the window's onerror property.
        Parameters:
        onerror - the value of the window's onerror property
      • getOnmessage

        public java.lang.Object getOnmessage()
        Returns the value of the window's onmessage property.
        Returns:
        the value of the window's onmessage property
      • setOnmessage

        public void setOnmessage​(java.lang.Object onmessage)
        Sets the value of the window's onmessage property.
        Parameters:
        onmessage - the value of the window's onmessage property
      • triggerOnError

        public void triggerOnError​(ScriptException e)
        Triggers the onerror handler, if one has been set.
        Parameters:
        e - the error that needs to be reported
      • setHandlerForJavaScript

        private void setHandlerForJavaScript​(java.lang.String eventName,
                                             java.lang.Object handler)
      • getWithFallback

        public java.lang.Object getWithFallback​(java.lang.String name)
        To be called when the property detection fails in normal scenarios.
        Parameters:
        name - the name
        Returns:
        the found object, or Scriptable.NOT_FOUND
      • get

        public java.lang.Object get​(int index,
                                    org.htmlunit.corejs.javascript.Scriptable start)
        Specified by:
        get in interface org.htmlunit.corejs.javascript.Scriptable
        Overrides:
        get in class org.htmlunit.corejs.javascript.ScriptableObject
      • getFrameWindowByName

        private static java.lang.Object getFrameWindowByName​(HtmlPage page,
                                                             java.lang.String name)
      • getElementsByName

        private java.lang.Object getElementsByName​(HtmlPage page,
                                                   java.lang.String name)
      • getProxy

        public static WindowProxy getProxy​(WebWindow w)
        Returns the proxy for the specified window.
        Parameters:
        w - the window whose proxy is to be returned
        Returns:
        the proxy for the specified window
      • getStatus

        public java.lang.String getStatus()
        Returns the text from the status line.
        Returns:
        the status line text
      • setStatus

        public void setStatus​(java.lang.String message)
        Sets the text from the status line.
        Parameters:
        message - the status line text
      • getInnerWidth

        public int getInnerWidth()
        Returns the innerWidth.
        Returns:
        the innerWidth
        See Also:
        Mozilla doc
      • setInnerWidth

        public void setInnerWidth​(int width)
        Sets the innerWidth.
        Parameters:
        width - the innerWidth
      • getOuterWidth

        public int getOuterWidth()
        Returns the outerWidth.
        Returns:
        the outerWidth
        See Also:
        Mozilla doc
      • setOuterWidth

        public void setOuterWidth​(int width)
        Sets the outerWidth.
        Parameters:
        width - the outerWidth
      • getInnerHeight

        public int getInnerHeight()
        Returns the innerHeight.
        Returns:
        the innerHeight
        See Also:
        Mozilla doc
      • setInnerHeight

        public void setInnerHeight​(int height)
        Sets the innerHeight.
        Parameters:
        height - the innerHeight
      • getOuterHeight

        public int getOuterHeight()
        Returns the outerHeight.
        Returns:
        the outerHeight
        See Also:
        Mozilla doc
      • setOuterHeight

        public void setOuterHeight​(int height)
        Sets the outerHeight.
        Parameters:
        height - the outerHeight
      • captureEvents

        public void captureEvents​(java.lang.String type)
        Does nothing special anymore.
        Parameters:
        type - the type of events to capture
        See Also:
        Document.captureEvents(String)
      • releaseEvents

        public void releaseEvents​(java.lang.String type)
        Does nothing special anymore.
        Parameters:
        type - the type of events to capture
        See Also:
        Document.releaseEvents(String)
      • getComputedStyle

        public ComputedCSSStyleDeclaration getComputedStyle​(java.lang.Object element,
                                                            java.lang.String pseudoElement)
        Returns computed style of the element. Computed style represents the final computed values of all CSS properties for the element. This method's return value is of the same type as that of element.style, but the value returned by this method is read-only.
        Parameters:
        element - the element
        pseudoElement - a string specifying the pseudo-element to match (may be null); e.g. ':before'
        Returns:
        the computed style
      • getSelection

        public Selection getSelection()
        Returns the current selection.
        Returns:
        the current selection
      • getSelectionImpl

        public Selection getSelectionImpl()
        Returns the current selection.
        Returns:
        the current selection
      • getControllers

        public java.lang.Object getControllers()
        Gets the controllers. The result doesn't currently matter but it is important to return an object as some JavaScript libraries check it.
        Returns:
        some object
        See Also:
        Mozilla documentation
      • setControllers

        public void setControllers​(java.lang.Object value)
        Sets the controllers.
        Parameters:
        value - the new value
      • getMozInnerScreenX

        public int getMozInnerScreenX()
        Returns the value of mozInnerScreenX property.
        Returns:
        the value of mozInnerScreenX property
      • getMozInnerScreenY

        public int getMozInnerScreenY()
        Returns the value of mozInnerScreenY property.
        Returns:
        the value of mozInnerScreenY property
      • stop

        public void stop()
        Should implement the stop() function on the window object. (currently empty implementation)
        See Also:
        window.stop
      • getPageXOffset

        public int getPageXOffset()
        Returns the value of pageXOffset property.
        Returns:
        the value of pageXOffset property
      • getPageYOffset

        public int getPageYOffset()
        Returns the value of pageYOffset property.
        Returns:
        the value of pageYOffset property
      • getScrollX

        public int getScrollX()
        Returns the value of scrollX property.
        Returns:
        the value of scrollX property
      • getScrollY

        public int getScrollY()
        Returns the value of scrollY property.
        Returns:
        the value of scrollY property
      • getNetscape

        public Netscape getNetscape()
        Returns the value of netscape property.
        Returns:
        the value of netscape property
      • isConst

        public boolean isConst​(java.lang.String name)
        Used to allow re-declaration of constants (eg: "var undefined;").
        Specified by:
        isConst in interface org.htmlunit.corejs.javascript.ConstProperties
        Overrides:
        isConst in class org.htmlunit.corejs.javascript.ScriptableObject
      • dispatchEvent

        public boolean dispatchEvent​(Event event)
        Dispatches an event into the event system (standards-conformant browsers only). See the Gecko DOM reference for more information.
        Overrides:
        dispatchEvent in class EventTarget
        Parameters:
        event - the event to be dispatched
        Returns:
        false if at least one of the event handlers which handled the event called preventDefault; true otherwise
      • getOnchange

        public java.lang.Object getOnchange()
        Getter for the onchange event handler.
        Returns:
        the handler
      • setOnchange

        public void setOnchange​(java.lang.Object onchange)
        Setter for the onchange event handler.
        Parameters:
        onchange - the handler
      • getOnsubmit

        public java.lang.Object getOnsubmit()
        Getter for the onsubmit event handler.
        Returns:
        the handler
      • setOnsubmit

        public void setOnsubmit​(java.lang.Object onsubmit)
        Setter for the onsubmit event handler.
        Parameters:
        onsubmit - the handler
      • postMessage

        public static void postMessage​(org.htmlunit.corejs.javascript.Context context,
                                       org.htmlunit.corejs.javascript.Scriptable scope,
                                       org.htmlunit.corejs.javascript.Scriptable thisObj,
                                       java.lang.Object[] args,
                                       org.htmlunit.corejs.javascript.Function funObj)
        Posts a message.
        Parameters:
        context - the current context
        scope - the scope
        thisObj - this object
        args - the script(s) to import
        funObj - the JS function called
        See Also:
        MDN documentation
      • getPort

        public static int getPort​(java.net.URL url)
        Returns the port of the specified URL.
        Parameters:
        url - the URL
        Returns:
        the port
      • getPerformance

        public Performance getPerformance()
        Returns the performance property.
        Returns:
        the performance property
      • getDevicePixelRatio

        public int getDevicePixelRatio()
        Returns the devicePixelRatio property.
        Returns:
        the devicePixelRatio property
      • getStyleMedia

        public StyleMedia getStyleMedia()
        Returns the styleMedia property.
        Returns:
        the styleMedia property
      • matchMedia

        public MediaQueryList matchMedia​(java.lang.String mediaQueryString)
        Returns a new MediaQueryList object representing the parsed results of the specified media query string.
        Parameters:
        mediaQueryString - the media query
        Returns:
        a new MediaQueryList object
      • find

        public boolean find​(java.lang.String search,
                            boolean caseSensitive,
                            boolean backwards,
                            boolean wrapAround,
                            boolean wholeWord,
                            boolean searchInFrames,
                            boolean showDialog)
        Stub only at the moment.
        Parameters:
        search - the text string for which to search
        caseSensitive - if true, specifies a case-sensitive search
        backwards - if true, specifies a backward search
        wrapAround - if true, specifies a wrap around search
        wholeWord - if true, specifies a whole word search
        searchInFrames - if true, specifies a search in frames
        showDialog - if true, specifies a show Dialog.
        Returns:
        false
      • getSpeechSynthesis

        public SpeechSynthesis getSpeechSynthesis()
        Returns the speechSynthesis property.
        Returns:
        the speechSynthesis property
      • getOffscreenBuffering

        public java.lang.Object getOffscreenBuffering()
        Returns the offscreenBuffering property.
        Returns:
        the offscreenBuffering property
      • getCrypto

        public Crypto getCrypto()
        Returns the crypto property.
        Returns:
        the crypto property
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • setParentScope

        public void setParentScope​(org.htmlunit.corejs.javascript.Scriptable parent)
        Does nothing.
        Specified by:
        setParentScope in interface org.htmlunit.corejs.javascript.Scriptable
        Overrides:
        setParentScope in class HtmlUnitScriptable
        Parameters:
        parent - the new parent scope
      • getOnfocus

        public org.htmlunit.corejs.javascript.Function getOnfocus()
        Returns the onfocus event handler.
        Returns:
        the onfocus event handler
      • setOnfocus

        public void setOnfocus​(java.lang.Object onfocus)
        Sets the onfocus event handler.
        Parameters:
        onfocus - the onfocus event handler
      • getOndragend

        public org.htmlunit.corejs.javascript.Function getOndragend()
        Returns the ondragend event handler.
        Returns:
        the ondragend event handler
      • setOndragend

        public void setOndragend​(java.lang.Object ondragend)
        Sets the ondragend event handler.
        Parameters:
        ondragend - the ondragend event handler
      • getOninvalid

        public org.htmlunit.corejs.javascript.Function getOninvalid()
        Returns the oninvalid event handler.
        Returns:
        the oninvalid event handler
      • setOninvalid

        public void setOninvalid​(java.lang.Object oninvalid)
        Sets the oninvalid event handler.
        Parameters:
        oninvalid - the oninvalid event handler
      • getOnpointerout

        public org.htmlunit.corejs.javascript.Function getOnpointerout()
        Returns the onpointerout event handler.
        Returns:
        the onpointerout event handler
      • setOnpointerout

        public void setOnpointerout​(java.lang.Object onpointerout)
        Sets the onpointerout event handler.
        Parameters:
        onpointerout - the onpointerout event handler
      • getOnratechange

        public org.htmlunit.corejs.javascript.Function getOnratechange()
        Returns the onratechange event handler.
        Returns:
        the onratechange event handler
      • setOnratechange

        public void setOnratechange​(java.lang.Object onratechange)
        Sets the onratechange event handler.
        Parameters:
        onratechange - the onratechange event handler
      • getOnanimationiteration

        public org.htmlunit.corejs.javascript.Function getOnanimationiteration()
        Returns the onanimationiteration event handler.
        Returns:
        the onanimationiteration event handler
      • setOnanimationiteration

        public void setOnanimationiteration​(java.lang.Object onanimationiteration)
        Sets the onanimationiteration event handler.
        Parameters:
        onanimationiteration - the onanimationiteration event handler
      • getOncanplaythrough

        public org.htmlunit.corejs.javascript.Function getOncanplaythrough()
        Returns the oncanplaythrough event handler.
        Returns:
        the oncanplaythrough event handler
      • setOncanplaythrough

        public void setOncanplaythrough​(java.lang.Object oncanplaythrough)
        Sets the oncanplaythrough event handler.
        Parameters:
        oncanplaythrough - the oncanplaythrough event handler
      • getOncancel

        public org.htmlunit.corejs.javascript.Function getOncancel()
        Returns the oncancel event handler.
        Returns:
        the oncancel event handler
      • setOncancel

        public void setOncancel​(java.lang.Object oncancel)
        Sets the oncancel event handler.
        Parameters:
        oncancel - the oncancel event handler
      • getOnpointerenter

        public org.htmlunit.corejs.javascript.Function getOnpointerenter()
        Returns the onpointerenter event handler.
        Returns:
        the onpointerenter event handler
      • setOnpointerenter

        public void setOnpointerenter​(java.lang.Object onpointerenter)
        Sets the onpointerenter event handler.
        Parameters:
        onpointerenter - the onpointerenter event handler
      • getOnselect

        public org.htmlunit.corejs.javascript.Function getOnselect()
        Returns the onselect event handler.
        Returns:
        the onselect event handler
      • setOnselect

        public void setOnselect​(java.lang.Object onselect)
        Sets the onselect event handler.
        Parameters:
        onselect - the onselect event handler
      • getOnauxclick

        public org.htmlunit.corejs.javascript.Function getOnauxclick()
        Returns the onauxclick event handler.
        Returns:
        the onauxclick event handler
      • setOnauxclick

        public void setOnauxclick​(java.lang.Object onauxclick)
        Sets the onauxclick event handler.
        Parameters:
        onauxclick - the onauxclick event handler
      • getOnscroll

        public org.htmlunit.corejs.javascript.Function getOnscroll()
        Returns the onscroll event handler.
        Returns:
        the onscroll event handler
      • setOnscroll

        public void setOnscroll​(java.lang.Object onscroll)
        Sets the onscroll event handler.
        Parameters:
        onscroll - the onscroll event handler
      • getOnkeydown

        public org.htmlunit.corejs.javascript.Function getOnkeydown()
        Returns the onkeydown event handler.
        Returns:
        the onkeydown event handler
      • setOnkeydown

        public void setOnkeydown​(java.lang.Object onkeydown)
        Sets the onkeydown event handler.
        Parameters:
        onkeydown - the onkeydown event handler
      • getOnwebkitanimationstart

        public org.htmlunit.corejs.javascript.Function getOnwebkitanimationstart()
        Returns the onwebkitanimationstart event handler.
        Returns:
        the onwebkitanimationstart event handler
      • setOnwebkitanimationstart

        public void setOnwebkitanimationstart​(java.lang.Object onwebkitanimationstart)
        Sets the onwebkitanimationstart event handler.
        Parameters:
        onwebkitanimationstart - the onwebkitanimationstart event handler
      • getOnkeyup

        public org.htmlunit.corejs.javascript.Function getOnkeyup()
        Returns the onkeyup event handler.
        Returns:
        the onkeyup event handler
      • setOnkeyup

        public void setOnkeyup​(java.lang.Object onkeyup)
        Sets the onkeyup event handler.
        Parameters:
        onkeyup - the onkeyup event handler
      • getOnreset

        public org.htmlunit.corejs.javascript.Function getOnreset()
        Returns the onreset event handler.
        Returns:
        the onreset event handler
      • setOnreset

        public void setOnreset​(java.lang.Object onreset)
        Sets the onreset event handler.
        Parameters:
        onreset - the onreset event handler
      • getOnkeypress

        public org.htmlunit.corejs.javascript.Function getOnkeypress()
        Returns the onkeypress event handler.
        Returns:
        the onkeypress event handler
      • setOnkeypress

        public void setOnkeypress​(java.lang.Object onkeypress)
        Sets the onkeypress event handler.
        Parameters:
        onkeypress - the onkeypress event handler
      • getOndrag

        public org.htmlunit.corejs.javascript.Function getOndrag()
        Returns the ondrag event handler.
        Returns:
        the ondrag event handler
      • setOndrag

        public void setOndrag​(java.lang.Object ondrag)
        Sets the ondrag event handler.
        Parameters:
        ondrag - the ondrag event handler
      • getOnseeked

        public org.htmlunit.corejs.javascript.Function getOnseeked()
        Returns the onseeked event handler.
        Returns:
        the onseeked event handler
      • setOnseeked

        public void setOnseeked​(java.lang.Object onseeked)
        Sets the onseeked event handler.
        Parameters:
        onseeked - the onseeked event handler
      • getOnoffline

        public org.htmlunit.corejs.javascript.Function getOnoffline()
        Returns the onoffline event handler.
        Returns:
        the onoffline event handler
      • setOnoffline

        public void setOnoffline​(java.lang.Object onoffline)
        Sets the onoffline event handler.
        Parameters:
        onoffline - the onoffline event handler
      • getOndeviceorientation

        public org.htmlunit.corejs.javascript.Function getOndeviceorientation()
        Returns the ondeviceorientation event handler.
        Returns:
        the ondeviceorientation event handler
      • setOndeviceorientation

        public void setOndeviceorientation​(java.lang.Object ondeviceorientation)
        Sets the ondeviceorientation event handler.
        Parameters:
        ondeviceorientation - the ondeviceorientation event handler
      • getOntoggle

        public org.htmlunit.corejs.javascript.Function getOntoggle()
        Returns the ontoggle event handler.
        Returns:
        the ontoggle event handler
      • setOntoggle

        public void setOntoggle​(java.lang.Object ontoggle)
        Sets the ontoggle event handler.
        Parameters:
        ontoggle - the ontoggle event handler
      • getOnplay

        public org.htmlunit.corejs.javascript.Function getOnplay()
        Returns the onplay event handler.
        Returns:
        the onplay event handler
      • setOnplay

        public void setOnplay​(java.lang.Object onplay)
        Sets the onplay event handler.
        Parameters:
        onplay - the onplay event handler
      • getOncontextmenu

        public org.htmlunit.corejs.javascript.Function getOncontextmenu()
        Returns the oncontextmenu event handler.
        Returns:
        the oncontextmenu event handler
      • setOncontextmenu

        public void setOncontextmenu​(java.lang.Object oncontextmenu)
        Sets the oncontextmenu event handler.
        Parameters:
        oncontextmenu - the oncontextmenu event handler
      • getOnmousemove

        public org.htmlunit.corejs.javascript.Function getOnmousemove()
        Returns the onmousemove event handler.
        Returns:
        the onmousemove event handler
      • setOnmousemove

        public void setOnmousemove​(java.lang.Object onmousemove)
        Sets the onmousemove event handler.
        Parameters:
        onmousemove - the onmousemove event handler
      • getOnpointermove

        public org.htmlunit.corejs.javascript.Function getOnpointermove()
        Returns the onpointermove event handler.
        Returns:
        the onpointermove event handler
      • setOnpointermove

        public void setOnpointermove​(java.lang.Object onpointermove)
        Sets the onpointermove event handler.
        Parameters:
        onpointermove - the onpointermove event handler
      • getOnmouseover

        public org.htmlunit.corejs.javascript.Function getOnmouseover()
        Returns the onmouseover event handler.
        Returns:
        the onmouseover event handler
      • setOnmouseover

        public void setOnmouseover​(java.lang.Object onmouseover)
        Sets the onmouseover event handler.
        Parameters:
        onmouseover - the onmouseover event handler
      • getOnlostpointercapture

        public org.htmlunit.corejs.javascript.Function getOnlostpointercapture()
        Returns the onlostpointercapture event handler.
        Returns:
        the onlostpointercapture event handler
      • setOnlostpointercapture

        public void setOnlostpointercapture​(java.lang.Object onlostpointercapture)
        Sets the onlostpointercapture event handler.
        Parameters:
        onlostpointercapture - the onlostpointercapture event handler
      • getOnpointerover

        public org.htmlunit.corejs.javascript.Function getOnpointerover()
        Returns the onpointerover event handler.
        Returns:
        the onpointerover event handler
      • setOnpointerover

        public void setOnpointerover​(java.lang.Object onpointerover)
        Sets the onpointerover event handler.
        Parameters:
        onpointerover - the onpointerover event handler
      • getOnclose

        public org.htmlunit.corejs.javascript.Function getOnclose()
        Returns the onclose event handler.
        Returns:
        the onclose event handler
      • setOnclose

        public void setOnclose​(java.lang.Object onclose)
        Sets the onclose event handler.
        Parameters:
        onclose - the onclose event handler
      • getOnanimationend

        public org.htmlunit.corejs.javascript.Function getOnanimationend()
        Returns the onanimationend event handler.
        Returns:
        the onanimationend event handler
      • setOnanimationend

        public void setOnanimationend​(java.lang.Object onanimationend)
        Sets the onanimationend event handler.
        Parameters:
        onanimationend - the onanimationend event handler
      • getOndragenter

        public org.htmlunit.corejs.javascript.Function getOndragenter()
        Returns the ondragenter event handler.
        Returns:
        the ondragenter event handler
      • setOndragenter

        public void setOndragenter​(java.lang.Object ondragenter)
        Sets the ondragenter event handler.
        Parameters:
        ondragenter - the ondragenter event handler
      • getOnafterprint

        public org.htmlunit.corejs.javascript.Function getOnafterprint()
        Returns the onafterprint event handler.
        Returns:
        the onafterprint event handler
      • setOnafterprint

        public void setOnafterprint​(java.lang.Object onafterprint)
        Sets the onafterprint event handler.
        Parameters:
        onafterprint - the onafterprint event handler
      • getOnmozfullscreenerror

        public org.htmlunit.corejs.javascript.Function getOnmozfullscreenerror()
        Returns the onmozfullscreenerror event handler.
        Returns:
        the onmozfullscreenerror event handler
      • setOnmozfullscreenerror

        public void setOnmozfullscreenerror​(java.lang.Object onmozfullscreenerror)
        Sets the onmozfullscreenerror event handler.
        Parameters:
        onmozfullscreenerror - the onmozfullscreenerror event handler
      • getOnmouseleave

        public org.htmlunit.corejs.javascript.Function getOnmouseleave()
        Returns the onmouseleave event handler.
        Returns:
        the onmouseleave event handler
      • setOnmouseleave

        public void setOnmouseleave​(java.lang.Object onmouseleave)
        Sets the onmouseleave event handler.
        Parameters:
        onmouseleave - the onmouseleave event handler
      • getOnmousewheel

        public org.htmlunit.corejs.javascript.Function getOnmousewheel()
        Returns the onmousewheel event handler.
        Returns:
        the onmousewheel event handler
      • setOnmousewheel

        public void setOnmousewheel​(java.lang.Object onmousewheel)
        Sets the onmousewheel event handler.
        Parameters:
        onmousewheel - the onmousewheel event handler
      • getOnseeking

        public org.htmlunit.corejs.javascript.Function getOnseeking()
        Returns the onseeking event handler.
        Returns:
        the onseeking event handler
      • setOnseeking

        public void setOnseeking​(java.lang.Object onseeking)
        Sets the onseeking event handler.
        Parameters:
        onseeking - the onseeking event handler
      • getOncuechange

        public org.htmlunit.corejs.javascript.Function getOncuechange()
        Returns the oncuechange event handler.
        Returns:
        the oncuechange event handler
      • setOncuechange

        public void setOncuechange​(java.lang.Object oncuechange)
        Sets the oncuechange event handler.
        Parameters:
        oncuechange - the oncuechange event handler
      • getOnpageshow

        public org.htmlunit.corejs.javascript.Function getOnpageshow()
        Returns the onpageshow event handler.
        Returns:
        the onpageshow event handler
      • setOnpageshow

        public void setOnpageshow​(java.lang.Object onpageshow)
        Sets the onpageshow event handler.
        Parameters:
        onpageshow - the onpageshow event handler
      • getOnmozfullscreenchange

        public org.htmlunit.corejs.javascript.Function getOnmozfullscreenchange()
        Returns the onmozfullscreenchange event handler.
        Returns:
        the onmozfullscreenchange event handler
      • setOnmozfullscreenchange

        public void setOnmozfullscreenchange​(java.lang.Object onmozfullscreenchange)
        Sets the onmozfullscreenchange event handler.
        Parameters:
        onmozfullscreenchange - the onmozfullscreenchange event handler
      • getOndurationchange

        public org.htmlunit.corejs.javascript.Function getOndurationchange()
        Returns the ondurationchange event handler.
        Returns:
        the ondurationchange event handler
      • setOndurationchange

        public void setOndurationchange​(java.lang.Object ondurationchange)
        Sets the ondurationchange event handler.
        Parameters:
        ondurationchange - the ondurationchange event handler
      • getOnplaying

        public org.htmlunit.corejs.javascript.Function getOnplaying()
        Returns the onplaying event handler.
        Returns:
        the onplaying event handler
      • setOnplaying

        public void setOnplaying​(java.lang.Object onplaying)
        Sets the onplaying event handler.
        Parameters:
        onplaying - the onplaying event handler
      • getOnended

        public org.htmlunit.corejs.javascript.Function getOnended()
        Returns the onended event handler.
        Returns:
        the onended event handler
      • setOnended

        public void setOnended​(java.lang.Object onended)
        Sets the onended event handler.
        Parameters:
        onended - the onended event handler
      • getOnloadeddata

        public org.htmlunit.corejs.javascript.Function getOnloadeddata()
        Returns the onloadeddata event handler.
        Returns:
        the onloadeddata event handler
      • setOnloadeddata

        public void setOnloadeddata​(java.lang.Object onloadeddata)
        Sets the onloadeddata event handler.
        Parameters:
        onloadeddata - the onloadeddata event handler
      • getOnunhandledrejection

        public org.htmlunit.corejs.javascript.Function getOnunhandledrejection()
        Returns the onunhandledrejection event handler.
        Returns:
        the onunhandledrejection event handler
      • setOnunhandledrejection

        public void setOnunhandledrejection​(java.lang.Object onunhandledrejection)
        Sets the onunhandledrejection event handler.
        Parameters:
        onunhandledrejection - the onunhandledrejection event handler
      • getOnmouseout

        public org.htmlunit.corejs.javascript.Function getOnmouseout()
        Returns the onmouseout event handler.
        Returns:
        the onmouseout event handler
      • setOnmouseout

        public void setOnmouseout​(java.lang.Object onmouseout)
        Sets the onmouseout event handler.
        Parameters:
        onmouseout - the onmouseout event handler
      • getOnsuspend

        public org.htmlunit.corejs.javascript.Function getOnsuspend()
        Returns the onsuspend event handler.
        Returns:
        the onsuspend event handler
      • setOnsuspend

        public void setOnsuspend​(java.lang.Object onsuspend)
        Sets the onsuspend event handler.
        Parameters:
        onsuspend - the onsuspend event handler
      • getOnwaiting

        public org.htmlunit.corejs.javascript.Function getOnwaiting()
        Returns the onwaiting event handler.
        Returns:
        the onwaiting event handler
      • setOnwaiting

        public void setOnwaiting​(java.lang.Object onwaiting)
        Sets the onwaiting event handler.
        Parameters:
        onwaiting - the onwaiting event handler
      • getOncanplay

        public org.htmlunit.corejs.javascript.Function getOncanplay()
        Returns the oncanplay event handler.
        Returns:
        the oncanplay event handler
      • setOncanplay

        public void setOncanplay​(java.lang.Object oncanplay)
        Sets the oncanplay event handler.
        Parameters:
        oncanplay - the oncanplay event handler
      • getOnmousedown

        public org.htmlunit.corejs.javascript.Function getOnmousedown()
        Returns the onmousedown event handler.
        Returns:
        the onmousedown event handler
      • setOnmousedown

        public void setOnmousedown​(java.lang.Object onmousedown)
        Sets the onmousedown event handler.
        Parameters:
        onmousedown - the onmousedown event handler
      • getOnlanguagechange

        public org.htmlunit.corejs.javascript.Function getOnlanguagechange()
        Returns the onlanguagechange event handler.
        Returns:
        the onlanguagechange event handler
      • setOnlanguagechange

        public void setOnlanguagechange​(java.lang.Object onlanguagechange)
        Sets the onlanguagechange event handler.
        Parameters:
        onlanguagechange - the onlanguagechange event handler
      • getOnemptied

        public org.htmlunit.corejs.javascript.Function getOnemptied()
        Returns the onemptied event handler.
        Returns:
        the onemptied event handler
      • setOnemptied

        public void setOnemptied​(java.lang.Object onemptied)
        Sets the onemptied event handler.
        Parameters:
        onemptied - the onemptied event handler
      • getOnrejectionhandled

        public org.htmlunit.corejs.javascript.Function getOnrejectionhandled()
        Returns the onrejectionhandled event handler.
        Returns:
        the onrejectionhandled event handler
      • setOnrejectionhandled

        public void setOnrejectionhandled​(java.lang.Object onrejectionhandled)
        Sets the onrejectionhandled event handler.
        Parameters:
        onrejectionhandled - the onrejectionhandled event handler
      • getOnpointercancel

        public org.htmlunit.corejs.javascript.Function getOnpointercancel()
        Returns the onpointercancel event handler.
        Returns:
        the onpointercancel event handler
      • setOnpointercancel

        public void setOnpointercancel​(java.lang.Object onpointercancel)
        Sets the onpointercancel event handler.
        Parameters:
        onpointercancel - the onpointercancel event handler
      • getOnresize

        public org.htmlunit.corejs.javascript.Function getOnresize()
        Returns the onresize event handler.
        Returns:
        the onresize event handler
      • setOnresize

        public void setOnresize​(java.lang.Object onresize)
        Sets the onresize event handler.
        Parameters:
        onresize - the onresize event handler
      • getOnpause

        public org.htmlunit.corejs.javascript.Function getOnpause()
        Returns the onpause event handler.
        Returns:
        the onpause event handler
      • setOnpause

        public void setOnpause​(java.lang.Object onpause)
        Sets the onpause event handler.
        Parameters:
        onpause - the onpause event handler
      • getOnloadstart

        public org.htmlunit.corejs.javascript.Function getOnloadstart()
        Returns the onloadstart event handler.
        Returns:
        the onloadstart event handler
      • setOnloadstart

        public void setOnloadstart​(java.lang.Object onloadstart)
        Sets the onloadstart event handler.
        Parameters:
        onloadstart - the onloadstart event handler
      • getOnprogress

        public org.htmlunit.corejs.javascript.Function getOnprogress()
        Returns the onprogress event handler.
        Returns:
        the onprogress event handler
      • setOnprogress

        public void setOnprogress​(java.lang.Object onprogress)
        Sets the onprogress event handler.
        Parameters:
        onprogress - the onprogress event handler
      • getOnpointerup

        public org.htmlunit.corejs.javascript.Function getOnpointerup()
        Returns the onpointerup event handler.
        Returns:
        the onpointerup event handler
      • setOnpointerup

        public void setOnpointerup​(java.lang.Object onpointerup)
        Sets the onpointerup event handler.
        Parameters:
        onpointerup - the onpointerup event handler
      • getOnwheel

        public org.htmlunit.corejs.javascript.Function getOnwheel()
        Returns the onwheel event handler.
        Returns:
        the onwheel event handler
      • setOnwheel

        public void setOnwheel​(java.lang.Object onwheel)
        Sets the onwheel event handler.
        Parameters:
        onwheel - the onwheel event handler
      • getOnpointerleave

        public org.htmlunit.corejs.javascript.Function getOnpointerleave()
        Returns the onpointerleave event handler.
        Returns:
        the onpointerleave event handler
      • setOnpointerleave

        public void setOnpointerleave​(java.lang.Object onpointerleave)
        Sets the onpointerleave event handler.
        Parameters:
        onpointerleave - the onpointerleave event handler
      • getOnbeforeprint

        public org.htmlunit.corejs.javascript.Function getOnbeforeprint()
        Returns the onbeforeprint event handler.
        Returns:
        the onbeforeprint event handler
      • setOnbeforeprint

        public void setOnbeforeprint​(java.lang.Object onbeforeprint)
        Sets the onbeforeprint event handler.
        Parameters:
        onbeforeprint - the onbeforeprint event handler
      • getOnstorage

        public org.htmlunit.corejs.javascript.Function getOnstorage()
        Returns the onstorage event handler.
        Returns:
        the onstorage event handler
      • setOnstorage

        public void setOnstorage​(java.lang.Object onstorage)
        Sets the onstorage event handler.
        Parameters:
        onstorage - the onstorage event handler
      • getOnanimationstart

        public org.htmlunit.corejs.javascript.Function getOnanimationstart()
        Returns the onanimationstart event handler.
        Returns:
        the onanimationstart event handler
      • setOnanimationstart

        public void setOnanimationstart​(java.lang.Object onanimationstart)
        Sets the onanimationstart event handler.
        Parameters:
        onanimationstart - the onanimationstart event handler
      • getOntimeupdate

        public org.htmlunit.corejs.javascript.Function getOntimeupdate()
        Returns the ontimeupdate event handler.
        Returns:
        the ontimeupdate event handler
      • setOntimeupdate

        public void setOntimeupdate​(java.lang.Object ontimeupdate)
        Sets the ontimeupdate event handler.
        Parameters:
        ontimeupdate - the ontimeupdate event handler
      • getOnpagehide

        public org.htmlunit.corejs.javascript.Function getOnpagehide()
        Returns the onpagehide event handler.
        Returns:
        the onpagehide event handler
      • setOnpagehide

        public void setOnpagehide​(java.lang.Object onpagehide)
        Sets the onpagehide event handler.
        Parameters:
        onpagehide - the onpagehide event handler
      • getOnwebkitanimationiteration

        public org.htmlunit.corejs.javascript.Function getOnwebkitanimationiteration()
        Returns the onwebkitanimationiteration event handler.
        Returns:
        the onwebkitanimationiteration event handler
      • setOnwebkitanimationiteration

        public void setOnwebkitanimationiteration​(java.lang.Object onwebkitanimationiteration)
        Sets the onwebkitanimationiteration event handler.
        Parameters:
        onwebkitanimationiteration - the onwebkitanimationiteration event handler
      • getOnabort

        public org.htmlunit.corejs.javascript.Function getOnabort()
        Returns the onabort event handler.
        Returns:
        the onabort event handler
      • setOnabort

        public void setOnabort​(java.lang.Object onabort)
        Sets the onabort event handler.
        Parameters:
        onabort - the onabort event handler
      • getOnloadedmetadata

        public org.htmlunit.corejs.javascript.Function getOnloadedmetadata()
        Returns the onloadedmetadata event handler.
        Returns:
        the onloadedmetadata event handler
      • setOnloadedmetadata

        public void setOnloadedmetadata​(java.lang.Object onloadedmetadata)
        Sets the onloadedmetadata event handler.
        Parameters:
        onloadedmetadata - the onloadedmetadata event handler
      • getOnmouseup

        public org.htmlunit.corejs.javascript.Function getOnmouseup()
        Returns the onmouseup event handler.
        Returns:
        the onmouseup event handler
      • setOnmouseup

        public void setOnmouseup​(java.lang.Object onmouseup)
        Sets the onmouseup event handler.
        Parameters:
        onmouseup - the onmouseup event handler
      • getOndragover

        public org.htmlunit.corejs.javascript.Function getOndragover()
        Returns the ondragover event handler.
        Returns:
        the ondragover event handler
      • setOndragover

        public void setOndragover​(java.lang.Object ondragover)
        Sets the ondragover event handler.
        Parameters:
        ondragover - the ondragover event handler
      • getOnonline

        public org.htmlunit.corejs.javascript.Function getOnonline()
        Returns the ononline event handler.
        Returns:
        the ononline event handler
      • setOnonline

        public void setOnonline​(java.lang.Object ononline)
        Sets the ononline event handler.
        Parameters:
        ononline - the ononline event handler
      • getOnsearch

        public org.htmlunit.corejs.javascript.Function getOnsearch()
        Returns the onsearch event handler.
        Returns:
        the onsearch event handler
      • setOnsearch

        public void setOnsearch​(java.lang.Object onsearch)
        Sets the onsearch event handler.
        Parameters:
        onsearch - the onsearch event handler
      • getOninput

        public org.htmlunit.corejs.javascript.Function getOninput()
        Returns the oninput event handler.
        Returns:
        the oninput event handler
      • setOninput

        public void setOninput​(java.lang.Object oninput)
        Sets the oninput event handler.
        Parameters:
        oninput - the oninput event handler
      • getOnwebkittransitionend

        public org.htmlunit.corejs.javascript.Function getOnwebkittransitionend()
        Returns the onwebkittransitionend event handler.
        Returns:
        the onwebkittransitionend event handler
      • setOnwebkittransitionend

        public void setOnwebkittransitionend​(java.lang.Object onwebkittransitionend)
        Sets the onwebkittransitionend event handler.
        Parameters:
        onwebkittransitionend - the onwebkittransitionend event handler
      • getOndevicemotion

        public org.htmlunit.corejs.javascript.Function getOndevicemotion()
        Returns the ondevicemotion event handler.
        Returns:
        the ondevicemotion event handler
      • setOndevicemotion

        public void setOndevicemotion​(java.lang.Object ondevicemotion)
        Sets the ondevicemotion event handler.
        Parameters:
        ondevicemotion - the ondevicemotion event handler
      • getOnstalled

        public org.htmlunit.corejs.javascript.Function getOnstalled()
        Returns the onstalled event handler.
        Returns:
        the onstalled event handler
      • setOnstalled

        public void setOnstalled​(java.lang.Object onstalled)
        Sets the onstalled event handler.
        Parameters:
        onstalled - the onstalled event handler
      • getOnmouseenter

        public org.htmlunit.corejs.javascript.Function getOnmouseenter()
        Returns the onmouseenter event handler.
        Returns:
        the onmouseenter event handler
      • setOnmouseenter

        public void setOnmouseenter​(java.lang.Object onmouseenter)
        Sets the onmouseenter event handler.
        Parameters:
        onmouseenter - the onmouseenter event handler
      • getOndragleave

        public org.htmlunit.corejs.javascript.Function getOndragleave()
        Returns the ondragleave event handler.
        Returns:
        the ondragleave event handler
      • setOndragleave

        public void setOndragleave​(java.lang.Object ondragleave)
        Sets the ondragleave event handler.
        Parameters:
        ondragleave - the ondragleave event handler
      • getOnpointerdown

        public org.htmlunit.corejs.javascript.Function getOnpointerdown()
        Returns the onpointerdown event handler.
        Returns:
        the onpointerdown event handler
      • setOnpointerdown

        public void setOnpointerdown​(java.lang.Object onpointerdown)
        Sets the onpointerdown event handler.
        Parameters:
        onpointerdown - the onpointerdown event handler
      • getOndrop

        public org.htmlunit.corejs.javascript.Function getOndrop()
        Returns the ondrop event handler.
        Returns:
        the ondrop event handler
      • setOndrop

        public void setOndrop​(java.lang.Object ondrop)
        Sets the ondrop event handler.
        Parameters:
        ondrop - the ondrop event handler
      • getOnunload

        public org.htmlunit.corejs.javascript.Function getOnunload()
        Returns the onunload event handler.
        Returns:
        the onunload event handler
      • setOnunload

        public void setOnunload​(java.lang.Object onunload)
        Sets the onunload event handler.
        Parameters:
        onunload - the onunload event handler
      • getOnwebkitanimationend

        public org.htmlunit.corejs.javascript.Function getOnwebkitanimationend()
        Returns the onwebkitanimationend event handler.
        Returns:
        the onwebkitanimationend event handler
      • setOnwebkitanimationend

        public void setOnwebkitanimationend​(java.lang.Object onwebkitanimationend)
        Sets the onwebkitanimationend event handler.
        Parameters:
        onwebkitanimationend - the onwebkitanimationend event handler
      • getOndragstart

        public org.htmlunit.corejs.javascript.Function getOndragstart()
        Returns the ondragstart event handler.
        Returns:
        the ondragstart event handler
      • setOndragstart

        public void setOndragstart​(java.lang.Object ondragstart)
        Sets the ondragstart event handler.
        Parameters:
        ondragstart - the ondragstart event handler
      • getOntransitionend

        public org.htmlunit.corejs.javascript.Function getOntransitionend()
        Returns the ontransitionend event handler.
        Returns:
        the ontransitionend event handler
      • setOntransitionend

        public void setOntransitionend​(java.lang.Object ontransitionend)
        Sets the ontransitionend event handler.
        Parameters:
        ontransitionend - the ontransitionend event handler
      • getOndeviceorientationabsolute

        public org.htmlunit.corejs.javascript.Function getOndeviceorientationabsolute()
        Returns the ondeviceorientationabsolute event handler.
        Returns:
        the ondeviceorientationabsolute event handler
      • setOndeviceorientationabsolute

        public void setOndeviceorientationabsolute​(java.lang.Object ondeviceorientationabsolute)
        Sets the ondeviceorientationabsolute event handler.
        Parameters:
        ondeviceorientationabsolute - the ondeviceorientationabsolute event handler
      • getOnvolumechange

        public org.htmlunit.corejs.javascript.Function getOnvolumechange()
        Returns the onvolumechange event handler.
        Returns:
        the onvolumechange event handler
      • setOnvolumechange

        public void setOnvolumechange​(java.lang.Object onvolumechange)
        Sets the onvolumechange event handler.
        Parameters:
        onvolumechange - the onvolumechange event handler
      • getOngotpointercapture

        public org.htmlunit.corejs.javascript.Function getOngotpointercapture()
        Returns the ongotpointercapture event handler.
        Returns:
        the ongotpointercapture event handler
      • setOngotpointercapture

        public void setOngotpointercapture​(java.lang.Object ongotpointercapture)
        Sets the ongotpointercapture event handler.
        Parameters:
        ongotpointercapture - the ongotpointercapture event handler
      • getOnpopstate

        public org.htmlunit.corejs.javascript.Function getOnpopstate()
        Returns the onpopstate event handler.
        Returns:
        the onpopstate event handler
      • setOnpopstate

        public void setOnpopstate​(java.lang.Object onpopstate)
        Sets the onpopstate event handler.
        Parameters:
        onpopstate - the onpopstate event handler
      • put

        public void put​(java.lang.String name,
                        org.htmlunit.corejs.javascript.Scriptable start,
                        java.lang.Object value)
        Description copied from class: HtmlUnitScriptable
        Specified by:
        put in interface org.htmlunit.corejs.javascript.Scriptable
        Overrides:
        put in class HtmlUnitScriptable
      • getIsSecureContext

        public java.lang.Object getIsSecureContext()
        Returns:
        a boolean indicating whether the current context is secure (true) or not (false).