Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

List model

IListModel inherits from the IModel interface and is used as a base interface for models that manage data organized in lists or collections.

The IListModel interface is not intended to be used directly, instead serving as a base from which other more sophisticated models are derived. Two examples of models that derive from IListModel are the IArrayModel and IVectorModel.

As a skeleton base class, it is important to note that the IListModel interface models only the structure of a simple list (the size and current position of the list) and not the data actually stored in each item of the list.

IListModel provides functions for:

  • managing reference counting of the interface object
  • registering a listener with a list model
  • manipulating the structural information stored in the model