public interface ActivitiesList
Modifier and Type | Method and Description |
---|---|
void |
add(Activity activity)
Adds an activity.
|
void |
addObserver(ej.observable.Observer observer)
Adds an observer to this activities list.
|
void |
deleteObserver(ej.observable.Observer observer)
Deletes an observer to this activities list.
|
Activity[] |
getActivities()
Gets all registered activities.
|
void |
remove(Activity activity)
Removes an activity.
|
void addObserver(ej.observable.Observer observer) throws java.lang.NullPointerException
The observer will be notified when the activities list will be modified.
observer
- an observer to be added.java.lang.NullPointerException
- if the given observer is null
.Observable.addObserver(Observer)
,
add(Activity)
,
remove(Activity)
void deleteObserver(ej.observable.Observer observer)
The observer will no longer be notified of this activities list modification.
observer
- an observer to be removed.Observable.deleteObserver(Observer)
void add(Activity activity)
The observers are notified with the activity as argument.
activity
- the activity to be added.void remove(Activity activity)
The observers are notified with the activity as argument.
activity
- the activity to be removed.Activity[] getActivities()