Interface for the preferences svc
PreferencesSvc
Method Summary |
public void |
|
public boolean |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public boolean |
|
public int |
Method Detail |
public void duplicatePreferences(Helper function to create a copy of a preference tree.Preferences
oldPrefs,Preferences
newPrefs)
throwsBackingStoreException
BackingStoreException
public boolean equals(Compares two preference trees to see if they are equalPreferences
p1,Preferences
p2)
publicConstructs a preference package to wrap a preference node.PreferencesSvc.IPreferencePkg
getPreferencesPackage(Preferences
prefs,ResourceSvc.IResourcePkg
res)
Related Topics
IPreferencePkg
publicConstructs a preference package to wrap a preference node. The preference node will be fetched from the system preferences section of the source usingPreferencesSvc.IPreferencePkg
getSystemPreferences(IPreferencesSupport
ps,Class
c,String
s)
IPreferencesSupport.systemNodeForPackage(Class)
.
ResourceSvc.IResourcePkg
object from the
ResourceSvc
that defines the default values for the preference node. Related Topics
IPreferencePkg
publicConstructs a preference package to wrap a preference node. The preference node will be fetched from the system preferences section of the source usingPreferencesSvc.IPreferencePkg
getSystemPreferences(IPreferencesSupport
ps,Class
c)
IPreferencesSupport.systemNodeForPackage(Class)
.
ResourceSvc.IResourcePkg
object
for the default values. The class name will be prepended with "default." to obtain the string
to pass to ResourceSvc.I
Related Topics
IPreferencePkg
IPreferencesSupport
publicConstructs a preference package to wrap a preference node. The preference node will be fetched from the user preferences section of the source usingPreferencesSvc.IPreferencePkg
getUserPreferences(IPreferencesSupport
ps,Class
c,String
s)
IPreferencesSupport.userNodeForPackage(Class)
.
ResourceSvc.IResourcePkg
object from the
ResourceSvc
that defines the default values for the preference node. Related Topics
IPreferencePkg
publicConstructs a preference package to wrap a preference node. The preference node will be fetched from the user preferences section of the source usingPreferencesSvc.IPreferencePkg
getUserPreferences(IPreferencesSupport
ps,Class
c)
IPreferencesSupport.userNodeForPackage(Class)
.
ResourceSvc.IResourcePkg
object
for the default values. The class name will be prepended with "default." to obtain the string
to pass to ResourceSvc.I
Related Topics
IPreferencePkg
IPreferencesSupport
DEPRECATED
publicConstructs a preference package to wrap a preference node. This version provides no defaults support. This version is deprecated, please usePreferencesSvc.IPreferencePkg
getUserPreferences(Preferences
prefs)
PreferencesSvc.I.getPreferencesPackage(Preferences, ResourceSvc.IResourcePkg)
and
pass null for the res parameter.
Related Topics
IPreferencePkg
DEPRECATED
publicConstructs a preference package to wrap a preference node. This version provides no defaults support. This version is deprecated, please usePreferencesSvc.IPreferencePkg
getUserPreferences(IPreferencesSupport
ps,Preferences
prefs)
PreferencesSvc.I.getPreferencesPackage(Preferences, ResourceSvc.IResourcePkg)
and
pass null for the res parameter.
Related Topics
IPreferencePkg
public boolean nodeExists(Helper function that tests whether a node with the given key exists in the supplied preference tree.Preferences
prefs,String
key)
public int parseInt(String
value)
Helper function to parse integers. This takes care of looking for 0x or # to indicate a hexadecimal
number. Strings beginning with any other characters are considered to be decimal
Integer.parseInt(String)