org.rubato.rubettes.bigbang.controller
Class Controller

java.lang.Object
  extended by org.rubato.rubettes.bigbang.controller.Controller
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener
Direct Known Subclasses:
BigBangController, ViewController

public class Controller
extends java.lang.Object
implements java.beans.PropertyChangeListener


Constructor Summary
Controller()
           
 
Method Summary
 void addModel(Model model)
           
 void addView(View view)
           
 int getViewCount(java.lang.Class<?> c)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Use this to observe property changes from registered models and propagate them on to all the views.
 void removeModel(Model model)
           
 void removeView(View view)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Method Detail

addModel

public void addModel(Model model)

removeModel

public void removeModel(Model model)

addView

public void addView(View view)

removeView

public void removeView(View view)

getViewCount

public int getViewCount(java.lang.Class<?> c)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Use this to observe property changes from registered models and propagate them on to all the views.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener