|
Class calypso.util.PreferencesBase
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
static final String gPrefsPath
static final String gPrefsFile
Constructors
PreferencesBase()
Methods
void writePrefs()
public void addDefaults(Properties defs)
- Implements:
- addDefaults in interface Preferences
public String getString(String name,
String defaultValue)
- Implements:
- getString in interface Preferences
public String getString(String name) throws MissingResourceException
- Implements:
- getString in interface Preferences
public int getInt(String name,
int defaultValue)
- Implements:
- getInt in interface Preferences
public int getInt(String name) throws MissingResourceException, NumberFormatException
- Implements:
- getInt in interface Preferences
public boolean getBoolean(String name,
boolean defaultValue)
- Implements:
- getBoolean in interface Preferences
public boolean getBoolean(String name) throws MissingResourceException
- Implements:
- getBoolean in interface Preferences
public File getFile(String name,
File defaultValue)
- Implements:
- getFile in interface Preferences
public void putString(String prefName,
String value)
Assign a String value to the given preference.
- Implements:
- putString in interface Preferences
public void putInt(String prefName,
int value)
Assign an int value to the given preference.
- Implements:
- putInt in interface Preferences
public void putBoolean(String prefName,
boolean value)
Assign a boolean value to the given preference.
- Implements:
- putBoolean in interface Preferences
public Properties getAsProperties()
Return the preferences as a Properties object
- Implements:
- getAsProperties in interface Preferences
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
|