Package org.lobobrowser.html.js
Class Window
java.lang.Object
org.lobobrowser.js.AbstractScriptableDelegate
org.lobobrowser.html.js.Window
- All Implemented Interfaces:
ScriptableDelegate
,AbstractView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
back()
void
blur()
void
clearInterval
(int aTimerID) void
clearTimeout
(int timeoutID) void
close()
boolean
void
focus()
void
forceGC()
getComputedStyle
(HTMLElement element, String pseudoElement) The sourceDocumentView
of which this is anAbstractView
.int
Gets the number of frames.getName()
org.mozilla.javascript.Function
org.mozilla.javascript.Function
getSelf()
getTop()
static Window
getWindow
(HtmlRendererContext rcontext) org.mozilla.javascript.Scriptable
boolean
isClosed()
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
(String aExpression, double aTimeInMs) int
setInterval
(org.mozilla.javascript.Function aFunction, double aTimeInMs) void
setLength
(int length) void
setLocation
(String location) void
setOnload
(org.mozilla.javascript.Function onload) void
setOnunload
(org.mozilla.javascript.Function onunload) void
void
int
setTimeout
(String expr, double millis) int
setTimeout
(org.mozilla.javascript.Function function, double millis) Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
Window
-
-
Method Details
-
getHtmlRendererContext
-
getUserAgentContext
-
setDocument
-
getDocument
Description copied from interface:AbstractView
The sourceDocumentView
of which this is anAbstractView
.- Specified by:
getDocument
in interfaceAbstractView
-
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
- 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
-
back
public void back() -
blur
public void blur() -
clearTimeout
public void clearTimeout(int timeoutID) -
close
public void close() -
confirm
-
eval
-
focus
public void focus() -
getWindowScope
public org.mozilla.javascript.Scriptable getWindowScope() -
getWindow
-
open
-
open
-
open
-
open
-
prompt
-
prompt
-
prompt
-
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
-
setTimeout
public int setTimeout(org.mozilla.javascript.Function function, double millis) -
isClosed
public boolean isClosed() -
getDefaultStatus
-
getFrames
-
getLength
public int getLength()Gets the number of frames. -
setLength
public void setLength(int length) -
getName
-
getParent
-
getOpener
-
setOpener
-
getSelf
-
getStatus
-
setStatus
-
getTop
-
getWindow
-
getScreen
-
getLocation
-
setLocation
-
getHistory
-
getComputedStyle
-
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
-
forceGC
public void forceGC()
-