class sap.ui.core.message.MessageManager

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/core/message/MessageManager
Application Component: CA-UI5-COR

Constructor

Constructor for a new MessageManager.

new sap.ui.core.message.MessageManager()

Methods Overview

Method Description
addMessages

Add messages to MessageManager

destroy

Destroy MessageManager

Since 1.32 do not call <code>destroy()</code> on a <code>MessageManager</code>.
sap.ui.core.message.MessageManager.extend

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.

getMessageModel

Get the MessageModel

sap.ui.core.message.MessageManager.getMetadata

Returns a metadata object for class sap.ui.core.message.MessageManager.

registerMessageProcessor

Register MessageProcessor

registerObject

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.

removeAllMessages

Remove all messages

removeMessages

Remove given Messages

unregisterMessageProcessor

Deregister MessageProcessor

unregisterObject

Unregister ManagedObject

addMessages

Add messages to MessageManager

Param Type DefaultValue Description
vMessages sap.ui.core.message.Message sap.ui.core.message.Message[]

Array of sap.ui.core.message.Message or single sap.ui.core.message.Message

destroy

Destroy MessageManager

Since 1.32 do not call <code>destroy()</code> on a <code>MessageManager</code>.

sap.ui.core.message.MessageManager.extend

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.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getMessageModel

Get the MessageModel

sap.ui.core.message.MessageManager.getMetadata

Returns a metadata object for class sap.ui.core.message.MessageManager.

registerMessageProcessor

Register MessageProcessor

Param Type DefaultValue Description
oProcessor sap.ui.core.message.MessageProcessor

The MessageProcessor

registerObject

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.

Param Type DefaultValue Description
oObject sap.ui.base.ManagedObject

The sap.ui.base.ManagedObject

bHandleValidation boolean

Handle 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

Remove given Messages

Param Type DefaultValue Description
vMessages sap.ui.core.message.Message sap.ui.core.message.Message[]

The message(s) to be removed.

unregisterMessageProcessor

Deregister MessageProcessor

Param Type DefaultValue Description
oProcessor sap.ui.core.message.MessageProcessor

The MessageProcessor

unregisterObject

Unregister ManagedObject

Param Type DefaultValue Description
oObject sap.ui.base.ManagedObject

The sap.ui.base.ManagedObject