public class ObserverLord<E> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ObserverLord.ObserverNotification<E>
Implement this for each call to ObserverLord.notifyObservers.
|
| Constructor and Description |
|---|
ObserverLord() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(E observer,
boolean inEventQueue)
Adds an observer to our messaging system.
|
void |
notifyObservers(ObserverLord.ObserverNotification<E> notification)
Messaging method that handles telling each observer that something happen to the observable.
|
void |
removeAllObservers() |
void |
removeObserver(E observer)
Deletes an observer in our messaging system.
|
String |
toString() |
public void addObserver(E observer, boolean inEventQueue)
observer - observer to add.inEventQueue - true to notify this observer only in the event queue, false to notify it immediately.public void removeObserver(E observer)
observer - in,public void removeAllObservers()
public void notifyObservers(ObserverLord.ObserverNotification<E> notification)
notification - in, notification sent to the observerCopyright © 2013. All rights reserved