public class Prefs extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Prefs.Listener
Interface for classes that want to be notified of preference changes
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addListener(Prefs.Listener listener)
add a listener
|
static void |
export(String filename)
Export preferences to a file
|
static boolean |
getBoolPref(PrefName pn)
Get a boolean preference value
|
static int |
getIntPref(PrefName pn)
Get an integer preference value
|
static String |
getPref(PrefName pn)
Get a string preference value
|
static String |
getPrefRootNode() |
static void |
importPrefs(String filename)
Import preferences from a file
|
static void |
notifyListeners()
Notify listeners of a pref change.
|
static void |
putPref(PrefName pn,
Object val)
store a preference
|
static void |
setPrefRootNode(String prefRootNode) |
public static void addListener(Prefs.Listener listener)
listener - the listenerpublic static void notifyListeners()
public static String getPref(PrefName pn)
pn - the preference name objectpublic static int getIntPref(PrefName pn)
pn - the preference name objectpublic static boolean getBoolPref(PrefName pn)
pn - the preference name objectpublic static void putPref(PrefName pn, Object val)
pn - the preference name objectval - the valuepublic static void importPrefs(String filename) throws Exception
filename - the filenameExceptionpublic static void export(String filename)
filename - the filenamepublic static String getPrefRootNode()
public static void setPrefRootNode(String prefRootNode)
Generated March 24 2013 by mike using Apache Ant(TM) version 1.8.2 compiled on May 18 2012 and Java version 1.7.0_15 from Oracle Corporation on Linux i386 3.5.0-26-generic