public class LaunchersListImpl extends Observable implements LaunchersList, ApplicationLifecycleListener
LaunchersList
implementation.Constructor and Description |
---|
LaunchersListImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Activity launcher)
Adds a launcher.
|
Activity[] |
getLaunchers()
Gets all registered launchers.
|
void |
remove(Activity launcher)
Removes a launcher.
|
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 launcher)
LaunchersList
The observers are notified with the launcher as argument.
add
in interface LaunchersList
launcher
- the launcher to be added.public Activity[] getLaunchers()
LaunchersList
getLaunchers
in interface LaunchersList
public void remove(Activity launcher)
LaunchersList
The observers are notified with the launcher as argument.
remove
in interface LaunchersList
launcher
- the launcher to be removed.public void stateChanged(Application application)
ApplicationLifecycleListener
stateChanged
in interface ApplicationLifecycleListener
application
- the application that has changed.