cz.cuni.utils
Class Settings
java.lang.Object
cz.cuni.utils.Settings
public class Settings
- extends java.lang.Object
Default settings for properties stored in Preferences class. Intended to
use : Properties.get("x",b) methods
Field Summary |
protected static java.util.prefs.Preferences |
pref
|
Constructor Summary |
Settings()
Creates a new instance of DefaultSettings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pref
protected static final java.util.prefs.Preferences pref
Settings
public Settings()
- Creates a new instance of DefaultSettings
getPrefecences
public static java.util.prefs.Preferences getPrefecences()
- Usefull for seting up listeners. But don't use it for getting and storing
the settings. Use getSetting/setSetting methods instead.
- Returns:
- Preferences used for storing all settings.
get
public static java.lang.Object get(Settings.Setting setting)
set
public static void set(Settings.Setting setting,
java.lang.Object val)