public interface ActivityManager
ActivityManager
is an interface for managing activities and the activity menu.Modifier and Type | Method and Description |
---|---|
Activity |
createActivity(java.lang.String id,
java.lang.String activityClass)
Create an activity by using the given parameters.
|
ActivityMenuItem |
createActivityMenuItem(Activity activity)
Create the Menu Item using the given activity.
|
Activity |
getActivity(java.lang.String id)
Get the activity for the given activity identifier.
|
ActivityMenu |
getActivityMenu()
Get the
ActivityMenu associated with this ActivityManager. |
java.util.List<Activity> |
getAllActivities()
Get all the activities available in the configuration file.
|
boolean |
removeActivity(java.lang.String id)
Remove the activity associated with the given activity identifier.
|
java.util.List<Activity> getAllActivities() throws CLLException
List
of Activity
instances.CLLException
- In case of a failure to construct the activities.Activity getActivity(java.lang.String id) throws CLLException
id
- Unique identifier for the activity.Activity
implementation class reference used perform the actions on the activity.CLLException
- In case of a failure to construct the activity instance.boolean removeActivity(java.lang.String id) throws CLLException
id
- Unique identifier for the activity.CLLException
- In case of a failure to remove the activity.ActivityMenuItem createActivityMenuItem(Activity activity) throws CLLException
activity
- Activity implementation class reference used perform the actions on the activity.ActivityMenuItem
instance constructed from the given activityCLLException
- In case of a failure to construct the ActivityMenuItem
using the given activity.Activity createActivity(java.lang.String id, java.lang.String activityClass) throws CLLException
id
- Unique identifier for the activity.activityClass
- The fully qualified name of the activity implementation classCLLException
- In case of a failure to create the activity instanceActivityMenu getActivityMenu()
ActivityMenu
associated with this ActivityManager.ActivityMenu
which represents the list of activity menu items.