de.msponer.android.yac.activities.workqueues
Class WorkItemActivity

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.view.ContextThemeWrapper
              extended by android.app.Activity
                  extended by com.j256.ormlite.android.apptools.OrmLiteBaseActivity<DatabaseHelper>
                      extended by de.msponer.android.yac.activities.workqueues.WorkItemActivity
All Implemented Interfaces:
ComponentCallbacks, KeyEvent.Callback, LayoutInflater.Factory, View.OnCreateContextMenuListener, Window.Callback

public class WorkItemActivity
extends com.j256.ormlite.android.apptools.OrmLiteBaseActivity<DatabaseHelper>

Activity for displaying work item details and manipulating the work item's life cycle. Different Intent actions are support.

Author:
marcel

Field Summary
static int ACCEPT_AND_START
          Result code: Accept and start work item.
static int ACCEPT_OFFER
          Result code: Accept work item.
static String ACCEPT_OFFER_INTENT
          Intent action: Accept work item.
static String ACCEPT_START_INTENT
          Intent action: Accept and start work item.
static int CHAIN
          Result code: Chain work item.
static int COMPLETE
          Result code: Complete work item.
static String COMPLETE_INTENT
          Intent action: Complete work item.
static int DEALLOCATE
          Result code: Deallocate work item.
static String DEALLOCATE_INTENT
          Intent action: Deallocate work item.
static int DELEGATE
          Result code: Delegate work item.
static String EDIT_INTENT
          Intent action: View/edit work item.
static int NEW_INSTANCE
          Result code: New instance.
static int PILE
          Result code: Pile work item.
static int REALLOCATE_SF
          Result code: Reallocate (sf) work item.
static int REALLOCATE_SL
          Result code: Reallocate (sl) work item.
static int SKIP
          Result code: Skip work item.
static String SKIP_INTENT
          Intent action: Skip work item.
static int START
          Result code: Start work item.
static String START_INTENT
          Intent action: Start work item.
static int SUSPEND
          Result code: Suspend work item.
static String SUSPEND_INTENT
          Intent action: Suspend work item.
static int UNSUSPEND
          Result code: Unsuspend work item.
static String UNSUSPEND_INTENT
          Intent action: Unsuspend work item.
static int UPDATE
          Result code: Update work item.
static int VIEW_EDIT
          Result code: View/edit work item.
 
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 class android.content.Context
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_NOT_FOREGROUND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, TELEPHONY_SERVICE, UI_MODE_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
Constructor Summary
WorkItemActivity()
           
 
Method Summary
protected  void onActivityResult(int requestCode, int resultCode, Intent data)
           
protected  void onCreate(Bundle savedInstanceState)
           
 boolean onCreateOptionsMenu(Menu menu)
           
protected  void onDestroy()
           
 boolean onOptionsItemSelected(MenuItem item)
           
 
Methods inherited from class com.j256.ormlite.android.apptools.OrmLiteBaseActivity
getConnectionSource, getHelper, getHelperInternal, releaseHelper
 
Methods inherited from class android.app.Activity
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getInstanceCount, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, getWindow, getWindowManager, hasWindowFocus, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, onApplyThemeResource, onAttachedToWindow, onBackPressed, onChildTitleChanged, onConfigurationChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onDetachedFromWindow, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onNewIntent, onOptionsMenuClosed, onPanelClosed, onPause, onPostCreate, onPostResume, onPrepareDialog, onPrepareDialog, onPrepareOptionsMenu, onPreparePanel, onRestart, onRestoreInstanceState, onResume, onRetainNonConfigurationInstance, onSaveInstanceState, onSearchRequested, onStart, onStop, onTitleChanged, onTouchEvent, onTrackballEvent, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, overridePendingTransition, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setIntent, setPersistent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, showDialog, showDialog, startActivity, startActivityForResult, startActivityFromChild, startActivityIfNeeded, startIntentSender, startIntentSenderForResult, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
 
