Methods Summary |
---|
public synchronized void | addPlugin(Plugin plugin)Adds a plugin to the list.
if (!mPlugins.contains(plugin)) {
mPlugins.add(plugin);
}
|
public synchronized void | clear()Clears the plugin list.
mPlugins.clear();
|
public synchronized java.util.List | getList()Returns the list of plugins as a java.util.List.
return mPlugins;
|
public synchronized void | pluginClicked(android.content.Context context, int position)Dispatches the click event to the appropriate plugin.
try {
Plugin plugin = mPlugins.get(position);
plugin.dispatchClickEvent(context);
} catch (IndexOutOfBoundsException e) {
// This can happen if the list of plugins
// gets changed while the pref menu is up.
}
|
public synchronized void | removePlugin(Plugin plugin)Removes a plugin from the list.
int location = mPlugins.indexOf(plugin);
if (location != -1) {
mPlugins.remove(location);
}
|