org.android.activityminer.app.activities
Class SelectActivitiesListPreference
java.lang.Object
android.preference.Preference
android.preference.DialogPreference
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
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 |
adapter
private ActivityTreeListPreferenceAdapter adapter
- The list adapter
SelectActivitiesListPreference
public SelectActivitiesListPreference(Context context,
AttributeSet attributeSet)
- Constructor
- Parameters:
context
- the contextattributeSet
- the attribute set
SelectActivitiesListPreference
public SelectActivitiesListPreference(Context context)
- Constructor
- Parameters:
context
- the context
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