Class sap.ui.core.message.MessageManagerModule: sap/ui/core/message/MessageManager
Constructor Summary
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.
registerObject(oObject, bHandleValidation)Register ManagedObject: Validation and Parse errors are handled by the MessageManager for this object
Methods borrowed from class sap.ui.base.EventProvider
Methods borrowed from class sap.ui.base.Object
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 |
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 |