API Reference for Enthought Tool Suite 3.2.0

Defines a handler class which provides a view and controller for a specified model.

This class is useful when creating a variant of the standard MVC-based design. A subclass of ModelView reformulates a number of traits on its model object as properties on the ModelView subclass itself, usually in order to convert them into a more user-friendly format. In this design, the ModelView subclass supplies not only the view and the controller, but also, in effect, the model (as a set of properties wrapped around the original model). Because of this, the ModelView context dictionary specifies the ModelView instance itself as the special object value, and assigns the original model object as the model value. Thus, the traits of the ModelView object can be referenced in its View definition using unadorned trait names.

Inherits from

Attributes

Inherited from base classes

Method summary

Inherited from base classes

Methods

© Copyright 2002-2009 Enthought, Inc.