DataModelChangeType

Since: BlackBerry 10.0.0

#include <bb/cascades/DataModelChangeType>

Represents different types of data model changes.

These types of data model changes are used by the DataModel::itemsChanged() signal, and can be seen as a hint to the listener about how to visualize the model change (for example, what animations, if any, to use).


Overview

Public Types Index

enum Type

Init, AddRemove, Update

Public Types

Type

Data model change types.

Since:

BlackBerry 10.0.0

Init

Indicates that all items might have been removed from the DataModel.

AddRemove

Specifies that items in the ListView cache will remain there unless they were removed from the DataModel.

Must be combined with a DataModel::IndexMapper so that the ListView can determine which items it can keep in its cache. Otherwise this option is treated just like Init.

This option can for example be used when a batch of items have been added to or removed from a DataModel.

Since:

BlackBerry 10.0.0

Update

Specifies that no items have been added or removed, but the ListView needs to call DataModel::data() again for all cached items.

This option can for example be used when all strings in the application must be reloaded due to a change of locale.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus