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
|
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 |
removeAllMessages |
Remove all messages |
removeMessages |
Remove given Messages |
unregisterMessageProcessor |
Deregister MessageProcessor |
unregisterObject |
Unregister ManagedObject |
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 MessageManager
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 |
Returns a metadata object for class sap.ui.core.message.MessageManager.
Register MessageProcessor
Param | Type | DefaultValue | Description |
---|---|---|---|
oProcessor | sap.ui.core.message.MessageProcessor |
The MessageProcessor |
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. |
Remove given Messages
Param | Type | DefaultValue | Description |
---|---|---|---|
vMessages | sap.ui.core.message.Message sap.ui.core.message.Message[] |
The message(s) to be removed. |
Deregister MessageProcessor
Param | Type | DefaultValue | Description |
---|---|---|---|
oProcessor | sap.ui.core.message.MessageProcessor |
The MessageProcessor |
Unregister ManagedObject
Param | Type | DefaultValue | Description |
---|---|---|---|
oObject | sap.ui.base.ManagedObject |
The sap.ui.base.ManagedObject |