cz.cuni.utils
Class Settings

java.lang.Object
  extended by 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


Nested Class Summary
static class Settings.Setting
           
 
Field Summary
protected static java.util.prefs.Preferences pref
           
 
Constructor Summary
Settings()
          Creates a new instance of DefaultSettings
 
Method Summary
static java.lang.Object get(Settings.Setting setting)
           
static java.util.prefs.Preferences getPrefecences()
          Usefull for seting up listeners.
static void set(Settings.Setting setting, java.lang.Object val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pref

protected static final java.util.prefs.Preferences pref
Constructor Detail

Settings

public Settings()
Creates a new instance of DefaultSettings

Method Detail

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)