Line | |
---|
1 | package org.apollo.mvc;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * A Subject is any object that wants to notify other objects of
|
---|
5 | * changes in its state.
|
---|
6 | *@author Brook Novak
|
---|
7 | */
|
---|
8 | public interface Subject {
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Adds an observer to the set of Observers for this subject.
|
---|
12 | * @param ob the Observer to be added.
|
---|
13 | */
|
---|
14 | void addObserver(Observer ob);
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Removes an Observer from the set of Observers for this subject.
|
---|
18 | * @param ob the Observer to be removed.
|
---|
19 | */
|
---|
20 | void removeObserver(Observer ob);
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.