import"ApplicationManagerPlugin.idl";
This is a class that implements global Window object.
void Window.addEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Adds DOM2 event listener for specified event.
Possible values are: event_name: "message", listener: function that has arguments similar to the message interface properties.
- Parameters
-
event_name | Name of the event. |
listener | javascript function that has arguments like the properties listed in the listener's interface. |
void Window.bringToFront |
( |
| ) |
|
Move the window to the front of the z-order.
1 var csp_win = ApplicationManager.getWindowByName("DEFAULT_CSP");
2 csp_win.bringToFront();
void Window.deactivate |
( |
| ) |
|
Make the window deactivate.
Make the window invisible.
void Window.loadUrl |
( |
[in] String |
uri | ) |
|
Load a webpage or application from the specified URL.
var relativePath = "windowTest.html";
var
url = convertUrl(relativePath);
testWindow.loadUrl(url);
- Parameters
-
void Window.moveAbove |
( |
[in] Window |
reference_window | ) |
|
Places a window above another window in the window stack.
1 var move_above_win = ApplicationManager.getWindowByName("DEFAULT_CSP");
2 var ref_win = ApplicationManager.getWindowByName("loadUrl_win");
3 move_above_win.moveAbove(ref_win);
- Parameters
-
reference_window | The handle of the reference window. |
void Window.moveBelow |
( |
[in] Window |
reference_window | ) |
|
Places a window below another window in the window stack.
- Parameters
-
reference_window | The handle of the reference window. |
void Window.postMessage |
( |
[in] String |
msg, |
|
|
[in] Window |
target_window |
|
) |
| |
Post message to the listener which is a Window instance.
- Parameters
-
msg | Message that is sent to target window. |
target_window | Target window |
void Window.removeEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Removes single DOM2 event listener for specified event
Possible values are: event_name: "message", listener: function that has arguments similar to the message interface properties.
- Parameters
-
event_name | Name of the event |
listener | named javascript function that has arguments like the properties listed in the listener's interface. |
void Window.removeEventListener |
( |
[in] String |
event_name | ) |
|
void Window.sendToBack |
( |
| ) |
|
Move the window to the back of the z-order.
readonly attribute Boolean Window.active |
attribute Integer Window.event_dispatch_priority |
The event dispatch priority of the window. It must be in the range of [0, 100].
readonly attribute KeySet Window.keySet |
The object representing the user input events sent to the DAE application.
readonly attribute String Window.name |
readonly attribute String Window.url |
Current url loaded in the window
readonly attribute Boolean Window.visible |
The visibility of the window
The documentation for this interface was generated from the following file:
- ApplicationManagerPlugin.idl