|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for objects that can be observed by an ActionObserver.
| Method Summary | |
void |
addObserver(ActionObserver observer)
Registers this observer so that it will receive notification messages. |
int |
countObservers()
Counts all registered observers. |
boolean |
isObserver(ActionObserver observer)
Determines if the given observer is currently observing this object. |
void |
notifyObservers(Action action,
boolean undo)
Notifies the observers about an action which has been recently performed. |
void |
removeObserver(ActionObserver observer)
Un-registers this observer so that it will not receive notifications any longer. |
| Method Detail |
public void addObserver(ActionObserver observer)
observer - the observer to be registeredpublic void removeObserver(ActionObserver observer)
observer - the observer to be un-registeredpublic int countObservers()
public boolean isObserver(ActionObserver observer)
observer - the observer
public void notifyObservers(Action action,
boolean undo)
action - the action which has been performedundo - true if the action has been undone, false otherwise
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||