Class sap.ui.model.message.MessageModelModule: sap/ui/model/message/MessageModel
Model implementation for Messages *
Constructor Summary
Events borrowed from class sap.ui.model.Model
Method Summary
sap.ui.model.message.MessageModel.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.message.MessageModel with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.model.message.MessageModel.getMetadata()Returns a metadata object for class sap.ui.model.message.MessageModel.
setProperty(sPath, oValue, oContext?)Sets a new value for the given property
sPropertyName
in the model.Methods borrowed from class sap.ui.model.ClientModel
Methods borrowed from class sap.ui.model.Model
attachParseError, attachRequestCompleted, attachRequestFailed, attachRequestSent, bindTree, detachParseError, detachRequestCompleted, detachRequestFailed, detachRequestSent, fireParseError, fireRequestCompleted, fireRequestFailed, fireRequestSent, getDefaultBindingMode, getMessagesByPath, getMetaModel, getObject, getOriginalProperty, isBindingModeSupported, isLegacySyntax, refresh, setDefaultBindingMode, setLegacySyntax, setMessages, setSizeLimit
Methods borrowed from class sap.ui.core.message.MessageProcessor
Methods borrowed from class sap.ui.base.EventProvider
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.message.MessageModel(oMessageManager)
Constructor for a new JSONModel.
Parameters:
{sap.ui.core.message.MessageManager} | oMessageManager | The MessageManager instance |
Method Detail
sap.ui.model.message.MessageModel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.message.MessageModel 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.model.ClientModel.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.model.message.MessageModel.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.message.MessageModel.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
getProperty(sPath, oContext?)
Returns the value for the property with the given
sPropertyName
Parameters:
{string} | sPath | the path to the property |
{object} | oContext? | the context which will be used to retrieve the property |
setData(oData)
Sets the message data to the model.
Parameters:
{object} | oData | the data to set on the model |
setProperty(sPath, oValue, oContext?)
Sets a new value for the given property
sPropertyName
in the model. If the model value changed all interested parties are informed. Parameters:
{string} | sPath | path of the property to set |
{any} | oValue | value to set the property to |
{object} | oContext? | the context which will be used to set the property |