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:
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)
Register ManagedObject: Validation and Parse errors are handled by the MessageManager for this object
Parameters:
sap.ui.base.ManagedObjectoObjectThe sap.ui.base.ManagedObject
booleanbHandleValidationHandle 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[]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:
true