|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dip.misc.SharedPrefs
This is just a simple class to get a consistent preference node between packages; thus they will all SHARE the same preference node. This makes it easy to change, especially for properties that can be altered in the PReferences dialog; no class must be specified.
It defaults to a USER node.
Packages can use their own preferences node, via java.util.preferences, if they desire.
Method Summary | |
static java.awt.Color |
getColor(java.util.prefs.Preferences p,
java.lang.String key,
java.awt.Color defaultColor)
|
static java.util.prefs.Preferences |
getSystemNode()
Preferences that apply for all users ("System"). |
static java.util.prefs.Preferences |
getUserNode()
Per-user preferences. |
static void |
putColor(java.util.prefs.Preferences p,
java.lang.String key,
java.awt.Color c)
|
static void |
savePrefs(java.util.prefs.Preferences prefs)
Save user preferences. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.prefs.Preferences getUserNode()
public static java.util.prefs.Preferences getSystemNode()
public static void putColor(java.util.prefs.Preferences p, java.lang.String key, java.awt.Color c)
public static java.awt.Color getColor(java.util.prefs.Preferences p, java.lang.String key, java.awt.Color defaultColor)
public static void savePrefs(java.util.prefs.Preferences prefs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |