Abstract Class sap.ui.core.message.MessageProcessorModule: sap/ui/core/message/MessageProcessor
extends EventProvider
This is an abstract base class for MessageProcessor objects.
Constructor Summary
Method Summary
sap.ui.core.message.MessageProcessor.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.message.MessageProcessor with name
sClassName and enriches it with the information contained in oClassInfo.sap.ui.core.message.MessageProcessor.getMetadata()Returns a metadata object for class sap.ui.core.message.MessageProcessor.
attachMessageChange(oData?, fnFunction, oListener?)Attach event-handler
fnFunction to the 'messageChange' event of this sap.ui.core.message.MessageProcessor.detachMessageChange(fnFunction, oListener)Detach event-handler
fnFunction from the 'sap.ui.core.message.MessageProcessor' event of this sap.ui.core.message.MessageProcessor.Methods borrowed from class sap.ui.base.EventProvider
Methods borrowed from class sap.ui.base.Object
Constructor Detail
Method Detail
sap.ui.core.message.MessageProcessor.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.message.MessageProcessor 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.MessageProcessor.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.message.MessageProcessor.
Returns:
| {sap.ui.base.Metadata} | Metadata object describing this class |
attachMessageChange(oData?, fnFunction, oListener?): sap.ui.core.message.MessageProcessor
Attach event-handler
fnFunction to the 'messageChange' event of this sap.ui.core.message.MessageProcessor.Parameters:
| {object} | oData? | The object, that should be passed along with the event-object when firing the event. |
| {function} | fnFunction | The function to call, when the event occurs. This function will be called on the oListener-instance (if present) or in a 'static way'. |
| {object} | oListener? | Object on which to call the given function. If empty, this MessageProcessor is used. |
Returns:
| {sap.ui.core.message.MessageProcessor} | this to allow method chaining |
checkMessage(): sap.ui.model.ListBinding
Implement in inheriting classes
Returns:
| {sap.ui.model.ListBinding} |
detachMessageChange(fnFunction, oListener): sap.ui.core.message.MessageProcessor
Detach event-handler
fnFunction from the 'sap.ui.core.message.MessageProcessor' event of this sap.ui.core.message.MessageProcessor.The passed function and listener object must match the ones previously used for event registration.
Parameters:
| {function} | fnFunction | The function to call, when the event occurs. |
| {object} | oListener | Object on which the given function had to be called. |
Returns:
| {sap.ui.core.message.MessageProcessor} | this to allow method chaining |
fireMessageChange(mArguments?): sap.ui.core.message.MessageProcessor
Fire event messageChange to attached listeners.
Parameters:
| {object} | mArguments? | the arguments to pass along with the event. |
Returns:
| {sap.ui.core.message.MessageProcessor} | this to allow method chaining |