MozillaZine

JavaScript Preferences Class

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 23:37, 26 September 2005
Np (Talk | contribs)
(add category)
<-- Previous diff
Revision as of 22:31, 8 December 2006
Grimholtz (Talk | contribs)
(moved to MDC)
Next diff -->
Line 1: Line 1:
-This class encapsulates many of the commonly used features of Mozilla's preferences-related interfaces into a centralized, reusable class. It traps exceptions, allows you to specify default values for preferences when they don't exist in any preference tree, and keeps code organized by localizing preference manipulation to a single class. The only interfaces not yet supported are nsILocalFile and nsIRelativeFilePref. Feel free to add them if you like. Sample usage is shown in the leading comments.+{extdev}
-<pre>Code temporarily taken down for maintanence</pre>+Moved [http://developer.mozilla.org/en/docs/Code_snippets:Javascript_Preferences_Class to MDC]
[[Category:JavaScript example code]] [[Category:JavaScript example code]]

Revision as of 22:31, 8 December 2006

{extdev}

Moved to MDC