Package svs_demogame :: Module views :: Class GenericDataView
[show private | hide private]
[frames | no frames]

Class GenericDataView


Base class for view components which display values from data source classes.

These should pair with classes derived from svs_demogame.analysis.ViewableDataSource.
Method Summary
  __init__(self)
  clearDataSource(self)
Disconnects view from current data source.
  notify(self, dataPacket)
Receives notification from data source.
  setDataSource(self, dataSource)
Sets data source for view.
  updateView(self, data)
Performs update of view in response to change in data source.

Method Details

clearDataSource(self)

Disconnects view from current data source.

notify(self, dataPacket)

Receives notification from data source.

NOTE: this should be overridden if other types of notification are used by an extending class.

setDataSource(self, dataSource)

Sets data source for view.

This automatically links the view to the source as a listener.

updateView(self, data)

Performs update of view in response to change in data source.

This must be overridden by the extending class.

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