mvc
Class DirectModel<T>

java.lang.Object
  extended by mvc.DirectModel<T>
All Implemented Interfaces:
CallbackRegistry, Model<T>
Direct Known Subclasses:
NamedDirectModel

public abstract class DirectModel<T>
extends java.lang.Object
implements Model<T>

DOCME.


Constructor Summary
DirectModel()
          new NamedDirectModel() returns a new NamedDirectModel.
 
Method Summary
 void addCallback(Callback cbk)
          m.addCallback(cbk) registers cbk as an callback of m.
protected  void notifyObservers()
          executeCallbacks() invokes the execute() method for all callbacks of this model.
 void removeCallback(Callback cbk)
          m.removeCallback(cbk) unregisters cbk as an callback of m.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mvc.Model
getValue
 

Constructor Detail

DirectModel

public DirectModel()
new NamedDirectModel() returns a new NamedDirectModel.

Method Detail

notifyObservers

protected void notifyObservers()
executeCallbacks() invokes the execute() method for all callbacks of this model.


addCallback

public void addCallback(Callback cbk)
m.addCallback(cbk) registers cbk as an callback of m.

Specified by:
addCallback in interface CallbackRegistry
Parameters:
cbk -

removeCallback

public void removeCallback(Callback cbk)
m.removeCallback(cbk) unregisters cbk as an callback of m.

Specified by:
removeCallback in interface CallbackRegistry
Parameters:
cbk -