Class sap.ui.core.message.MessageManagerModule: sap/ui/core/message/MessageManager


Constructor Summary
new sap.ui.core.message.MessageManager()Constructor for a new MessageManager.
Method Summary
sap.ui.core.message.MessageManager.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.message.MessageManager with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.core.message.MessageManager.getMetadata()Returns a metadata object for class sap.ui.core.message.MessageManager.
addMessages(vMessages)Add messages to MessageManager
getMessageModel()Get the MessageModel
registerMessageProcessor(oProcessor)Register MessageProcessor
registerObject(oObject, bHandleValidation)Register ManagedObject: Validation and Parse errors are handled by the MessageManager for this object
removeAllMessages()Remove all messages
removeMessages(vMessages)Remove given Messages
unregisterMessageProcessor(oProcessor)Deregister MessageProcessor
unregisterObject(oObject)Unregister ManagedObject
destroy()destroy MessageManager
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.core.message.MessageManager()
Constructor for a new MessageManager.
Method Detail
sap.ui.core.message.MessageManager.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.message.MessageManager with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.base.EventProvider.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.core.message.MessageManager.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.message.MessageManager.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addMessages(vMessages)
Add messages to MessageManager
Parameters:
{sap.ui.core.message.Message|sap.ui.core.message.Message[]}vMessages Array of sap.ui.core.message.Message or single sap.ui.core.message.Message
getMessageModel(): sap.ui.core.message.MessageModel
Get the MessageModel
Returns:
{sap.ui.core.message.MessageModel} oMessageModel The Message Model
registerMessageProcessor(oProcessor)
Register MessageProcessor
Parameters:
{sap.ui.core.message.MessageProcessor}oProcessor The MessageProcessor
registerObject(oObject, bHandleValidation)
Register ManagedObject: Validation and Parse errors are handled by the MessageManager for this object
Parameters:
{sap.ui.base.ManageObject}oObject The sap.ui.base.ManageObject
{boolean}bHandleValidation Handle validation for this object. If set to true validation/parse events creates Messages and cancel event. If set to false only the event will be canceled, but no messages will be created
removeAllMessages()
Remove all messages
removeMessages(vMessages)
Remove given Messages
Parameters:
{sap.ui.core.message.Message|sap.ui.core.message.Message[]}vMessages The message(s) to be removed.
unregisterMessageProcessor(oProcessor)
Deregister MessageProcessor
Parameters:
{sap.ui.core.message.MessageProcessor}oProcessor The MessageProcessor
unregisterObject(oObject)
Unregister ManagedObject
Parameters:
{sap.ui.base.ManageObject}oObject The sap.ui.base.ManageObject
destroy()
destroy MessageManager
Deprecated:
true