Package PamUtils
Class SimpleObservable<T>
java.lang.Object
PamUtils.SimpleObservable<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
BeamLocaliserObservable
Simple observerbale class which can pass on a single object to observables.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(SimpleObserver<T> observer) Add an observerboolean
removeObserver
(SimpleObserver<T> observer) Remove an observervoid
Update observers.void
-
Constructor Details
-
SimpleObservable
public SimpleObservable()
-
-
Method Details
-
addObserver
Add an observer- Parameters:
observer
-
-
removeObserver
Remove an observer- Parameters:
observer
-- Returns:
- true if observer existed.
-
update
Update observers.- Parameters:
data
- data to pass to observers.
-
updateSettings
public void updateSettings()
-