Table of Contents

Class: IView Twisted-0.18.0/twisted/python/mvc.py

A MVC View

Base Classes   
components.Interface
Methods   
__init__
controllerFactory
draw
modelChanged
  __init__ 
__init__ (
        self,
        model,
        controller=None,
        )

A view must be told what it's model is, and may be told what it's controller is, but can also look up it's controller if none specified.

Exceptions   
NotImplementedError
  controllerFactory 
controllerFactory ( self )

Hook for subclasses to customize the controller that is associated with the model associated with this view.

Default behavior: Look up a component that implements IController for the self.model instance.

  draw 
draw ( self )

Hook subclasses can override to implement drawing the whole view

  modelChanged 
modelChanged ( self,  changed )

Dispatch changed messages to any update_* methods which may have been defined, then pass the update notification on to the controller.


Table of Contents

This document was automatically generated on Sat Jun 1 22:29:15 2002 by HappyDoc version 2.0