Lines Matching defs:name
27 * Retrieve a preference by its key name
28 * @param name The name of the key associated with one preference
32 public static String getPreference(String name) {
34 Object o = prop.get(name);
40 * Sets a preference by key name and value. If the key name all ready exists, that
42 * @param name The name of the key associated with the preference
43 * @param value The value of the preference to be set and later retrieved. If this value is null, the property of this name is erased.
46 public static void setPreference(String name, String value) {
50 prop.remove(name);
52 prop.put(name, value);
69 * Given the name of a resource bundle and the file path location of the base
75 * @param name The name of this file as it will be displayed to the user
79 public static void addRecentFilePreference(String name, String location) {
118 existingNames.setElementAt(name, 0);
136 * @return A Vector of Strings which is twice in length the number of files known about. The vector contains name 1 then location 1, then name 2 ...
143 String name = getPreference("recentfileid" + String.valueOf(i));
145 if (name.equals(EMPTY_STRING) || location.equals(EMPTY_STRING)) break;
146 existing.addElement(name);