|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of the Observer design pattern.
An Subject may have Observers added to it to watch it. The Subject may notify it's observers upon a state has changed. A Subject may observe more than one Observer.
This pattern is generally used for Widget-Widget interactions.
The Subject does not always have to notify it's Observers of any state change. This notification is not required but functionality should be well documented of all implementing classes.
$Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/Subject.java,v $$Log: Subject.java,v $ Revision 1.2 2005/07/24 04:03:28 afettes no message Revision 1.1 2005/07/24 03:55:32 afettes Initial commit to CVS.
Observer
Method Summary | |
void |
attach(Observer in_observer)
The observer to be attached. |
void |
detach(Observer in_observer)
The observer to be detached. |
Method Detail |
public void attach(Observer in_observer)
in_observer
- public void detach(Observer in_observer)
in_observer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |