Android Mobile Physical Therapy Exercise Documenter

com.communipatient.amptedapp.ui
Class PlansFragment

java.lang.Object
  extended by android.support.v4.app.Fragment
      extended by android.support.v4.app.ListFragment
          extended by com.communipatient.amptedapp.ui.PlansFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.view.View.OnCreateContextMenuListener

public class PlansFragment
extends android.support.v4.app.ListFragment

The list of plans that are loaded on the device.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.support.v4.app.Fragment
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
 
Field Summary
private  android.widget.SimpleCursorAdapter mAdapter
          The adapter.
private  int mCurCheckPosition
          The current exercise being displayed.
private  boolean mDualPane
          Flag indicating the view is being displayed as two panes.
private  android.database.sqlite.SQLiteDatabase read
          The sqlite database.
 
Constructor Summary
PlansFragment()
           
 
Method Summary
 void onActivityCreated(android.os.Bundle savedState)
           
 void onDestroyView()
           
 void onListItemClick(android.widget.ListView l, android.view.View v, int pos, long id)
           
 void showDetails(int index)
          Helper function to show the details of a selected item, either by displaying a fragment in-place in the current UI, or starting a whole new activity in which it is displayed.
 
Methods inherited from class android.support.v4.app.ListFragment
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onCreateView, onViewCreated, setEmptyText, setListAdapter, setListShown, setListShownNoAnimation, setSelection
 
Methods inherited from class android.support.v4.app.Fragment
dump, equals, getActivity, getArguments, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, startActivity, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mDualPane

private boolean mDualPane
Flag indicating the view is being displayed as two panes.


mCurCheckPosition

private int mCurCheckPosition
The current exercise being displayed.


read

private android.database.sqlite.SQLiteDatabase read
The sqlite database.


mAdapter

private android.widget.SimpleCursorAdapter mAdapter
The adapter.

Constructor Detail

PlansFragment

public PlansFragment()
Method Detail

onActivityCreated

public void onActivityCreated(android.os.Bundle savedState)
Overrides:
onActivityCreated in class android.support.v4.app.Fragment

onDestroyView

public void onDestroyView()
Overrides:
onDestroyView in class android.support.v4.app.ListFragment

onListItemClick

public void onListItemClick(android.widget.ListView l,
                            android.view.View v,
                            int pos,
                            long id)
Overrides:
onListItemClick in class android.support.v4.app.ListFragment

showDetails

public void showDetails(int index)
Helper function to show the details of a selected item, either by displaying a fragment in-place in the current UI, or starting a whole new activity in which it is displayed.

Parameters:
index - The index of the exercise to display.

Revision: 109 Generated on Sat Dec 10 07:00:03 UTC 2011