Index

SystemDialogManager

new SystemDialogManager()

A manager for each SystemDialog show and hide.
Show a dialog - the dialog publish show event from SystemDialog.
Hide a dialog - the dialog publish hide event from SystemDialog.


          - a new active dialog publish 'system-dialog-show' event,
then hide the previous active dialog.
- received 'home', 'holdhome' event from the home button.
And pass the event type to be the argument
for options `onHide` attribute.

Members

static elements

System app is made of a top-level <div ="screen"></div> DOM element which contain all possible screens displayed by the app. Multiple screens can be displayed at a time. We store the list of currently visible screens into this DOM element class attribute.

Properties:
Name Type Description
windows DOMElement

the #windows element, which is the same element that the would AppWindowManager use.

screen DOMElement

the #screen element.

configs

states

Methods

private activateDialog()

Set an dialog as the active dialog.

This:

private deactivateDialog()

Deactivate the current active dialog.

This:

handleEvent()

This:
Listens to Events:
  • system-dialog-created - when a system dialog got created, it would fire this event.event:
  • system-dialog-show - when a system dialog got show request, it would fire this event.event:
  • system-dialog-hide - when a system dialog got hide request, it would fire this event.event:
  • system-resize - when the size of LayoutManager is changed, LayoutManager would send system-resize event.event:

private initElements()

This:

private registerDialog()

This:

private start()

Hook listeners of events this manager interested in.

This:

private unregisterDialog()

This: