org.arakhne.afc.ui.android.colorpicker
public class ColorPickerPreference extends android.preference.Preference
The original source code was copied from "http://code.google.com/p/android-color-picker/". Comments were added, and source code patched for AFC compliance.
| Constructor and Description |
|---|
ColorPickerPreference(android.content.Context context,
android.util.AttributeSet attrs) |
ColorPickerPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onBindView(android.view.View view) |
protected void |
onClick() |
protected Object |
onGetDefaultValue(android.content.res.TypedArray a,
int index) |
protected void |
onRestoreInstanceState(android.os.Parcelable state) |
protected android.os.Parcelable |
onSaveInstanceState()
Suppose a client uses this preference type without persisting.
|
protected void |
onSetInitialValue(boolean restoreValue,
Object defaultValue) |
void |
setRGB(int rgb)
Set the rgb preference after asking to the
client if the change is allowed.
|
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, onCreateView, onDependencyChanged, 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, toStringpublic ColorPickerPreference(android.content.Context context,
android.util.AttributeSet attrs)
context - attrs - public ColorPickerPreference(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
context - attrs - defStyle - protected void onBindView(android.view.View view)
onBindView in class android.preference.Preferenceprotected void onClick()
onClick in class android.preference.Preferencepublic void setRGB(int rgb)
rgb - protected Object onGetDefaultValue(android.content.res.TypedArray a, int index)
onGetDefaultValue in class android.preference.Preferenceprotected void onSetInitialValue(boolean restoreValue,
Object defaultValue)
onSetInitialValue in class android.preference.Preferenceprotected android.os.Parcelable onSaveInstanceState()
Suppose a client uses this preference type without persisting. We must save the instance state so it is able to, for example, survive orientation changes.
onSaveInstanceState in class android.preference.Preferenceprotected void onRestoreInstanceState(android.os.Parcelable state)
onRestoreInstanceState in class android.preference.PreferenceCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor