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