Lines Matching refs:key
54 * This class contains a {@code key} that will be used as the key into the
367 * set individual extra key/value pairs.
805 * Sets the key for this Preference, which is used as a key to the
808 * @param key The key for the preference.
810 public void setKey(String key) {
811 mKey = key;
819 * Gets the key for this Preference, which is also the key used for storing
822 * @return The key.
829 * Checks whether the key is present, and if it isn't throws an
833 * @throws IllegalStateException If there is no key assigned.
837 throw new IllegalStateException("Preference does not have a key assigned.");
844 * Checks whether this Preference has a valid key.
846 * @return True if the key exists and is not a blank string, false otherwise.
866 * Preference is persistent and it currently has a key. Before you
972 * Allows a Preference to intercept key events without having focus.
975 * @return True if the Preference handled the key. Returns false by default.
1174 * key.
1178 * @param key The key of the Preference to find.
1179 * @return The Preference that uses the given key.
1181 protected Preference findPreferenceInHierarchy(String key) {
1182 if (TextUtils.isEmpty(key) || mPreferenceManager == null) {
1186 return mPreferenceManager.findPreference(key);
1270 * Sets the key of a Preference that this Preference will depend on. If that
1273 * @param dependencyKey The key of the Preference that this depends on.
1285 * Returns the key of the dependency on this Preference.
1287 * @return The key of the dependency.