T - public abstract class AbstractDialogPreference<T>
extends android.preference.DialogPreference
| Modifier and Type | Field and Description |
|---|---|
protected static String |
androidns |
protected static String |
localNameSpace |
| Constructor and Description |
|---|
AbstractDialogPreference(android.content.Context context,
android.util.AttributeSet attrs,
String defaultStringValue,
boolean needValueText,
org.solovyev.common.text.Mapper<T> mapper) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.view.View |
createPreferenceView(android.content.Context context)
Creates view which is responsible for changing preference value (for example, Spinner or EditText)
|
protected abstract android.widget.LinearLayout.LayoutParams |
getParams() |
protected android.view.View |
getPreferenceView() |
T |
getValue() |
String |
getValueText() |
protected abstract void |
initPreferenceView(android.view.View v,
T value) |
protected void |
onBindDialogView(android.view.View v) |
protected android.widget.LinearLayout |
onCreateDialogView() |
protected void |
onSetInitialValue(boolean restore,
Object defaultValue) |
protected void |
persistValue(T value) |
void |
setValue(T value) |
protected void |
updateValueText(String text) |
getDialog, getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onClick, onClick, onDialogClosed, onDismiss, onPrepareDialogBuilder, onRestoreInstanceState, onSaveInstanceState, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialogcallChangeListener, 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, onGetDefaultValue, 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@Nonnull protected static final String localNameSpace
@Nonnull protected static final String androidns
@Nullable protected android.view.View getPreferenceView()
@Nonnull protected final android.widget.LinearLayout onCreateDialogView()
onCreateDialogView in class android.preference.DialogPreference@Nullable protected abstract android.widget.LinearLayout.LayoutParams getParams()
protected void onSetInitialValue(boolean restore,
Object defaultValue)
onSetInitialValue in class android.preference.Preferenceprotected void onBindDialogView(android.view.View v)
onBindDialogView in class android.preference.DialogPreference@Nonnull protected abstract android.view.View createPreferenceView(@Nonnull android.content.Context context)
context - contextprotected abstract void initPreferenceView(@Nonnull android.view.View v, @Nullable T value)
v - view to be filled with initial data (the one which has been created with createPreferenceView(android.content.Context) method)value - current preference valueCopyright © 2014 se.solovyev. All Rights Reserved.