The ManagedObjectModel class can be used for data binding of properties and aggregations for managed objects.
Provides model access to a given sap.ui.base.ManagedObject. Such access allows to bind to properties and aggregations of this object.
The ManagedObjectModel class allows you to bind to properties and aggregations of managed objects.
new sap.ui.model.base.ManagedObjectModel(oObject, oData?)
Param | Type | Default Value | Description |
---|---|---|---|
oObject | sap.ui.base.ManagedObject | the managed object models root object |
|
oData? | object | an object for custom data |
Method | Description |
---|---|
checkUpdate |
Private method iterating the registered bindings of this model instance and initiating their check for update |
sap.ui.model.base.ManagedObjectModel.extend |
Creates a new subclass of class sap.ui.model.base.ManagedObjectModel with name
|
sap.ui.model.base.ManagedObjectModel.getMetadata |
Returns a metadata object for class sap.ui.model.base.ManagedObjectModel. |
setData |
Inserts the user-defined custom data into the model. |
Private method iterating the registered bindings of this model instance and initiating their check for update
Param | Type | DefaultValue | Description |
---|---|---|---|
bForceUpdate | boolean | ||
bAsync | boolean | ||
fnFilter | function |
an optional test function to filter the binding |
Creates a new subclass of class sap.ui.model.base.ManagedObjectModel 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.json.JSONModel.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 |