src/services/windowsManager/windows-manager.service.ts
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.
Properties |
|
Methods |
constructor(focusManager: FocusManagerService)
|
||||||
Creates an instance of the WindowsManagerService
Parameters :
|
getActiveWindow |
getActiveWindow()
|
Get the current active window
Returns :
WMWindowComponent
|
isWindowOpened | ||||||
isWindowOpened(window: WMWindowComponent)
|
||||||
Validate if current window is open.
Parameters :
Returns :
any
|
removeWindow | ||||||
removeWindow(window: WMWindowComponent)
|
||||||
Removes a window from the stack when it is closed
Parameters :
Returns :
void
|
setActiveWindow | ||||||
setActiveWindow(window: WMWindowComponent)
|
||||||
Sets a specific window as active
Parameters :
Returns :
void
|
Private openedWindows |
Type : WMWindowComponent[]
|
Default value : []
|
Open windows stack |