All Packages This Package Class Hierarchy Class Search Index
Class calypso.util.PreferencesBase
java.lang.Object | +----java.util.Dictionary | +----java.util.Hashtable | +----java.util.Properties | +----calypso.util.PreferencesBase
class PreferencesBase extends java.util.Properties implements calypso.util.Preferences { // Fields 2 static final String gPrefsFile; static final String gPrefsPath; // Constructors 1 PreferencesBase(); // Methods 13 public void addDefaults(Properties); public Properties getAsProperties(); public boolean getBoolean(String) throws MissingResourceException; public boolean getBoolean(String, boolean); public File getFile(String, File); public int getInt(String) throws MissingResourceException, NumberFormatException; public int getInt(String, int); public String getString(String) throws MissingResourceException; public String getString(String, String); public void putBoolean(String, boolean); public void putInt(String, int); public void putString(String, String); void writePrefs(); }
Fields
gPrefsPath
static final String gPrefsPath
gPrefsFile
static final String gPrefsFile
Constructors
PreferencesBase
PreferencesBase()
Methods
writePrefs
void writePrefs()
addDefaults
public void addDefaults(Properties defs)
- Implements:
- addDefaults in interface Preferences
getString
public String getString(String name, String defaultValue)
- Implements:
- getString in interface Preferences
getString
public String getString(String name) throws MissingResourceException
- Implements:
- getString in interface Preferences
getInt
public int getInt(String name, int defaultValue)
- Implements:
- getInt in interface Preferences
getInt
public int getInt(String name) throws MissingResourceException, NumberFormatException
- Implements:
- getInt in interface Preferences
getBoolean
public boolean getBoolean(String name, boolean defaultValue)
- Implements:
- getBoolean in interface Preferences
getBoolean
public boolean getBoolean(String name) throws MissingResourceException
- Implements:
- getBoolean in interface Preferences
getFile
public File getFile(String name, File defaultValue)
- Implements:
- getFile in interface Preferences
putString
public void putString(String prefName, String value)
Assign a String value to the given preference.
- Implements:
- putString in interface Preferences
putInt
public void putInt(String prefName, int value)
Assign an int value to the given preference.
- Implements:
- putInt in interface Preferences
putBoolean
public void putBoolean(String prefName, boolean value)
Assign a boolean value to the given preference.
- Implements:
- putBoolean in interface Preferences
getAsProperties
public Properties getAsProperties()
Return the preferences as a Properties object
- Implements:
- getAsProperties in interface Preferences
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4