Package svs_demogame :: Module analysis :: Class ViewableDataSource
[show private | hide private]
[frames | no frames]

Class ViewableDataSource

Listenable --+
             |
            ViewableDataSource

Known Subclasses:
InteractionNetwork, MessageHistory, ScriptHistory

Generic class which can provide data to a view component.
Method Summary
  __init__(self)
  addView(self, view)
Adds view to data source.
  removeView(self, view)
Removes view from data source.
  updateViews(self, displayData)
Notifies views that the source has been altered and needs redisplayed.
    Inherited from Listenable
  addListener(self, listener, listenFor)
Adds new listener to avatar.
  handleListenRequest(self, listenRequest)
Deals with listen request from another client.
  notifyListeners(self, listenFor, dataPacket)
Forward data to listeners.
  removeListener(self, listener, listenFor)
Removes listener from avatar.

Method Details

addView(self, view)

Adds view to data source.

This is added as a listener with the default data label of svs_const.DATA_UPDATED.

removeView(self, view)

Removes view from data source.

updateViews(self, displayData=None)

Notifies views that the source has been altered and needs redisplayed.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:29 2005 http://epydoc.sf.net