Class Window

All Implemented Interfaces:
ScriptableDelegate, AbstractView

public class Window extends AbstractScriptableDelegate implements AbstractView
  • Constructor Details

  • Method Details

    • getHtmlRendererContext

      public HtmlRendererContext getHtmlRendererContext()
    • getUserAgentContext

      public UserAgentContext getUserAgentContext()
    • setDocument

      public void setDocument(HTMLDocumentImpl document)
    • getDocument

      public DocumentView getDocument()
      Description copied from interface: AbstractView
      The source DocumentView of which this is an AbstractView.
      Specified by:
      getDocument in interface AbstractView
    • getDocumentNode

      public Document getDocumentNode()
    • setInterval

      public int setInterval(org.mozilla.javascript.Function aFunction, double aTimeInMs)
      Parameters:
      aFunction - Javascript function to invoke on each loop.
      aTimeInMs - Time in millisecund between each loop.
      Returns:
      Return the timer ID to use as reference
      See Also:
    • setInterval

      public int setInterval(String aExpression, double aTimeInMs)
      Parameters:
      aExpression - Javascript expression to invoke on each loop.
      aTimeInMs - Time in millisecund between each loop.
      Returns:
      Return the timer ID to use as reference
      See Also:
    • clearInterval

      public void clearInterval(int aTimerID)
      Parameters:
      aTimerID - Timer ID to stop.
      See Also:
    • alert

      public void alert(String message)
    • back

      public void back()
    • blur

      public void blur()
    • clearTimeout

      public void clearTimeout(int timeoutID)
    • close

      public void close()
    • confirm

      public boolean confirm(String message)
    • eval

      public Object eval(String javascript)
    • focus

      public void focus()
    • getWindowScope

      public org.mozilla.javascript.Scriptable getWindowScope()
    • getWindow

      public static Window getWindow(HtmlRendererContext rcontext)
    • open

      public Window open(String relativeUrl, String windowName, String windowFeatures, boolean replace)
    • open

      public Window open(String url)
    • open

      public Window open(String url, String windowName)
    • open

      public Window open(String url, String windowName, String windowFeatures)
    • prompt

      public String prompt(String message)
    • prompt

      public String prompt(String message, int inputDefault)
    • prompt

      public String prompt(String message, String inputDefault)
    • scrollTo

      public void scrollTo(int x, int y)
    • scrollBy

      public void scrollBy(int x, int y)
    • resizeTo

      public void resizeTo(int width, int height)
    • resizeBy

      public void resizeBy(int byWidth, int byHeight)
    • setTimeout

      public int setTimeout(String expr, double millis)
    • setTimeout

      public int setTimeout(org.mozilla.javascript.Function function, double millis)
    • isClosed

      public boolean isClosed()
    • getDefaultStatus

      public String getDefaultStatus()
    • getFrames

      public HTMLCollection getFrames()
    • getLength

      public int getLength()
      Gets the number of frames.
    • setLength

      public void setLength(int length)
    • getName

      public String getName()
    • getParent

      public Window getParent()
    • getOpener

      public Window getOpener()
    • setOpener

      public void setOpener(Window opener)
    • getSelf

      public Window getSelf()
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String message)
    • getTop

      public Window getTop()
    • getWindow

      public Window getWindow()
    • getNavigator

      public Navigator getNavigator()
    • getScreen

      public Screen getScreen()
    • getLocation

      public Location getLocation()
    • setLocation

      public void setLocation(String location)
    • getHistory

      public History getHistory()
    • getComputedStyle

      public CSS2Properties getComputedStyle(HTMLElement element, String pseudoElement)
    • getOnload

      public org.mozilla.javascript.Function getOnload()
    • setOnload

      public void setOnload(org.mozilla.javascript.Function onload)
    • getOnunload

      public org.mozilla.javascript.Function getOnunload()
    • setOnunload

      public void setOnunload(org.mozilla.javascript.Function onunload)
    • namedItem

      public Node namedItem(String name)
    • forceGC

      public void forceGC()