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)When using the databinding type system, the validation/parsing of a new property value could fail.
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:
stringsClassNameName of the class being created
objectoClassInfo?Object literal with information about the class
functionFNMetaImpl?Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
functionCreated 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.MetadataMetadata object describing this class
addMessages(vMessages)
Add messages to MessageManager
Parameters:
sap.ui.core.message.Message|sap.ui.core.message.Message[]vMessagesArray of sap.ui.core.message.Message or single sap.ui.core.message.Message
Get the MessageModel
Returns:
sap.ui.model.message.MessageModeloMessageModel The Message Model
registerMessageProcessor(oProcessor)
Register MessageProcessor
Parameters:
sap.ui.core.message.MessageProcessoroProcessorThe MessageProcessor
registerObject(oObject, bHandleValidation)
When using the databinding type system, the validation/parsing of a new property value could fail. In this case, a validationError/parseError event is fired. These events bubble up to the core. For registered ManagedObjects, the MessageManager attaches to these events and creates a sap.ui.core.message.Message (bHandleValidation=true) for each of these errors and cancels the event bubbling.
Parameters:
sap.ui.base.ManagedObjectoObjectThe sap.ui.base.ManagedObject
booleanbHandleValidationHandle validationError/parseError events for this object. If set to true, the MessageManager creates a Message for each validation/parse error. The event bubbling is canceled in every case.
removeAllMessages()
Remove all messages
removeMessages(vMessages)
Remove given Messages
Parameters:
sap.ui.core.message.Message|sap.ui.core.message.Message[]vMessagesThe message(s) to be removed.
unregisterMessageProcessor(oProcessor)
Deregister MessageProcessor
Parameters:
sap.ui.core.message.MessageProcessoroProcessorThe MessageProcessor
unregisterObject(oObject)
Unregister ManagedObject
Parameters:
sap.ui.base.ManagedObjectoObjectThe sap.ui.base.ManagedObject
destroy()
Destroy MessageManager
Deprecated API:
As of version 1.32, do not call destroy() on a MessageManager.