You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4