java.lang.Object | |
↳ | android.database.Observable<T> |
Known Direct Subclasses |
Provides methods for registering or unregistering arbitrary observers in an
ArrayList
.
This abstract class is intended to be subclassed and specialized to maintain
a registry of observers of specific types and dispatch notifications to them.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
mObservers | The list of observers. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Adds an observer to the list.
|
||||||||||
|
Remove all registered observers.
|
||||||||||
|
Removes a previously registered observer.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The list of observers. An observer can be in the list at most once and will never be null.
Adds an observer to the list. The observer cannot be null and it must not already be registered.
observer | the observer to register |
---|
IllegalArgumentException | the observer is null |
---|---|
IllegalStateException | the observer is already registered |
Removes a previously registered observer. The observer must not be null and it must already have been registered.
observer | the observer to unregister |
---|
IllegalArgumentException | the observer is null |
---|---|
IllegalStateException | the observer is not yet registered |