gvt.mvc
Class Model

java.lang.Object
  |
  +--gvt.mvc.Model
Direct Known Subclasses:
Counter

public class Model
extends java.lang.Object

This class is the superclass of all models


Constructor Summary
Model()
           
 
Method Summary
 void addView(View view)
          Add a view to the model list.
 void clearChanged()
          Clear the changed flag.
 boolean hasChanged()
          Query the changed flag.
 void notifyViews()
          Updated all views attached to the model.
 void removeView(View view)
          Remove a view from the model list.
 void setChanged()
          Set the changed flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

addView

public void addView(View view)
Add a view to the model list.

removeView

public void removeView(View view)
Remove a view from the model list.

setChanged

public void setChanged()
Set the changed flag.

clearChanged

public void clearChanged()
Clear the changed flag.

hasChanged

public boolean hasChanged()
Query the changed flag.

notifyViews

public void notifyViews()
Updated all views attached to the model.