public class ActivitiesListImpl extends Observable implements ActivitiesList, ApplicationLifecycleListener
ActivitiesList
implementation.Constructor and Description |
---|
ActivitiesListImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Activity activity)
Adds an activity.
|
Activity[] |
getActivities()
Gets all registered activities.
|
void |
remove(Activity activity)
Removes an activity.
|
void |
stateChanged(Application application)
Called whenever an application has changed in the observed applications manager.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, getObservers, hasChanged, notifyObservers, setChanged
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver, deleteObserver
public void add(Activity activity)
ActivitiesList
The observers are notified with the activity as argument.
add
in interface ActivitiesList
activity
- the activity to be added.public Activity[] getActivities()
ActivitiesList
getActivities
in interface ActivitiesList
public void remove(Activity activity)
ActivitiesList
The observers are notified with the activity as argument.
remove
in interface ActivitiesList
activity
- the activity to be removed.public void stateChanged(Application application)
ApplicationLifecycleListener
stateChanged
in interface ApplicationLifecycleListener
application
- the application that has changed.