Attributes | Name and Description |
---|---|
|
caplin.popout.WindowService( windowObject)
|
Attributes | Name and Description |
---|---|
|
Object
exportToMainWindow(Object objectToImport)
Returns a copy of an object that is safe to use in the application's main window. |
|
Object
importFromMainWindow(Object objectToImport)
Returns a copy of an object that is safe to use in the current window. |
|
boolean
isPopout()
Used to determine if the current window is a popout. |
|
void
onPopoutWindowReady(window popoutWindow, caplin.popout.PopoutService popoutService)
Called by PopoutService when the popout window has loaded. |
|
void
open(String relativeUrl, String windowName, String windowProperties, Object callbacks)
A wrapper for window.open that also accepts various callbacks. |
►
caplin.popout.WindowService( windowObject)
windowObject |
►
Object
exportToMainWindow(Object objectToImport)
Returns a copy of an object that is safe to use in the application's main window. The given object must originate from the current window, and must be convertible to a JSON string.
Object | objectToImport | An object from the current window. |
►
Object
importFromMainWindow(Object objectToImport)
Returns a copy of an object that is safe to use in the current window. The given object must originate from the application's main window, and must be convertible to a JSON string.
Object | objectToImport | An object from the application's main window. |
►
boolean
isPopout()
Used to determine if the current window is a popout.
true
if the window is a popout, otherwise false
.
►
void
onPopoutWindowReady(window popoutWindow, caplin.popout.PopoutService popoutService)
Called by PopoutService when the popout window has loaded. Calls the onReady and adds event listeners to the main window and popout windows to call the onClose and onPopoutClosed functions provided to WindowService.open().
window | popoutWindow | reference to the popout window object. |
caplin.popout.PopoutService | popoutService | reference to the PopoutService inside the popout window. |
►
void
open(String relativeUrl, String windowName, String windowProperties, Object callbacks)
A wrapper for window.open that also accepts various callbacks.
String | relativeUrl | relative URL of page to be opened, to be passed to window.open. |
String | windowName | name of window to be passed to window.open. |
String | windowProperties | comma-separated list of property assignments to be passed to window.open. |
Object | callbacks | A simple map of callbacks, of the form:
|