|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
org.android.activityminer.app.activities.ManageActivityLabelActivity
public class ManageActivityLabelActivity
Activity to manage the activity labels
Field Summary | |
---|---|
private ActivityTreeListAdapter |
adapter
The tree view adapter |
private DBManager |
dbManager
The database manager |
private DBStatistic |
dbStatistics
The current database statistic |
private int |
parentIndex
Variable to temporarily store a parent index |
private ListView |
treeView
The tree view |
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
ManageActivityLabelActivity()
|
Method Summary | |
---|---|
protected ActivityLabel |
getActivityLabel(AdapterView.AdapterContextMenuInfo menuInfo)
Getter for the activity label the menu information is related to |
private boolean |
onAddActivity()
Method to add an activity label |
private boolean |
onAddParentDependency(ActivityLabel entry)
Method to add a parent dependency for an activity label |
void |
onConfigurationChanged(Configuration newConfig)
|
boolean |
onContextItemSelected(MenuItem item)
|
protected void |
onCreate(Bundle savedInstanceState)
|
void |
onCreateContextMenu(ContextMenu menu,
View v,
ContextMenu.ContextMenuInfo menuInfo)
|
boolean |
onCreateOptionsMenu(Menu menu)
|
private boolean |
onDeleteActivity(ActivityLabel entry)
Method to delete parent dependency for an activity label |
private boolean |
onDeleteParentDependency(ActivityLabel entry)
Method to delete parent dependency for an activity label |
boolean |
onOptionsItemSelected(MenuItem item)
|
private boolean |
onRenameActivity(ActivityLabel entry)
Method to rename an activity label |
private void |
prepare()
GUI preparation. |
protected void |
refreshData()
Method to update the tree view adapter |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ListView treeView
private DBManager dbManager
private DBStatistic dbStatistics
private int parentIndex
private ActivityTreeListAdapter adapter
Constructor Detail |
---|
public ManageActivityLabelActivity()
Method Detail |
---|
protected void onCreate(Bundle savedInstanceState)
onCreate
in class Activity
private void prepare()
protected void refreshData()
public final boolean onCreateOptionsMenu(Menu menu)
onCreateOptionsMenu
in class Activity
public final boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected
in class Activity
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
onCreateContextMenu
in interface View.OnCreateContextMenuListener
onCreateContextMenu
in class Activity
public boolean onContextItemSelected(MenuItem item)
onContextItemSelected
in class Activity
protected ActivityLabel getActivityLabel(AdapterView.AdapterContextMenuInfo menuInfo)
menuInfo
- the menu information
private boolean onDeleteActivity(ActivityLabel entry)
entry
- the activity label to delete parent dependency for
private boolean onDeleteParentDependency(ActivityLabel entry)
entry
- the activity label to delete parent dependency for
private boolean onAddParentDependency(ActivityLabel entry)
entry
- the activity label to delete parent dependency for
private boolean onRenameActivity(ActivityLabel entry)
entry
- the activity label entry to rename
private boolean onAddActivity()
public final void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged
in interface ComponentCallbacks
onConfigurationChanged
in class Activity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |