android.preference
Class EditTextPreference

java.lang.Object
  extended by android.preference.Preference
      extended by android.preference.DialogPreference
          extended by android.preference.EditTextPreference
All Implemented Interfaces:
DialogInterface.OnClickListener, DialogInterface.OnDismissListener, PreferenceManager.OnActivityDestroyListener, Comparable<Preference>

public class EditTextPreference
extends DialogPreference


Nested Class Summary
 
Nested classes/interfaces inherited from class android.preference.Preference
Preference.BaseSavedState, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListener
 
Field Summary
 
Fields inherited from class android.preference.Preference
DEFAULT_ORDER
 
Constructor Summary
EditTextPreference(Context context)
           
EditTextPreference(Context context, AttributeSet attrs)
           
EditTextPreference(Context context, AttributeSet attrs, int defStyle)
           
 
Method Summary
 EditText getEditText()
           
 String getText()
           
protected  void onAddEditTextToDialogView(View dialogView, EditText editText)
           
protected  void onBindDialogView(View view)
           
protected  void onDialogClosed(boolean positiveResult)
           
protected  Object onGetDefaultValue(TypedArray a, int index)
           
protected  void onRestoreInstanceState(Parcelable state)
           
protected  Parcelable onSaveInstanceState()
           
protected  void onSetInitialValue(boolean restoreValue, Object defaultValue)
           
 void setText(String text)
           
 boolean shouldDisableDependents()
           
 
Methods inherited from class android.preference.DialogPreference
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onClick, onClick, onCreateDialogView, onDismiss, onPrepareDialogBuilder, 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, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getView, getWidgetLayoutResource, hasKey, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onPrepareForRemoval, persistBoolean, persistFloat, persistInt, persistLong, persistString, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setIntent, setKey, setLayoutResource, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldPersist, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditTextPreference

public EditTextPreference(Context context,
                          AttributeSet attrs,
                          int defStyle)

EditTextPreference

public EditTextPreference(Context context,
                          AttributeSet attrs)

EditTextPreference

public EditTextPreference(Context context)
Method Detail

setText

public void setText(String text)

getText

public String getText()

onBindDialogView

protected void onBindDialogView(View view)
Overrides:
onBindDialogView in class DialogPreference

onAddEditTextToDialogView

protected void onAddEditTextToDialogView(View dialogView,
                                         EditText editText)

onDialogClosed

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

onGetDefaultValue

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

onSetInitialValue

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

shouldDisableDependents

public boolean shouldDisableDependents()
Overrides:
shouldDisableDependents in class Preference

getEditText

public EditText getEditText()

onSaveInstanceState

protected Parcelable onSaveInstanceState()
Overrides:
onSaveInstanceState in class DialogPreference

onRestoreInstanceState

protected void onRestoreInstanceState(Parcelable state)
Overrides:
onRestoreInstanceState in class DialogPreference


Copyright © 2008-2010. All Rights Reserved.