org.android.activityminer.app.activities
Class SelectActivitiesListPreference

Package class diagram package SelectActivitiesListPreference
java.lang.Object
  extended by android.preference.Preference
      extended by android.preference.DialogPreference
          extended by org.android.activityminer.app.activities.SelectActivitiesListPreference
All Implemented Interfaces:
DialogInterface.OnClickListener, DialogInterface.OnDismissListener, PreferenceManager.OnActivityDestroyListener, Comparable<Preference>

public class SelectActivitiesListPreference
extends DialogPreference

List preference for the selection of activities


Nested Class Summary
 
Nested classes/interfaces inherited from class android.preference.Preference
Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListener
 
Field Summary
private  ActivityTreeListPreferenceAdapter adapter
          The list adapter
 
Fields inherited from class android.preference.Preference
DEFAULT_ORDER
 
Constructor Summary
SelectActivitiesListPreference(Context context)
          Constructor
SelectActivitiesListPreference(Context context, AttributeSet attributeSet)
          Constructor
 
Method Summary
 List<Long> getSelectedValues()
          Gets the selected values
private  void notifyAndSetValue(String value)
          Does set the new value if a call to the change listener succeeds
protected  void onDialogClosed(boolean positiveResult)
           
protected  Object onGetDefaultValue(TypedArray typedArray, int index)
           
protected  void onPrepareDialogBuilder(AlertDialog.Builder builder)
           
protected  void onSetInitialValue(boolean restoreValue, Object rawDefaultValue)
           
 
Methods inherited from class android.preference.DialogPreference
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onBindDialogView, onClick, onClick, onCreateDialogView, onDismiss, onRestoreInstanceState, onSaveInstanceState, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialog
 
Methods inherited from class android.preference.Preference
callChangeListener, compareTo, findPreferenceInHierarchy, getContext, getDependency, getEditor, getExtras, getFragment, getIcon, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getTitleRes, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onParentChanged, onPrepareForRemoval, peekExtras, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setFragment, setIcon, setIcon, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldDisableDependents, shouldPersist, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

adapter

private ActivityTreeListPreferenceAdapter adapter
The list adapter

Constructor Detail

SelectActivitiesListPreference

public SelectActivitiesListPreference(Context context,
                                      AttributeSet attributeSet)
Constructor

Parameters:
context - the context
attributeSet - the attribute set

SelectActivitiesListPreference

public SelectActivitiesListPreference(Context context)
Constructor

Parameters:
context - the context
Method Detail

getSelectedValues

public final List<Long> getSelectedValues()
Gets the selected values

Returns:
the selected values

onPrepareDialogBuilder

protected final void onPrepareDialogBuilder(AlertDialog.Builder builder)
Overrides:
onPrepareDialogBuilder in class DialogPreference

onDialogClosed

protected final void onDialogClosed(boolean positiveResult)
Overrides:
onDialogClosed in class DialogPreference

notifyAndSetValue

private final void notifyAndSetValue(String value)
Does set the new value if a call to the change listener succeeds

Parameters:
value - the new value to set

onSetInitialValue

protected final void onSetInitialValue(boolean restoreValue,
                                       Object rawDefaultValue)
Overrides:
onSetInitialValue in class Preference

onGetDefaultValue

protected final Object onGetDefaultValue(TypedArray typedArray,
                                         int index)
Overrides:
onGetDefaultValue in class Preference