Observer Pattern
- Model notifies views when something interesting happens
- Button notifies action listeners when something interesting
happens
- Views attach themselves to model in order to be notified
- Action listeners attach themselves to button in order to be
notified
- Generalize: Observers attach themselves to
subject
previous |
start |
next .... [Slide 18] ....