Methods inherited from class android.view.ContextThemeWrapper
attachBaseContext, getTheme, setTheme
 
Methods inherited from class android.content.ContextWrapper
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
 
Methods inherited from class android.content.Context
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCEPT_OFFER_INTENT

public static final String ACCEPT_OFFER_INTENT
Intent action: Accept work item.

See Also:
Constant Field Values

ACCEPT_START_INTENT

public static final String ACCEPT_START_INTENT
Intent action: Accept and start work item.

See Also:
Constant Field Values

START_INTENT

public static final String START_INTENT
Intent action: Start work item.

See Also:
Constant Field Values

DEALLOCATE_INTENT

public static final String DEALLOCATE_INTENT
Intent action: Deallocate work item.

See Also:
Constant Field Values

SKIP_INTENT

public static final String SKIP_INTENT
Intent action: Skip work item.

See Also:
Constant Field Values

EDIT_INTENT

public static final String EDIT_INTENT
Intent action: View/edit work item.

See Also:
Constant Field Values

SUSPEND_INTENT

public static final String SUSPEND_INTENT
Intent action: Suspend work item.

See Also:
Constant Field Values

COMPLETE_INTENT

public static final String COMPLETE_INTENT
Intent action: Complete work item.

See Also:
Constant Field Values

UNSUSPEND_INTENT

public static final String UNSUSPEND_INTENT
Intent action: Unsuspend work item.

See Also:
Constant Field Values

ACCEPT_OFFER

public static final int ACCEPT_OFFER
Result code: Accept work item.

See Also:
Constant Field Values

ACCEPT_AND_START

public static final int ACCEPT_AND_START
Result code: Accept and start work item.

See Also:
Constant Field Values

CHAIN

public static final int CHAIN
Result code: Chain work item.

See Also:
Constant Field Values

START

public static final int START
Result code: Start work item.

See Also:
Constant Field Values

DEALLOCATE

public static final int DEALLOCATE
Result code: Deallocate work item.

See Also:
Constant Field Values

DELEGATE

public static final int DELEGATE
Result code: Delegate work item.

See Also:
Constant Field Values

SKIP

public static final int SKIP
Result code: Skip work item.

See Also:
Constant Field Values

PILE

public static final int PILE
Result code: Pile work item.

See Also:
Constant Field Values

VIEW_EDIT

public static final int VIEW_EDIT
Result code: View/edit work item.

See Also:
Constant Field Values

SUSPEND

public static final int SUSPEND
Result code: Suspend work item.

See Also:
Constant Field Values

REALLOCATE_SL

public static final int REALLOCATE_SL
Result code: Reallocate (sl) work item.

See Also:
Constant Field Values

REALLOCATE_SF

public static final int REALLOCATE_SF
Result code: Reallocate (sf) work item.

See Also:
Constant Field Values

NEW_INSTANCE

public static final int NEW_INSTANCE
Result code: New instance.

See Also:
Constant Field Values

COMPLETE

public static final int COMPLETE
Result code: Complete work item.

See Also:
Constant Field Values

UNSUSPEND

public static final int UNSUSPEND
Result code: Unsuspend work item.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Result code: Update work item.

See Also:
Constant Field Values
Constructor Detail

WorkItemActivity

public WorkItemActivity()
Method Detail

onCreate

protected void onCreate(Bundle savedInstanceState)
Overrides:
onCreate in class Activity

onDestroy

protected void onDestroy()
Overrides:
onDestroy in class com.j256.ormlite.android.apptools.OrmLiteBaseActivity<DatabaseHelper>

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)
Overrides:
onCreateOptionsMenu in class Activity

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)
Overrides:
onOptionsItemSelected in class Activity

onActivityResult

protected void onActivityResult(int requestCode,
                                int resultCode,
                                Intent data)
Overrides:
onActivityResult in class Activity