Package org.appng.api.observe
Interface Observable<T>
-
- Type Parameters:
T
- the type which is observed
- All Known Subinterfaces:
Document
- All Known Implementing Classes:
ObservableDelegate
,SimpleDocument
public interface Observable<T>
An Observable can be observed by multipleObserver
s and notify them of changes by firing anObservable.Event
.- Author:
- Matthias Müller
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Observable.Event
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addObserver(Observer<? super T> observer)
Adds anObserver
.void
notifyObservers(Observable.Event event)
Notifies theObserver
s.boolean
removeObserver(Observer<? super T> observer)
Removes anObserver
.
-
-
-
Method Detail
-
notifyObservers
void notifyObservers(Observable.Event event)
Notifies theObserver
s.- Parameters:
event
- anObservable.Event
-
-