com.md5importer.model
Class AbstractObservable

java.lang.Object
  extended by com.md5importer.model.AbstractObservable
All Implemented Interfaces:
IObservable
Direct Known Subclasses:
MD5Anim

public abstract class AbstractObservable
extends java.lang.Object
implements IObservable

AbstractObservable defines the basic abstraction of an observable data unit that can be observed by various observers. It only provides the most commonly shared implementations of all observable units.


Constructor Summary
protected AbstractObservable()
          Constructor of AbstractObservable.
 
Method Summary
 void notifyUpdate()
          Notify the registered observers for update.
 void register(IObserver observer)
          Register the given observer to be notified when the state changes.
 void unregister(IObserver observer)
          Unregister the given observer to stop notifying to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractObservable

protected AbstractObservable()
Constructor of AbstractObservable.

Method Detail

notifyUpdate

public void notifyUpdate()
Description copied from interface: IObservable
Notify the registered observers for update.

Specified by:
notifyUpdate in interface IObservable

register

public void register(IObserver observer)
Description copied from interface: IObservable
Register the given observer to be notified when the state changes.

Specified by:
register in interface IObservable
Parameters:
observer - The IObserver to be registered.

unregister

public void unregister(IObserver observer)
Description copied from interface: IObservable
Unregister the given observer to stop notifying to it.

Specified by:
unregister in interface IObservable
Parameters:
observer - The IObserver to be unregistered.