File

src/services/windowsManager/windows-manager.service.ts

Description

Service to manage the open windows and its last focused control. It has a stack to add each open window, the active window will be the first item in the stack. Each time a window becomes active, the last focused control is saved for the previous window.

Index

Properties
Methods

Constructor

constructor(focusManager: FocusManagerService)

Creates an instance of the WindowsManagerService

Parameters :
Name Type Optional
focusManager FocusManagerService No

Methods

getActiveWindow
getActiveWindow()

Get the current active window

Returns : WMWindowComponent
isWindowOpened
isWindowOpened(window: WMWindowComponent)

Validate if current window is open.

Parameters :
Name Type Optional
window WMWindowComponent No
Returns : any
removeWindow
removeWindow(window: WMWindowComponent)

Removes a window from the stack when it is closed

Parameters :
Name Type Optional
window WMWindowComponent No
Returns : void
setActiveWindow
setActiveWindow(window: WMWindowComponent)

Sets a specific window as active

Parameters :
Name Type Optional
window WMWindowComponent No
Returns : void

Properties

Private openedWindows
Type : WMWindowComponent[]
Default value : []

Open windows stack

results matching ""

    No results matching ""