adavid.util
Class Observatory
java.lang.Object
|
+--adavid.util.Observatory
- public class Observatory
- extends java.lang.Object
Method Summary |
static void |
notify(java.lang.Object observable,
java.lang.Object arg)
notify observers |
static void |
register(java.lang.Object observable,
Updateable observer)
register an Updateable object |
static void |
unregister(java.lang.Object observable)
unregister all Updateable objects of an observable |
static void |
unregister(java.lang.Object observable,
Updateable observer)
unregister an Updateable object |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Observatory
public Observatory()
register
public static void register(java.lang.Object observable,
Updateable observer)
- register an Updateable object
notify
public static void notify(java.lang.Object observable,
java.lang.Object arg)
- notify observers
unregister
public static void unregister(java.lang.Object observable,
Updateable observer)
- unregister an Updateable object
unregister
public static void unregister(java.lang.Object observable)
- unregister all Updateable objects of an observable