Package org.lobobrowser.html.js
Class Window
- java.lang.Object
-
- org.lobobrowser.js.AbstractScriptableDelegate
-
- org.lobobrowser.html.js.Window
-
- All Implemented Interfaces:
ScriptableDelegate
,AbstractView
public class Window extends AbstractScriptableDelegate implements AbstractView
-
-
Constructor Summary
Constructors Constructor Description Window(HtmlRendererContext rcontext, UserAgentContext uaContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
alert(java.lang.String message)
void
back()
void
blur()
void
clearInterval(int aTimerID)
void
clearTimeout(int timeoutID)
void
close()
boolean
confirm(java.lang.String message)
java.lang.Object
eval(java.lang.String javascript)
void
focus()
void
forceGC()
CSS2Properties
getComputedStyle(HTMLElement element, java.lang.String pseudoElement)
java.lang.String
getDefaultStatus()
DocumentView
getDocument()
The sourceDocumentView
of which this is anAbstractView
.org.w3c.dom.Document
getDocumentNode()
HTMLCollection
getFrames()
History
getHistory()
HtmlRendererContext
getHtmlRendererContext()
int
getLength()
Gets the number of frames.Location
getLocation()
java.lang.String
getName()
Navigator
getNavigator()
org.mozilla.javascript.Function
getOnload()
org.mozilla.javascript.Function
getOnunload()
Window
getOpener()
Window
getParent()
Screen
getScreen()
Window
getSelf()
java.lang.String
getStatus()
Window
getTop()
UserAgentContext
getUserAgentContext()
Window
getWindow()
static Window
getWindow(HtmlRendererContext rcontext)
org.mozilla.javascript.Scriptable
getWindowScope()
boolean
isClosed()
org.w3c.dom.Node
namedItem(java.lang.String name)
Window
open(java.lang.String url)
Window
open(java.lang.String url, java.lang.String windowName)
Window
open(java.lang.String url, java.lang.String windowName, java.lang.String windowFeatures)
Window
open(java.lang.String relativeUrl, java.lang.String windowName, java.lang.String windowFeatures, boolean replace)
java.lang.String
prompt(java.lang.String message)
java.lang.String
prompt(java.lang.String message, int inputDefault)
java.lang.String
prompt(java.lang.String message, java.lang.String inputDefault)
void
resizeBy(int byWidth, int byHeight)
void
resizeTo(int width, int height)
void
scrollBy(int x, int y)
void
scrollTo(int x, int y)
void
setDocument(HTMLDocumentImpl document)
int
setInterval(java.lang.String aExpression, double aTimeInMs)
int
setInterval(org.mozilla.javascript.Function aFunction, double aTimeInMs)
void
setLength(int length)
void
setLocation(java.lang.String location)
void
setOnload(org.mozilla.javascript.Function onload)
void
setOnunload(org.mozilla.javascript.Function onunload)
void
setOpener(Window opener)
void
setStatus(java.lang.String message)
int
setTimeout(java.lang.String expr, double millis)
int
setTimeout(org.mozilla.javascript.Function function, double millis)
-
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
-
-
-
Constructor Detail
-
Window
public Window(HtmlRendererContext rcontext, UserAgentContext uaContext)
-
-
Method Detail
-
getHtmlRendererContext
public HtmlRendererContext getHtmlRendererContext()
-
getUserAgentContext
public UserAgentContext getUserAgentContext()
-
setDocument
public void setDocument(HTMLDocumentImpl document)
-
getDocument
public DocumentView getDocument()
Description copied from interface:AbstractView
The sourceDocumentView
of which this is anAbstractView
.- Specified by:
getDocument
in interfaceAbstractView
-
getDocumentNode
public org.w3c.dom.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:
- Window.setInterval interface definition
-
setInterval
public int setInterval(java.lang.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:
- Window.setInterval interface definition
-
clearInterval
public void clearInterval(int aTimerID)
- Parameters:
aTimerID
- Timer ID to stop.- See Also:
- Window.clearInterval interface Definition
-
alert
public void alert(java.lang.String message)
-
back
public void back()
-
blur
public void blur()
-
clearTimeout
public void clearTimeout(int timeoutID)
-
close
public void close()
-
confirm
public boolean confirm(java.lang.String message)
-
eval
public java.lang.Object eval(java.lang.String javascript)
-
focus
public void focus()
-
getWindowScope
public org.mozilla.javascript.Scriptable getWindowScope()
-
getWindow
public static Window getWindow(HtmlRendererContext rcontext)
-
open
public Window open(java.lang.String relativeUrl, java.lang.String windowName, java.lang.String windowFeatures, boolean replace)
-
open
public Window open(java.lang.String url)
-
open
public Window open(java.lang.String url, java.lang.String windowName)
-
open
public Window open(java.lang.String url, java.lang.String windowName, java.lang.String windowFeatures)
-
prompt
public java.lang.String prompt(java.lang.String message)
-
prompt
public java.lang.String prompt(java.lang.String message, int inputDefault)
-
prompt
public java.lang.String prompt(java.lang.String message, java.lang.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(java.lang.String expr, double millis)
-
setTimeout
public int setTimeout(org.mozilla.javascript.Function function, double millis)
-
isClosed
public boolean isClosed()
-
getDefaultStatus
public java.lang.String getDefaultStatus()
-
getFrames
public HTMLCollection getFrames()
-
getLength
public int getLength()
Gets the number of frames.
-
setLength
public void setLength(int length)
-
getName
public java.lang.String getName()
-
getParent
public Window getParent()
-
getOpener
public Window getOpener()
-
setOpener
public void setOpener(Window opener)
-
getSelf
public Window getSelf()
-
getStatus
public java.lang.String getStatus()
-
setStatus
public void setStatus(java.lang.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(java.lang.String location)
-
getHistory
public History getHistory()
-
getComputedStyle
public CSS2Properties getComputedStyle(HTMLElement element, java.lang.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 org.w3c.dom.Node namedItem(java.lang.String name)
-
forceGC
public void forceGC()
-
-