|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blackbox.shell.ObserverPatternImpl
public class ObserverPatternImpl
Implementation of the Observale pattern for a container.
Field Summary | |
---|---|
protected Event |
curEvent
|
Constructor Summary | |
---|---|
ObserverPatternImpl()
|
Method Summary | |
---|---|
void |
addObserver(ModelObserver o)
Add a new observer. |
protected void |
notifyObservers()
|
void |
removeObserver(ModelObserver o)
Remove an observer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Event curEvent
Constructor Detail |
---|
public ObserverPatternImpl()
Method Detail |
---|
public void addObserver(ModelObserver o)
ObservableEntity
addObserver
in interface ObservableEntity
o
- the observer to be added.public void removeObserver(ModelObserver o)
ObservableEntity
removeObserver
in interface ObservableEntity
o
- the observer to be removed.protected void notifyObservers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |