Lines Matching refs:Preference

37  * {@link Preference} objects. It is a base class for  Preference objects that are
49 public abstract class PreferenceGroup extends Preference {
51 * The container for child {@link Preference}s. This is sorted based on the
52 * ordering, please use {@link #addPreference(Preference)} instead of adding
55 private List<Preference> mPreferenceList;
98 * Whether to order the {@link Preference} children of this group as they
99 * are added. If this is false, the ordering will follow each Preference
106 * @see Preference#setOrder(int)
125 public void addItemFromInflater(Preference preference) {
130 * Returns the number of children {@link Preference}s.
138 * Returns the {@link Preference} at a particular index.
140 * @param index The index of the {@link Preference} to retrieve.
141 * @return The {@link Preference}.
143 public Preference getPreference(int index) {
148 * Adds a {@link Preference} at the correct position based on the
154 public boolean addPreference(Preference preference) {
207 * Removes a {@link Preference} from this group.
212 public boolean removePreference(Preference preference) {
218 private boolean removePreferenceInt(Preference preference) {
253 * Removes all {@link Preference Preferences} from this group.
257 List<Preference> preferenceList = mPreferenceList;
266 * Prepares a {@link Preference} to be added to the group.
271 protected boolean onPrepareAddPreference(Preference preference) {
277 * Finds a {@link Preference} based on its key. If two {@link Preference}
287 * @return The {@link Preference} with the key, or null.
289 public Preference findPreference(CharSequence key) {
295 final Preference preference = getPreference(i);
303 final Preference returnedPreference = ((PreferenceGroup)preference)
406 * {@link android.support.v14.preference.PreferenceFragment#scrollToPreference(Preference)} or
408 * {@link PreferenceFragmentCompat#scrollToPreference(Preference)}
414 * Return the adapter position of the first {@link Preference} with the specified key
415 * @param key Key of {@link Preference} to find
416 * @return Adapter position of the {@link Preference} or
422 * Return the adapter position of the specified {@link Preference} object
423 * @param preference {@link Preference} object to find
424 * @return Adapter position of the {@link Preference} or
427 int getPreferenceAdapterPosition(Preference preference);