|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stata.sfi.util.Preference
public class Preference
A set of utilities for loading and saving preferences.
| Method Summary | |
|---|---|
static void |
deleteSavedPref(String section,
String key)
Delete a saved preference. |
static String |
getSavedPref(String section,
String key,
String defaultValue)
Get a saved preference. |
static boolean |
setSavedPref(String section,
String key,
String value)
Write a saved preference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getSavedPref(String section,
String key,
String defaultValue)
section - The preference section.key - The preference key.defaultValue - The default value if the key is not found.
public static boolean setSavedPref(String section,
String key,
String value)
section - The preference section.key - The preference key.value - The value to save.
public static void deleteSavedPref(String section,
String key)
section - The preference section.key - The preference key.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||