Monitored
index
/home/mike/src/jokosher/trunk/Jokosher/Monitored.py

#       THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
#       THE 'COPYING' FILE FOR DETAILS
#
#       Monitored.py
#       
#       Offers an abstract class for reporting changes to other objects
#
#-------------------------------------------------------------------------------

 
Classes
       
Monitored

 
class Monitored
    This class defines a set of functions to allow derived classes to
have attached monitor objects, which should be signaled if the 
monitored objects state changes.
 
  Methods defined here:
AddListener(self, obj)
Adds an object to report changes too.
 
Keyword arguments:
obj -- An object to inform when StateChanged is called.
RemoveListener(self, obj)
Stop reporting changes to the specified object.
 
Keyword arguments:
obj -- The object which should no longer receive change updates.
StateChanged(self, change=None)
This function should be called when we want a change to be reported to all objects previously added by AddListener. 
 
Keyword arguments:
change -- The change which has occured (optional).
__init__(self)