Dialog Class
Defines a dialog-panel to display messages. Every message that fulfills will get the dialog-content as well as the pressed button as return.
Copyright (c) 2014 ITSA - https://github.com/itsa New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Item Index
Properties
Methods
createContainer
()
Creates a Panel-instance that will be used to display the messages. Sets instance.model as panel's model and defines model.callback which fulfills the message when a button on the dialog is pressed,
handleMessage
-
[delay]
-
[level]
Retrieves the next message from the queue and calls showMessage() if it finds one.
isWaiting
()
Boolean
Tells whether dialog
is waitin g for new messages and is currently iddle.
Returns:
whether dialog
is waitin g for new messages
queueMessage
-
e
Processes messages that are emitted by messages
-module and add them in the queue.
Parameters:
-
e
Objectthe eventobject
setupListeners
()
Defines subscribers to the events: :message, :warn and *:error.
showMessage
-
messagePromise
Shows the specified message-promise.
Parameters:
-
messagePromise
Promisethe message to be shown.
Properties
_currentMessageLevel
Number
private
Internal property that tells what message-level is currently active.
Default: 0