Interface WindowFunctions
-
- All Superinterfaces:
JS5ObjectFunctions,JSObjectFunctions
- All Known Implementing Classes:
Window
public interface WindowFunctions extends JS5ObjectFunctions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalert(JSString arg)function alert() Displays an alert box with a message and an OK buttonJSStringatob(JSString arg)function atob(arg) The atob() method of window object decodes a string of data which has been encoded using base-64 encoding.voidback()voidblur()function blur() Removes focus from the current windowJSStringbtoa(JSString arg)function btoa(arg) The btoa() method of window object is used to convert a given string to an encoded data (using base-64 encoding) string.voidcaptureEvents(JSObject arg1)voidclearInterval(JS5Object arg)function clearInterval(arg) Clears a timer set with setInterval()voidclearTimeout(JS5Object arg)function clearTimeout(arg) Clears a timer set with setTimeout()voidclose()function close() Closes the current windowJSBooleanconfirm(JSString arg)function confirm() Displays a dialog box with a message and an OK and a Cancel buttonvoiddisableExternalCapture()voidenableExternalCapture()voidfind()voidfocus()function focus() Sets focus to the current windowvoidforward()JS5ObjectgetComputedStyle(org.w3c.dom.Element arg1, JSString arg2)function getComputedStyle(arg1, arg2)voidhome()voidmoveBy(JSNumber arg1, JSNumber arg2)function moveBy(arg1, arg2) Moves a window relative to its current positionvoidmoveTo(JSNumber arg1, JSNumber arg2)function moveTo(arg1, arg2) Moves a window to the specified positionWindowopen(JSString URL, JSString name, JSString specs, JSBoolean replace)function open(URL, name, specs, replace) Opens a new browser windowvoidprint()function print() Prints the content of the current windowJSStringprompt()function prompt(arg1, arg2) Displays a dialog box that prompts the visitor for inputvoidreleaseEvents(JSObject arg1)voidresizeBy(JSNumber arg1, JSNumber arg2)function resizeBy(arg1, arg2) Resizes the window by the specified pixelsvoidresizeTo(JSNumber arg1, JSNumber arg2)function resizeTo(arg1, arg2) Resizes the window to the specified width and heightvoidrouteEvent(JSObject arg1)voidscroll(JSNumber arg1, JSNumber arg2)voidscrollBy(JSNumber arg1, JSNumber arg2)function scrollBy(arg1, arg2) Scrolls the content by the specified number of pixelsvoidscrollTo(JSNumber arg1, JSNumber arg2)function scrollTo(arg1, arg2) Scrolls the content to the specified coordinatesJSNumbersetInterval(JSObject arg1, JSNumber arg2)function setInterval(arg1, arg2) Calls a function or evaluates an expression at specified intervals (in milliseconds)voidsetResizable(JSBoolean arg)function setResizable(arg)JSNumbersetTimeout(JSObject arg1, JSNumber arg2)function setTimeout(arg1, arg2) Calls a function or evaluates an expression after a specified number of millisecondsvoidstop()-
Methods inherited from interface org.fife.rsta.ac.js.ecma.api.ecma3.functions.JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf
-
-
-
-
Method Detail
-
alert
void alert(JSString arg)
function alert() Displays an alert box with a message and an OK button- Parameters:
arg-
-
blur
void blur()
function blur() Removes focus from the current window
-
clearInterval
void clearInterval(JS5Object arg)
function clearInterval(arg) Clears a timer set with setInterval()- Parameters:
arg-
-
clearTimeout
void clearTimeout(JS5Object arg)
function clearTimeout(arg) Clears a timer set with setTimeout()- Parameters:
arg-
-
close
void close()
function close() Closes the current window
-
confirm
JSBoolean confirm(JSString arg)
function confirm() Displays a dialog box with a message and an OK and a Cancel button- Parameters:
arg-
-
focus
void focus()
function focus() Sets focus to the current window
-
getComputedStyle
JS5Object getComputedStyle(org.w3c.dom.Element arg1, JSString arg2)
function getComputedStyle(arg1, arg2)- Parameters:
arg1-arg2-
-
moveTo
void moveTo(JSNumber arg1, JSNumber arg2)
function moveTo(arg1, arg2) Moves a window to the specified position- Parameters:
arg1-arg2-
-
moveBy
void moveBy(JSNumber arg1, JSNumber arg2)
function moveBy(arg1, arg2) Moves a window relative to its current position- Parameters:
arg1-arg2-
-
open
Window open(JSString URL, JSString name, JSString specs, JSBoolean replace)
function open(URL, name, specs, replace) Opens a new browser window- Parameters:
URL-name-specs-replace-
-
print
void print()
function print() Prints the content of the current window
-
prompt
JSString prompt()
function prompt(arg1, arg2) Displays a dialog box that prompts the visitor for input
-
resizeTo
void resizeTo(JSNumber arg1, JSNumber arg2)
function resizeTo(arg1, arg2) Resizes the window to the specified width and height- Parameters:
arg1-arg2-
-
resizeBy
void resizeBy(JSNumber arg1, JSNumber arg2)
function resizeBy(arg1, arg2) Resizes the window by the specified pixels- Parameters:
arg1-arg2-
-
scrollTo
void scrollTo(JSNumber arg1, JSNumber arg2)
function scrollTo(arg1, arg2) Scrolls the content to the specified coordinates- Parameters:
arg1-arg2-
-
scrollBy
void scrollBy(JSNumber arg1, JSNumber arg2)
function scrollBy(arg1, arg2) Scrolls the content by the specified number of pixels- Parameters:
arg1-arg2-
-
setInterval
JSNumber setInterval(JSObject arg1, JSNumber arg2)
function setInterval(arg1, arg2) Calls a function or evaluates an expression at specified intervals (in milliseconds)- Parameters:
arg1-arg2-
-
setTimeout
JSNumber setTimeout(JSObject arg1, JSNumber arg2)
function setTimeout(arg1, arg2) Calls a function or evaluates an expression after a specified number of milliseconds- Parameters:
arg1-arg2-
-
atob
JSString atob(JSString arg)
function atob(arg) The atob() method of window object decodes a string of data which has been encoded using base-64 encoding. For example, the window.btoa method takes a binary string as a parameter and returns a base-64 encoded string.- Parameters:
arg-
-
btoa
JSString btoa(JSString arg)
function btoa(arg) The btoa() method of window object is used to convert a given string to an encoded data (using base-64 encoding) string.- Parameters:
arg-
-
setResizable
void setResizable(JSBoolean arg)
function setResizable(arg)- Parameters:
arg-
-
captureEvents
void captureEvents(JSObject arg1)
-
releaseEvents
void releaseEvents(JSObject arg1)
-
routeEvent
void routeEvent(JSObject arg1)
-
enableExternalCapture
void enableExternalCapture()
-
disableExternalCapture
void disableExternalCapture()
-
find
void find()
-
back
void back()
-
forward
void forward()
-
home
void home()
-
stop
void stop()
-
-