MontageWindow source

Specializes Montage

The Window object is responsible for managing a DOM window.

Properties

application :Application source

Provides the Application associated with the window.

closed :boolean source

True is the window has been closed. Once a window has been close, the MontageWindow object still exist but you cannot use it anymore.

component :component source

Provides a reference to the main Montage component loaded in the window.

document :document source

Provides a reference to the DOM document.

focused :boolean source

True if the window is currently the topmost Montage Window and has focus.

title :string source

The window title. Make sure to use MontageWindow.title to access the window's title rather than directly accessing directly the title by the document, else you will not be able to use binding with the window's title.

window :Window source

Provides a reference to the native window.

Methods

callDelegateMethod(name) source

This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"

Parameters:
Name Type Description
name string
Inherited From:

close() source

Close the window Note: Any child window will be closed too.

equals(anObject) → {boolean} source

Returns true if two objects are equal, otherwise returns false.

Parameters:
Name Type Description
anObject Object

The object to compare for equality.

Inherited From:
Returns: boolean

Returns true if the calling object and anObject are identical and their uuid properties are also equal. Otherwise, returns false.

focus() source

Set the focus on the window, move it to the front.

moveTo(x, y) source

Move the window to the specified screen coordinate x and y

Parameters:
Name Type Description
x Integer

The window's x screen position.

y Integer

The window's y screen position.

resizeTo(width, height) source

Resize the window to the specified width and height

Parameters:
Name Type Description
width Integer

The window's width desired.

height Integer

The window's height desired.

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.