Contents

Class ListView


Inheritance:

Object  »
  View  »
    ListView
      PluggableListView  »
        PluggableListViewByItem  »
        PluggableListViewOfMany  »

Preferred controller: ListController.

This view displays a scrollable list of selectable items. The user can select one item; to do that, he clicks on the item with the red (left) mouse button.

The ListView is hardly ever used, sometimes it is even said that ListView is an abstract class. The PluggableListView is normally used because of its great flexibility.

ListView is not an abstract class, it is best used with a model that follows the value holder pattern.

To support the ListView, a model has to implement these methods:

Instance Variables:

Update Behavior:

ListView is not a pluggable view. Update methods do not compare a message argument with stored selectors, but simply react to some fixed symbols.

Class ListView is now infrequently used because it is a bit inflexible. An instance of this class is best used with a model of its own. A suitable model class is currently not available, it should be a subclass of ValueHolder.

Example of Use:

You find an example on page List View Example.


Contents